+ Apply zoom factor to the scan popup as well.

This commit is contained in:
Konstantin Isakov 2009-04-30 20:20:05 +00:00
parent 0b8c674da6
commit 163d69b230
3 changed files with 15 additions and 0 deletions

View file

@ -1247,4 +1247,7 @@ void MainWindow::applyZoomFactor()
dynamic_cast< ArticleView & >( *( ui.tabWidget->widget(i) ) );
view.setZoomFactor( cfg.preferences.zoomFactor );
}
if ( scanPopup.get() )
scanPopup->applyZoomFactor();
}

View file

@ -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" );

View file

@ -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.