Make selectedPage const 🤦‍♀️

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2023-06-22 13:11:55 +01:00
parent 1f16380efc
commit dea33a3c1d
5 changed files with 5 additions and 5 deletions

View File

@ -138,7 +138,7 @@ BasePage* PageContainer::getPage(QString pageId)
return m_model->findPageEntryById(pageId);
}
BasePage* PageContainer::selectedPage()
BasePage* PageContainer::selectedPage() const
{
return m_currentPage;
}

View File

@ -80,7 +80,7 @@ public:
}
bool selectPage(QString pageId) override;
BasePage* selectedPage() override;
BasePage* selectedPage() const override;
BasePage* getPage(QString pageId) override;
const QList<BasePage*> getPages() const;