Commit f42c8fa5 authored by Stuart Dickson's avatar Stuart Dickson

gemini: allow new actions in kritagemini.rc

Allow actions defined in kritagemini.rc to be
correctly displayed in the desktop window of
Krita Gemini
parent 4e6326db
......@@ -46,6 +46,7 @@
#include <ktoolbar.h>
#include <kmessagebox.h>
#include <kmenubar.h>
#include <kxmlguifactory.h>
#include <KoCanvasBase.h>
#include <KoMainWindow.h>
......@@ -454,6 +455,13 @@ void MainWindow::documentChanged()
qApp->processEvents();
d->desktopKisView = qobject_cast<KisView2*>(d->desktopView->rootView());
d->desktopKisView->setQtMainWindow(d->desktopView);
// Define new actions here
KXMLGUIFactory* factory = d->desktopKisView->factory();
factory->removeClient(d->desktopKisView);
factory->addClient(d->desktopKisView);
connect(d->desktopKisView, SIGNAL(sigLoadingFinished()), d->centerer, SLOT(start()));
connect(d->desktopKisView, SIGNAL(sigSavingFinished()), this, SLOT(resetWindowTitle()));
connect(d->desktopKisView->canvasBase()->resourceManager(), SIGNAL(canvasResourceChanged(int, const QVariant&)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment