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

View file

@ -199,7 +199,7 @@ void SettingsDialog::addTab(SettingsPage *page, Qt::Alignment alignment)
void SettingsDialog::selectTab(SettingsDialogTab *tab, bool byUser) void SettingsDialog::selectTab(SettingsDialogTab *tab, bool byUser)
{ {
this->ui_.pageStack->setCurrentWidget(tab->getSettingsPage()); this->ui_.pageStack->setCurrentWidget(tab->page());
if (this->selectedTab_ != nullptr) if (this->selectedTab_ != nullptr)
{ {
@ -256,7 +256,7 @@ void SettingsDialog::refresh()
for (auto *tab : this->tabs_) for (auto *tab : this->tabs_)
{ {
tab->getSettingsPage()->onShow(); tab->page()->onShow();
} }
} }
@ -304,7 +304,7 @@ void SettingsDialog::onCancelClicked()
{ {
for (auto &tab : this->tabs_) for (auto &tab : this->tabs_)
{ {
tab->getSettingsPage()->cancel(); tab->page()->cancel();
} }
getSettings()->restoreSnapshot(); getSettings()->restoreSnapshot();

View file

@ -34,7 +34,7 @@ void SettingsDialogTab::setSelected(bool _selected)
emit selectedChanged(selected_); emit selectedChanged(selected_);
} }
SettingsPage *SettingsDialogTab::getSettingsPage() SettingsPage *SettingsDialogTab::page()
{ {
return this->page_; return this->page_;
} }

View file

@ -20,7 +20,7 @@ public:
QString imageFileName); QString imageFileName);
void setSelected(bool selected_); void setSelected(bool selected_);
SettingsPage *getSettingsPage(); SettingsPage *page();
signals: signals:
void selectedChanged(bool); void selectedChanged(bool);