Changeset View
Changeset View
Standalone View
Standalone View
src/zanshin/app/main.cpp
Show All 33 Lines | |||||
34 | #include "widgets/taskapplicationcomponents.h" | 34 | #include "widgets/taskapplicationcomponents.h" | ||
35 | #include "widgets/availablepagesview.h" | 35 | #include "widgets/availablepagesview.h" | ||
36 | #include "widgets/availablesourcesview.h" | 36 | #include "widgets/availablesourcesview.h" | ||
37 | #include "widgets/editorview.h" | 37 | #include "widgets/editorview.h" | ||
38 | #include "widgets/pageview.h" | 38 | #include "widgets/pageview.h" | ||
39 | 39 | | |||
40 | #include "presentation/taskapplicationmodel.h" | 40 | #include "presentation/taskapplicationmodel.h" | ||
41 | 41 | | |||
42 | #include "utils/dependencymanager.h" | ||||
43 | | ||||
42 | #include "aboutdata.h" | 44 | #include "aboutdata.h" | ||
43 | #include "dependencies.h" | 45 | #include "dependencies.h" | ||
44 | 46 | | |||
45 | #include <iostream> | 47 | #include <iostream> | ||
46 | #include <KAboutData> | 48 | #include <KAboutData> | ||
47 | #include <KLocalizedString> | 49 | #include <KLocalizedString> | ||
48 | #include <QCommandLineParser> | 50 | #include <QCommandLineParser> | ||
49 | 51 | | |||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 53 | { | |||
107 | 109 | | |||
108 | window->setupGUI(QSize(1024, 600), | 110 | window->setupGUI(QSize(1024, 600), | ||
109 | KXmlGuiWindow::ToolBar | 111 | KXmlGuiWindow::ToolBar | ||
110 | | KXmlGuiWindow::Keys | 112 | | KXmlGuiWindow::Keys | ||
111 | | KXmlGuiWindow::Save | 113 | | KXmlGuiWindow::Save | ||
112 | | KXmlGuiWindow::Create); | 114 | | KXmlGuiWindow::Create); | ||
113 | window->show(); | 115 | window->show(); | ||
114 | 116 | | |||
117 | { | ||||
118 | auto &deps = Utils::DependencyManager::globalInstance(); | ||||
119 | auto repo = deps.create<Domain::DataSourceRepository>(); | ||||
120 | repo->windowNeedsDataBackend(window); | ||||
121 | } | ||||
122 | | ||||
115 | return app.exec(); | 123 | return app.exec(); | ||
116 | } | 124 | } |