Commit fbee8695 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.Navigator:Tooltips enabled in all items, they show full item type name

parent 18445dc9
......@@ -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);
......
......@@ -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());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment