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
Tobias Hunger
qt-creator
Commits
f2377d47
Commit
f2377d47
authored
Feb 10, 2010
by
Christiaan Janssen
Browse files
QmlDesigner.Navigator: Whole row semitransparent when visible unchecked
parent
90ca63ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp
View file @
f2377d47
...
...
@@ -76,6 +76,9 @@ void IdItemDelegate::paint(QPainter *painter,
if
(
option
.
state
&
QStyle
::
State_Selected
)
painter
->
fillRect
(
option
.
rect
,
option
.
palette
.
highlight
());
if
(
m_TreeModel
->
isNodeInvisible
(
index
))
painter
->
setOpacity
(
0.5
);
ModelNode
node
=
m_TreeModel
->
nodeForIndex
(
index
);
QIcon
icon
=
node
.
metaInfo
().
icon
();
...
...
@@ -116,8 +119,6 @@ void IdItemDelegate::paint(QPainter *painter,
}
}
if
(
m_TreeModel
->
isNodeInvisible
(
index
))
painter
->
setOpacity
(
0.5
);
painter
->
drawText
(
option
.
rect
.
bottomLeft
()
+
QPoint
(
8
+
pixmap
.
width
(),
-
4
),
myString
);
painter
->
restore
();
...
...
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