Put in skeleton ui.
This commit is contained in:
@@ -11,12 +11,24 @@ Kirigami.ApplicationWindow {
|
|||||||
|
|
||||||
pageStack.initialPage: mainPageComponent
|
pageStack.initialPage: mainPageComponent
|
||||||
contextDrawer: Kirigami.ContextDrawer {}
|
contextDrawer: Kirigami.ContextDrawer {}
|
||||||
/*
|
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: mainPageComponent
|
id: mainPageComponent
|
||||||
|
|
||||||
Kirigami.Page {
|
Kirigami.Page {
|
||||||
|
id: mainPage
|
||||||
|
contextualActions: [
|
||||||
|
Kirigami.Action {
|
||||||
|
iconName: "help-about"
|
||||||
|
text: qsTr("About")
|
||||||
|
onTriggered: {
|
||||||
|
pageStack.replace(aboutPageComponent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
title: "Vehicles"
|
||||||
|
}
|
||||||
|
/*Kirigami.Page {
|
||||||
id: mainPage
|
id: mainPage
|
||||||
mainAction: Kirigami.Action {
|
mainAction: Kirigami.Action {
|
||||||
iconName: "view-refresh"
|
iconName: "view-refresh"
|
||||||
@@ -236,7 +248,7 @@ Kirigami.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
@@ -253,5 +265,5 @@ Kirigami.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
aboutData: appAboutData
|
aboutData: appAboutData
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
#include <QSqlError>
|
#include <QSqlError>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QSqlQuery>
|
#include <QSqlQuery>
|
||||||
|
#include <QQmlContext>
|
||||||
|
|
||||||
Q_DECL_EXPORT int main(int argc, char *argv[])
|
Q_DECL_EXPORT int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
@@ -67,6 +68,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
QQmlApplicationEngine engine;
|
QQmlApplicationEngine engine;
|
||||||
|
engine.rootContext()->setContextProperty(QStringLiteral("appAboutData"), QVariant::fromValue(aboutData));
|
||||||
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
|
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
|
||||||
|
|
||||||
if (engine.rootObjects().isEmpty()) {
|
if (engine.rootObjects().isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user