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/.
14 lines
331 B
C++
14 lines
331 B
C++
#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);
|
|
}
|