getSettingsPage -> page

This commit is contained in:
fourtf
2020-02-21 00:46:19 +01:00
parent 0bb112a3c2
commit fbbf34878f
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -199,7 +199,7 @@ void SettingsDialog::addTab(SettingsPage *page, Qt::Alignment alignment)
void SettingsDialog::selectTab(SettingsDialogTab *tab, bool byUser)
{
this->ui_.pageStack->setCurrentWidget(tab->getSettingsPage());
this->ui_.pageStack->setCurrentWidget(tab->page());
if (this->selectedTab_ != nullptr)
{
@@ -256,7 +256,7 @@ void SettingsDialog::refresh()
for (auto *tab : this->tabs_)
{
tab->getSettingsPage()->onShow();
tab->page()->onShow();
}
}
@@ -304,7 +304,7 @@ void SettingsDialog::onCancelClicked()
{
for (auto &tab : this->tabs_)
{
tab->getSettingsPage()->cancel();
tab->page()->cancel();
}
getSettings()->restoreSnapshot();