From 74143a3a0ad2a8fc634d483e143d4efe4bf4f8fe Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Wed, 18 Dec 2024 09:42:38 +0800 Subject: [PATCH] opt: while change icon size ,change the font size as well --- src/ui/mainwindow.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index 1f8f7484f..95aae0c21 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -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 )