refactor(pages): group the screens by what the user is doing
pages/ was a flat row of eight screens, so a change to one meant scanning the whole folder to see what else was in it. The screens now sit in packages/ (browse, cleanup), overview/ (dashboard, history), system/ (logs, settings) and extensions/ (plugins), with the scaffolding they all build on — the Page base and the shared widgets — in base/.
This commit is contained in:
19 files changed
+19
-19
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#include "page.h"
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
Page::Page(AppCore* core, QWidget* parent) : QWidget(parent), m_core(core) {}
|
||||
|
||||
QMainWindow* Page::mainWindow() const {
|
||||
return qobject_cast<QMainWindow*>(window());
|
||||
}
|
||||
|
||||
void Page::start(const AppCore::StartResult& result, const QString& title) {
|
||||
emit requestStart(result, title);
|
||||
}
|
||||
Reference in new issue
Block a user