Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
d19ba169
Commit
d19ba169
authored
Jan 20, 2009
by
hjk
Browse files
Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline
parents
667255c4
a654dc0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/mainwindow.cpp
View file @
d19ba169
...
...
@@ -203,14 +203,14 @@ MainWindow::MainWindow() :
statusBar
()
->
setProperty
(
"p_styled"
,
true
);
}
void
MainWindow
::
toggleNavigation
(
)
void
MainWindow
::
setSidebarVisible
(
bool
visible
)
{
if
(
NavigationWidgetPlaceHolder
::
current
())
{
if
(
m_navigationWidget
->
isSuppressed
())
{
if
(
m_navigationWidget
->
isSuppressed
()
&&
visible
)
{
m_navigationWidget
->
setShown
(
true
);
m_navigationWidget
->
setSuppressed
(
false
);
}
else
{
m_navigationWidget
->
setShown
(
!
m_navigationWidget
->
isShown
()
);
m_navigationWidget
->
setShown
(
visible
);
}
}
}
...
...
@@ -627,7 +627,7 @@ void MainWindow::registerDefaultActions()
// Toggle Sidebar Action
m_toggleSideBarAction
=
new
QAction
(
QIcon
(
Constants
::
ICON_TOGGLE_SIDEBAR
),
tr
(
"
Toggle
Sidebar"
),
this
);
tr
(
"
Show
Sidebar"
),
this
);
m_toggleSideBarAction
->
setCheckable
(
true
);
cmd
=
am
->
registerAction
(
m_toggleSideBarAction
,
Constants
::
TOGGLE_SIDEBAR
,
m_globalContext
);
#ifdef Q_OS_MAC
...
...
@@ -635,7 +635,7 @@ void MainWindow::registerDefaultActions()
#else
cmd
->
setDefaultKeySequence
(
QKeySequence
(
"Alt+0"
));
#endif
connect
(
m_toggleSideBarAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
toggleNavigation
(
)));
connect
(
m_toggleSideBarAction
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
setSidebarVisible
(
bool
)));
m_toggleSideBarButton
->
setDefaultAction
(
cmd
->
action
());
mwindow
->
addAction
(
cmd
,
Constants
::
G_WINDOW_PANES
);
m_toggleSideBarAction
->
setEnabled
(
false
);
...
...
src/plugins/coreplugin/mainwindow.h
View file @
d19ba169
...
...
@@ -158,7 +158,7 @@ private slots:
void
aboutQtCreator
();
void
aboutPlugins
();
void
updateFocusWidget
(
QWidget
*
old
,
QWidget
*
now
);
void
toggleNavigation
(
);
void
setSidebarVisible
(
bool
visible
);
void
destroyVersionDialog
();
private:
...
...
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