Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Office
Calligra
Commits
d8abe220
Commit
d8abe220
authored
Jul 08, 2011
by
Sven Langkamp
Browse files
remove fullscreen action
BUG:276798
parent
d5164838
Changes
1
Hide whitespace changes
Inline
Side-by-side
krita/ui/kis_view2.cpp
View file @
d8abe220
...
...
@@ -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
,
" "
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment