mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
+ Apply zoom factor to the scan popup as well.
This commit is contained in:
parent
0b8c674da6
commit
163d69b230
|
@ -1247,4 +1247,7 @@ void MainWindow::applyZoomFactor()
|
|||
dynamic_cast< ArticleView & >( *( ui.tabWidget->widget(i) ) );
|
||||
view.setZoomFactor( cfg.preferences.zoomFactor );
|
||||
}
|
||||
|
||||
if ( scanPopup.get() )
|
||||
scanPopup->applyZoomFactor();
|
||||
}
|
||||
|
|
|
@ -35,6 +35,9 @@ ScanPopup::ScanPopup( QWidget * parent,
|
|||
|
||||
definition = new ArticleView( ui.outerFrame, articleNetMgr, allDictionaries,
|
||||
groups, true, cfg );
|
||||
|
||||
applyZoomFactor();
|
||||
|
||||
ui.mainLayout->addWidget( definition );
|
||||
|
||||
ui.wordListButton->hide();
|
||||
|
@ -125,6 +128,11 @@ void ScanPopup::disableScanning()
|
|||
}
|
||||
}
|
||||
|
||||
void ScanPopup::applyZoomFactor()
|
||||
{
|
||||
definition->setZoomFactor( cfg.preferences.zoomFactor );
|
||||
}
|
||||
|
||||
void ScanPopup::translateWordFromClipboard()
|
||||
{
|
||||
printf( "translating from clipboard\n" );
|
||||
|
|
|
@ -35,6 +35,10 @@ public:
|
|||
/// Disables scanning.
|
||||
void disableScanning();
|
||||
|
||||
/// Applies current zoom factor to the popup's view. Should be called when
|
||||
/// it's changed.
|
||||
void applyZoomFactor();
|
||||
|
||||
public slots:
|
||||
|
||||
/// Translates the word from the clipboard, showing the window etc.
|
||||
|
|
Loading…
Reference in a new issue