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
fbee8695
Commit
fbee8695
authored
Feb 03, 2010
by
Christiaan Janssen
Browse files
QmlDesigner.Navigator:Tooltips enabled in all items, they show full item type name
parent
18445dc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp
View file @
fbee8695
...
...
@@ -218,7 +218,8 @@ void NavigatorTreeModel::updateItemRow(const ModelNode &node, ItemRow items)
bool
blockSignal
=
blockItemChangedSignal
(
true
);
items
.
idItem
->
setText
(
node
.
id
());
items
.
idItem
->
setToolTip
(
!
node
.
id
().
isEmpty
()
?
node
.
simplifiedTypeName
()
:
""
);
//items.idItem->setToolTip(!node.id().isEmpty()?node.type():"");
items
.
idItem
->
setToolTip
(
node
.
type
());
items
.
visibilityItem
->
setCheckState
(
node
.
auxiliaryData
(
"invisible"
).
toBool
()
?
Qt
::
Unchecked
:
Qt
::
Checked
);
blockItemChangedSignal
(
blockSignal
);
...
...
src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp
View file @
fbee8695
...
...
@@ -35,6 +35,8 @@
#include
<nodeproperty.h>
#define _separator_line_color_ "#5f5f5f"
namespace
QmlDesigner
{
QSize
IconCheckboxItemDelegate
::
sizeHint
(
const
QStyleOptionViewItem
&
option
,
...
...
@@ -60,7 +62,7 @@ void IconCheckboxItemDelegate::paint(QPainter *painter,
painter
->
drawPixmap
(
option
.
rect
.
x
()
+
2
,
option
.
rect
.
y
()
+
1
,
offPix
);
painter
->
setOpacity
(
1.0
);
painter
->
setPen
(
QColor
(
"#4f4f4f"
));
painter
->
setPen
(
QColor
(
_separator_line_color_
));
painter
->
drawLine
(
option
.
rect
.
topLeft
(),
option
.
rect
.
bottomLeft
());
painter
->
restore
();
...
...
@@ -99,7 +101,7 @@ void NavigatorTreeView::drawRow(QPainter *painter, const QStyleOptionViewItem &o
painter
->
save
();
QTreeView
::
drawRow
(
painter
,
options
,
index
);
painter
->
setPen
(
QColor
(
"#4f4f4f"
));
painter
->
setPen
(
QColor
(
_separator_line_color_
));
painter
->
drawLine
(
options
.
rect
.
bottomLeft
(),
options
.
rect
.
bottomRight
());
// painter->drawLine(options.rect.topLeft(),options.rect.topRight());
...
...
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