mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-23 03:58:49 +00:00
parent
e94554b209
commit
d5317a91ba
@ -1,5 +1,6 @@
|
|||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QQmlApplicationEngine>
|
#include <QQmlApplicationEngine>
|
||||||
|
#include <QQmlContext>
|
||||||
|
|
||||||
#include "cachecleaner.h"
|
#include "cachecleaner.h"
|
||||||
#include "directorieswatcher.h"
|
#include "directorieswatcher.h"
|
||||||
@ -42,6 +43,9 @@ int main(int argc, char *argv[])
|
|||||||
for (const auto& path : additionalImportPaths)
|
for (const auto& path : additionalImportPaths)
|
||||||
engine.addImportPath(path);
|
engine.addImportPath(path);
|
||||||
|
|
||||||
|
engine.rootContext()->setContextProperty(
|
||||||
|
"pagesFolder", QML_IMPORT_ROOT + QStringLiteral("/pages"));
|
||||||
|
|
||||||
qmlRegisterType<FigmaDecoratorModel>("Storybook", 1, 0, "FigmaDecoratorModel");
|
qmlRegisterType<FigmaDecoratorModel>("Storybook", 1, 0, "FigmaDecoratorModel");
|
||||||
qmlRegisterType<FigmaLinksSource>("Storybook", 1, 0, "FigmaLinksSource");
|
qmlRegisterType<FigmaLinksSource>("Storybook", 1, 0, "FigmaLinksSource");
|
||||||
qmlRegisterType<PagesModelInitialized>("Storybook", 1, 0, "PagesModel");
|
qmlRegisterType<PagesModelInitialized>("Storybook", 1, 0, "PagesModel");
|
||||||
|
@ -102,9 +102,13 @@ ApplicationWindow {
|
|||||||
SplitView {
|
SplitView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Pane {
|
ColumnLayout {
|
||||||
SplitView.preferredWidth: 270
|
SplitView.preferredWidth: 270
|
||||||
|
|
||||||
|
Pane {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
@ -158,6 +162,14 @@ ApplicationWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
text: "Open pages directory"
|
||||||
|
|
||||||
|
onClicked: Qt.openUrlExternally(Qt.resolvedUrl(pagesFolder))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Page {
|
Page {
|
||||||
SplitView.fillWidth: true
|
SplitView.fillWidth: true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user