Skip to content

Commit

Permalink
opt: while change icon size ,change the font size as well
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Dec 18, 2024
1 parent b7a27d7 commit 74143a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ui/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3144,6 +3144,11 @@ void MainWindow::iconSizeActionTriggered( QAction * /*action*/ )
updateDictionaryBar();

scanPopup->setDictionaryIconSize();

//ajust the font size as well
auto font = translateLine->font();
font.setPixelSize( extent );
translateBox->completerWidget()->setFont( font );
}

void MainWindow::toggleMenuBarTriggered( bool announce )
Expand Down

0 comments on commit 74143a3

Please sign in to comment.