Фазы 2-3: мульти-окна (WindowController, per-window FileStore), файловое дерево (FileStore+FileTreePanel, иконки/раскрытие/ПКМ/+drag&drop/подтверждения), NameDialog/ConfirmDialog; тест filestore (13/13)
This commit is contained in:
+9
-1
@@ -4,6 +4,7 @@
|
||||
#include <QCommandLineParser>
|
||||
|
||||
#include "app/VaultManager.h"
|
||||
#include "app/WindowController.h"
|
||||
#include "core/SettingsStore.h"
|
||||
#include "git/GitManager.h"
|
||||
#include "sync/SyncManager.h"
|
||||
@@ -42,7 +43,14 @@ int main(int argc, char *argv[])
|
||||
engine.rootContext()->setContextProperty("gitManager", &gitManager);
|
||||
engine.rootContext()->setContextProperty("syncManager", &syncManager);
|
||||
engine.rootContext()->setContextProperty("vaultManager", &vaultManager);
|
||||
engine.loadFromModule("Flora", "MainWindow");
|
||||
|
||||
WindowController windowController(
|
||||
&engine, QStringLiteral("qrc:/qt/qml/Flora/qml/MainWindow.qml"));
|
||||
engine.rootContext()->setContextProperty("windowController", &windowController);
|
||||
|
||||
// Основное окно = последнее (основное) хранилище. Если хранилищ нет —
|
||||
// откроется мастер первого запуска.
|
||||
windowController.openWindow(settingsStore.currentVault());
|
||||
|
||||
if (engine.rootObjects().isEmpty())
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user