mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
getSettingsPage -> page
This commit is contained in:
parent
0bb112a3c2
commit
fbbf34878f
|
@ -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();
|
||||||
|
|
|
@ -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_;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue