From 9e17ff884f84601bd6e48721b32c2af51ca8ee7d Mon Sep 17 00:00:00 2001 From: flow <flowlnlnln@gmail.com> Date: Fri, 14 Oct 2022 14:09:41 -0300 Subject: 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> --- launcher/ui/widgets/PageContainer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'launcher/ui/widgets/PageContainer.cpp') 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(); -- cgit