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