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
1ea114b4
Commit
1ea114b4
authored
Feb 18, 2010
by
Jens Bache-Wiig
Browse files
Make the panel action sunken when panel is open
parent
41885a19
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/fancyactionbar.cpp
View file @
1ea114b4
...
...
@@ -106,7 +106,7 @@ void FancyToolButton::paintEvent(QPaintEvent *event)
painter
.
restore
();
}
else
#endif
#endif
if
(
isDown
()
||
isChecked
())
{
painter
.
save
();
QLinearGradient
grad
(
rect
().
topLeft
(),
rect
().
topRight
());
...
...
src/plugins/projectexplorer/miniprojecttargetselector.cpp
View file @
1ea114b4
...
...
@@ -294,7 +294,6 @@ bool MiniTargetWidget::hasBuildConfiguration() const
return
(
m_target
->
buildConfigurationFactory
()
!=
0
);
}
MiniProjectTargetSelector
::
MiniProjectTargetSelector
(
QAction
*
targetSelectorAction
,
QWidget
*
parent
)
:
QWidget
(
parent
),
m_projectAction
(
targetSelectorAction
)
{
...
...
@@ -352,6 +351,8 @@ void MiniProjectTargetSelector::setVisible(bool visible)
QWidget
::
setVisible
(
visible
);
if
(
m_widgetStack
->
currentWidget
())
m_widgetStack
->
currentWidget
()
->
setFocus
();
m_projectAction
->
setChecked
(
visible
);
}
void
MiniProjectTargetSelector
::
addProject
(
ProjectExplorer
::
Project
*
project
)
...
...
src/plugins/projectexplorer/projectexplorer.cpp
View file @
1ea114b4
...
...
@@ -695,6 +695,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
// target selector
d
->
m_projectSelectorAction
=
new
QAction
(
this
);
d
->
m_projectSelectorAction
->
setCheckable
(
true
);
d
->
m_projectSelectorAction
->
setEnabled
(
false
);
QWidget
*
mainWindow
=
Core
::
ICore
::
instance
()
->
mainWindow
();
d
->
m_targetSelector
=
new
Internal
::
MiniProjectTargetSelector
(
d
->
m_projectSelectorAction
,
mainWindow
);
...
...
Write
Preview
Supports
Markdown
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