Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Joao Oliveira
Okular
Commits
e8804c18
Commit
e8804c18
authored
Dec 18, 2008
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update m_showMenuBarAction on the proper time
BUG: 178020 svn path=/trunk/KDE/kdegraphics/okular/; revision=898742
parent
2eecd577
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
shell/shell.cpp
shell/shell.cpp
+7
-1
shell/shell.h
shell/shell.h
+2
-0
No files found.
shell/shell.cpp
View file @
e8804c18
...
...
@@ -87,7 +87,6 @@ void Shell::init()
createGUI
(
m_part
);
m_showToolBarAction
=
static_cast
<
KToggleAction
*>
(
toolBarMenuAction
());
m_doc
=
qobject_cast
<
KDocumentViewer
*>
(
m_part
);
m_showMenuBarAction
->
setChecked
(
menuBar
()
->
isVisible
()
);
}
connect
(
this
,
SIGNAL
(
restoreDocument
(
const
KConfigGroup
&
)
),
m_part
,
SLOT
(
restoreDocument
(
const
KConfigGroup
&
)));
...
...
@@ -271,6 +270,13 @@ void Shell::setFullScreen( bool useFullScreen )
setWindowState
(
windowState
()
&
~
Qt
::
WindowFullScreen
);
// reset
}
void
Shell
::
showEvent
(
QShowEvent
*
e
)
{
m_showMenuBarAction
->
setChecked
(
menuBar
()
->
isVisible
()
);
KParts
::
MainWindow
::
showEvent
(
e
);
}
void
Shell
::
slotUpdateFullScreen
()
{
if
(
m_fullScreenAction
->
isChecked
())
...
...
shell/shell.h
View file @
e8804c18
...
...
@@ -67,6 +67,8 @@ protected:
void
writeSettings
();
void
setFullScreen
(
bool
);
void
showEvent
(
QShowEvent
*
event
);
private
slots
:
void
fileOpen
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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