Commit d8abe220 authored by Sven Langkamp's avatar Sven Langkamp
Browse files

remove fullscreen action

BUG:276798
parent d5164838
......@@ -311,6 +311,13 @@ KisView2::KisView2(KisDoc2 * doc, QWidget * parent)
actionCollection()->addAction("showStatusBar", tAction);
connect(tAction, SIGNAL(toggled(bool)), this, SLOT(showStatusBar(bool)));
//Remove KoMainWindow fullscreen before adding Krita specific fullscreen
QAction* oldFullscreen = shell()->actionCollection()->action("view_fullscreen");
if(oldFullscreen) {
shell()->actionCollection()->takeAction(oldFullscreen);
delete oldFullscreen;
}
tAction = new KToggleAction(i18n("Show Canvas Only"), this);
tAction->setCheckedState(KGuiItem(i18n("Return to Window")));
tAction->setToolTip(i18n("Shows just the canvas or the whole window"));
......@@ -336,13 +343,6 @@ KisView2::KisView2(KisDoc2 * doc, QWidget * parent)
action->setShortcut(QKeySequence(), KAction::ActiveShortcut);
}
//Workaround, by default has the same shortcut as full-screen
action = dynamic_cast<KAction*>(shell()->actionCollection()->action("view_fullscreen"));
if (action) {
action->setShortcut(QKeySequence(), KAction::DefaultShortcut);
action->setShortcut(QKeySequence(), KAction::ActiveShortcut);
}
if (shell())
{
KoToolBoxFactory toolBoxFactory(m_d->canvasController, " ");
......
Supports Markdown
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