mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Localize MainWindow inner-children connections
Move 'connect()' call from KiwixApp to MainWindow because MainWindow should be responsible for connecting its children between each other.
This commit is contained in:
parent
fd90eb8fe1
commit
921615c970
@ -398,8 +398,6 @@ void KiwixApp::createAction()
|
||||
}
|
||||
|
||||
void KiwixApp::postInit() {
|
||||
connect(getTabWidget(), &TabBar::webActionEnabledChanged,
|
||||
mp_mainWindow->getTopWidget(), &TopWidget::handleWebActionEnabledChanged);
|
||||
connect(getTabWidget(), &TabBar::libraryPageDisplayed,
|
||||
this, &KiwixApp::disableItemsOnLibraryPage);
|
||||
emit(m_library.booksChanged());
|
||||
|
@ -72,6 +72,9 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
connect(mp_ui->tabBar, &TabBar::currentTitleChanged,
|
||||
mp_ui->mainToolBar, &TopWidget::updateBackForwardButtons);
|
||||
|
||||
connect(mp_ui->tabBar, &TabBar::webActionEnabledChanged,
|
||||
mp_ui->mainToolBar, &TopWidget::handleWebActionEnabledChanged);
|
||||
|
||||
mp_ui->contentmanagerside->setContentManager(app->getContentManager());
|
||||
mp_ui->sideBar->setCurrentWidget(mp_ui->contentmanagerside);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user