diff options
author | flow <flowlnlnln@gmail.com> | 2022-10-14 14:09:41 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-12-06 16:54:54 -0300 |
commit | 9e17ff884f84601bd6e48721b32c2af51ca8ee7d (patch) | |
tree | 33f1dc7ce6f16aa8677b113b87306cf54bb270e5 /launcher/ui/widgets/PageContainer.cpp | |
parent | 1c567232e3a241cb7be767756c88350ec62335a1 (diff) | |
download | PrismLauncher-9e17ff884f84601bd6e48721b32c2af51ca8ee7d.tar.gz PrismLauncher-9e17ff884f84601bd6e48721b32c2af51ca8ee7d.tar.bz2 PrismLauncher-9e17ff884f84601bd6e48721b32c2af51ca8ee7d.zip |
feat: add PageContainer::getPage
This allows us to directly access a page from outside. This will be
useful for telling the ManagedPackPage who is the window it's on, so
that we can close it when updating :^)
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/ui/widgets/PageContainer.cpp')
-rw-r--r-- | launcher/ui/widgets/PageContainer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/ui/widgets/PageContainer.cpp b/launcher/ui/widgets/PageContainer.cpp index 8d606820..0a06a351 100644 --- a/launcher/ui/widgets/PageContainer.cpp +++ b/launcher/ui/widgets/PageContainer.cpp @@ -130,6 +130,11 @@ bool PageContainer::selectPage(QString pageId) return false; } +BasePage* PageContainer::getPage(QString pageId) +{ + return m_model->findPageEntryById(pageId); +} + void PageContainer::refreshContainer() { m_proxyModel->invalidate(); |