Make selectedPage
const 🤦♀️
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
1f16380efc
commit
dea33a3c1d
@ -264,7 +264,7 @@ bool InstanceWindow::selectPage(QString pageId)
|
||||
return m_container->selectPage(pageId);
|
||||
}
|
||||
|
||||
BasePage* InstanceWindow::selectedPage()
|
||||
BasePage* InstanceWindow::selectedPage() const
|
||||
{
|
||||
return m_container->selectedPage();
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
virtual ~InstanceWindow();
|
||||
|
||||
bool selectPage(QString pageId) override;
|
||||
BasePage* selectedPage() override;
|
||||
BasePage* selectedPage() const override;
|
||||
void refreshContainer() override;
|
||||
|
||||
QString instanceId();
|
||||
|
@ -7,7 +7,7 @@ class BasePageContainer
|
||||
public:
|
||||
virtual ~BasePageContainer(){};
|
||||
virtual bool selectPage(QString pageId) = 0;
|
||||
virtual BasePage* selectedPage() = 0;
|
||||
virtual BasePage* selectedPage() const = 0;
|
||||
virtual BasePage* getPage(QString pageId) { return nullptr; };
|
||||
virtual void refreshContainer() = 0;
|
||||
virtual bool requestClose() = 0;
|
||||
|
@ -138,7 +138,7 @@ BasePage* PageContainer::getPage(QString pageId)
|
||||
return m_model->findPageEntryById(pageId);
|
||||
}
|
||||
|
||||
BasePage* PageContainer::selectedPage()
|
||||
BasePage* PageContainer::selectedPage() const
|
||||
{
|
||||
return m_currentPage;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user