diff --git a/src/widgets/dialogs/SettingsDialog.cpp b/src/widgets/dialogs/SettingsDialog.cpp index e9769e3fd..414aaa4c3 100644 --- a/src/widgets/dialogs/SettingsDialog.cpp +++ b/src/widgets/dialogs/SettingsDialog.cpp @@ -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(); diff --git a/src/widgets/helper/SettingsDialogTab.cpp b/src/widgets/helper/SettingsDialogTab.cpp index 8089bf803..b74cf60da 100644 --- a/src/widgets/helper/SettingsDialogTab.cpp +++ b/src/widgets/helper/SettingsDialogTab.cpp @@ -34,7 +34,7 @@ void SettingsDialogTab::setSelected(bool _selected) emit selectedChanged(selected_); } -SettingsPage *SettingsDialogTab::getSettingsPage() +SettingsPage *SettingsDialogTab::page() { return this->page_; } diff --git a/src/widgets/helper/SettingsDialogTab.hpp b/src/widgets/helper/SettingsDialogTab.hpp index dfb765b16..3ee7609b3 100644 --- a/src/widgets/helper/SettingsDialogTab.hpp +++ b/src/widgets/helper/SettingsDialogTab.hpp @@ -20,7 +20,7 @@ public: QString imageFileName); void setSelected(bool selected_); - SettingsPage *getSettingsPage(); + SettingsPage *page(); signals: void selectedChanged(bool);