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
4f971b9b
Commit
4f971b9b
authored
Feb 11, 2010
by
Christiaan Janssen
Browse files
QmlDesigner.Navigator: Recentered the icons one pixel up
parent
d7745b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp
View file @
4f971b9b
...
...
@@ -114,9 +114,9 @@ void IconCheckboxItemDelegate::paint(QPainter *painter,
painter
->
setOpacity
(
0.5
);
if
(
isChecked
)
painter
->
drawPixmap
(
option
.
rect
.
x
()
+
2
,
option
.
rect
.
y
()
+
6
,
onPix
);
painter
->
drawPixmap
(
option
.
rect
.
x
()
+
2
,
option
.
rect
.
y
()
+
5
,
onPix
);
else
painter
->
drawPixmap
(
option
.
rect
.
x
()
+
2
,
option
.
rect
.
y
()
+
6
,
offPix
);
painter
->
drawPixmap
(
option
.
rect
.
x
()
+
2
,
option
.
rect
.
y
()
+
5
,
offPix
);
painter
->
restore
();
}
...
...
@@ -152,7 +152,7 @@ void IdItemDelegate::paint(QPainter *painter,
}
QPixmap
pixmap
=
icon
.
pixmap
(
22
,
22
);
painter
->
drawPixmap
(
option
.
rect
.
x
()
+
5
,
option
.
rect
.
y
()
+
2
,
pixmap
);
painter
->
drawPixmap
(
option
.
rect
.
x
()
+
5
,
option
.
rect
.
y
()
+
1
,
pixmap
);
QString
myString
=
node
.
id
();
if
(
myString
.
isEmpty
())
...
...
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