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
Marco Bubke
flatpak-qt-creator
Commits
986d6d01
Commit
986d6d01
authored
Jan 29, 2010
by
Christiaan Janssen
Browse files
QmlDesigner.navigator: No icons in the metatype system yet
parent
913410c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/navigator/navigatorview.cpp
View file @
986d6d01
...
...
@@ -85,7 +85,7 @@ namespace QmlDesigner {
// QIcon icon=node.metaInfo().icon();
// if (icon.isNull()) icon = QIcon(":/ItemLibrary/images/default-icon.png");
// QPixmap pixmap = icon.pixmap(option.rect.width(),option.rect.height());
// painter->drawPixmap(option.rect.x(),option.rect.y(),pixmap);
// painter->drawPixmap(option.rect.x()
+1
,option.rect.y(),pixmap);
QString
myString
=
node
.
id
();
if
(
myString
.
isEmpty
())
...
...
@@ -96,6 +96,7 @@ namespace QmlDesigner {
font
.
setBold
(
true
);
painter
->
setFont
(
font
);
}
// painter->drawText(option.rect.bottomLeft()+QPoint(4+pixmap.width(),-4),myString);
painter
->
drawText
(
option
.
rect
.
bottomLeft
()
+
QPoint
(
4
,
-
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