mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
fix:currentIndexChanged slot does not match
This commit is contained in:
parent
5d2426c805
commit
8b9544bc17
|
@ -3755,8 +3755,8 @@ void MainWindow::applyWordsZoomLevel()
|
|||
groupList->setFont( font );
|
||||
groupList->fill( groupInstances );
|
||||
groupList->setCurrentIndex( n );
|
||||
connect( groupList, SIGNAL( currentIndexChanged( QString const & ) ),
|
||||
this, SLOT( currentGroupChanged( QString const & ) ) );
|
||||
connect( groupList, &GroupComboBox::currentIndexChanged,
|
||||
this, &MainWindow::currentGroupChanged );
|
||||
}
|
||||
|
||||
wordsZoomBase->setEnabled( cfg.preferences.wordsZoomLevel != 0 );
|
||||
|
|
|
@ -421,15 +421,15 @@ void ScanPopup::applyWordsZoomLevel()
|
|||
|
||||
if ( ui.groupList->font().pointSize() != ps )
|
||||
{
|
||||
disconnect( ui.groupList, SIGNAL( currentIndexChanged( QString const & ) ),
|
||||
this, SLOT( currentGroupChanged( QString const & ) ) );
|
||||
disconnect( ui.groupList, &GroupComboBox::currentIndexChanged,
|
||||
this, &ScanPopup::currentGroupChanged );
|
||||
int n = ui.groupList->currentIndex();
|
||||
ui.groupList->clear();
|
||||
ui.groupList->setFont( font );
|
||||
ui.groupList->fill( groups );
|
||||
ui.groupList->setCurrentIndex( n );
|
||||
connect( ui.groupList, SIGNAL( currentIndexChanged( QString const & ) ),
|
||||
this, SLOT( currentGroupChanged( QString const & ) ) );
|
||||
connect( ui.groupList, &GroupComboBox::currentIndexChanged,
|
||||
this, &ScanPopup::currentGroupChanged );
|
||||
}
|
||||
|
||||
ui.outerFrame->layout()->activate();
|
||||
|
|
Loading…
Reference in a new issue