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
486cc40a
Commit
486cc40a
authored
Feb 12, 2010
by
Christiaan Janssen
Browse files
QmlDesigner.Navigator: minor cosmetic changes
parent
4e18decb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp
View file @
486cc40a
...
...
@@ -69,9 +69,9 @@ public:
drawSelectionBackground
(
painter
,
*
option
);
}
else
{
painter
->
save
();
painter
->
setPen
(
QColor
(
0
,
0
,
0
,
25
));
painter
->
drawLine
(
option
->
rect
.
bottomLeft
()
-
QPoint
(
0
,
1
),
option
->
rect
.
bottomRight
()
-
QPoint
(
0
,
1
));
painter
->
setPen
(
QColor
(
255
,
255
,
255
,
15
));
painter
->
drawLine
(
option
->
rect
.
topLeft
(),
option
->
rect
.
topRight
());
painter
->
setPen
(
QColor
(
0
,
0
,
0
,
25
));
painter
->
drawLine
(
option
->
rect
.
bottomLeft
(),
option
->
rect
.
bottomRight
());
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
()
+
1
,
pixmap
);
painter
->
drawPixmap
(
option
.
rect
.
x
()
+
5
,
option
.
rect
.
y
()
+
2
,
pixmap
);
QString
myString
=
node
.
id
();
if
(
myString
.
isEmpty
())
...
...
src/plugins/qmldesigner/components/navigator/navigatorwidget.cpp
View file @
486cc40a
...
...
@@ -80,7 +80,7 @@ void NavigatorWidget::setTreeModel(QAbstractItemModel* model)
{
m_treeView
->
setModel
(
model
);
m_treeView
->
header
()
->
setResizeMode
(
0
,
QHeaderView
::
Stretch
);
m_treeView
->
header
()
->
resizeSection
(
1
,
2
0
);
m_treeView
->
header
()
->
resizeSection
(
1
,
2
6
);
m_treeView
->
setRootIsDecorated
(
false
);
#ifdef _LOCK_ITEMS_
m_treeView
->
header
()
->
resizeSection
(
2
,
20
);
...
...
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