Skip to content

Commit b6962d8

Browse files
committed
kconfig: qconf: convert the last old connection syntax to Qt5 style
Commit a2574c1 ("kconfig: qconf: convert to Qt5 new signal/slot connection syntax") converted most of the old string-based connections, but one more instance still remains. Convert it to the new style. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 375a4f4 commit b6962d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/kconfig/qconf.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,6 +1475,9 @@ ConfigMainWindow::ConfigMainWindow(void)
14751475
connect(helpText, &ConfigInfoView::menuSelected,
14761476
this, &ConfigMainWindow::setMenuLink);
14771477

1478+
connect(configApp, &QApplication::aboutToQuit,
1479+
this, &ConfigMainWindow::saveSettings);
1480+
14781481
conf_read(NULL);
14791482

14801483
QString listMode = configSettings->value("/listMode", "symbol").toString();
@@ -1863,7 +1866,6 @@ int main(int ac, char** av)
18631866
v = new ConfigMainWindow();
18641867

18651868
//zconfdump(stdout);
1866-
configApp->connect(configApp, SIGNAL(aboutToQuit()), v, SLOT(saveSettings()));
18671869

18681870
v->show();
18691871
configApp->exec();

0 commit comments

Comments
 (0)