Changeset View
Changeset View
Standalone View
Standalone View
src/zanshin/app/main.cpp
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 102 | for (auto it = actions.constBegin(); it != actions.constEnd(); ++it) { | |||
---|---|---|---|---|---|
107 | ac->addAction(it.key(), it.value()); | 107 | ac->addAction(it.key(), it.value()); | ||
108 | } | 108 | } | ||
109 | 109 | | |||
110 | window->setupGUI(QSize(1024, 600), | 110 | window->setupGUI(QSize(1024, 600), | ||
111 | KXmlGuiWindow::ToolBar | 111 | KXmlGuiWindow::ToolBar | ||
112 | | KXmlGuiWindow::Keys | 112 | | KXmlGuiWindow::Keys | ||
113 | | KXmlGuiWindow::Save | 113 | | KXmlGuiWindow::Save | ||
114 | | KXmlGuiWindow::Create); | 114 | | KXmlGuiWindow::Create); | ||
115 | | ||||
116 | delete window->findChild<QAction*>("help_contents"); | ||||
117 | delete window->findChild<QAction*>("help_whats_this"); | ||||
118 | | ||||
115 | window->show(); | 119 | window->show(); | ||
116 | 120 | | |||
117 | { | 121 | { | ||
118 | auto &deps = Utils::DependencyManager::globalInstance(); | 122 | auto &deps = Utils::DependencyManager::globalInstance(); | ||
119 | auto repo = deps.create<Domain::DataSourceRepository>(); | 123 | auto repo = deps.create<Domain::DataSourceRepository>(); | ||
120 | repo->windowNeedsDataBackend(window); | 124 | repo->windowNeedsDataBackend(window); | ||
121 | } | 125 | } | ||
122 | 126 | | |||
123 | return app.exec(); | 127 | return app.exec(); | ||
124 | } | 128 | } |