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) ...@@ -218,7 +218,8 @@ void NavigatorTreeModel::updateItemRow(const ModelNode &node, ItemRow items)
bool blockSignal = blockItemChangedSignal(true); bool blockSignal = blockItemChangedSignal(true);
items.idItem->setText(node.id()); 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); items.visibilityItem->setCheckState(node.auxiliaryData("invisible").toBool() ? Qt::Unchecked : Qt::Checked);
blockItemChangedSignal(blockSignal); blockItemChangedSignal(blockSignal);
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#include <nodeproperty.h> #include <nodeproperty.h>
#define _separator_line_color_ "#5f5f5f"
namespace QmlDesigner { namespace QmlDesigner {
QSize IconCheckboxItemDelegate::sizeHint(const QStyleOptionViewItem &option, QSize IconCheckboxItemDelegate::sizeHint(const QStyleOptionViewItem &option,
...@@ -60,7 +62,7 @@ void IconCheckboxItemDelegate::paint(QPainter *painter, ...@@ -60,7 +62,7 @@ void IconCheckboxItemDelegate::paint(QPainter *painter,
painter->drawPixmap(option.rect.x()+2,option.rect.y()+1,offPix); painter->drawPixmap(option.rect.x()+2,option.rect.y()+1,offPix);
painter->setOpacity(1.0); painter->setOpacity(1.0);
painter->setPen(QColor("#4f4f4f")); painter->setPen(QColor(_separator_line_color_));
painter->drawLine(option.rect.topLeft(),option.rect.bottomLeft()); painter->drawLine(option.rect.topLeft(),option.rect.bottomLeft());
painter->restore(); painter->restore();
...@@ -99,7 +101,7 @@ void NavigatorTreeView::drawRow(QPainter *painter, const QStyleOptionViewItem &o ...@@ -99,7 +101,7 @@ void NavigatorTreeView::drawRow(QPainter *painter, const QStyleOptionViewItem &o
painter->save(); painter->save();
QTreeView::drawRow(painter,options,index); 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.bottomLeft(),options.rect.bottomRight());
// painter->drawLine(options.rect.topLeft(),options.rect.topRight()); // painter->drawLine(options.rect.topLeft(),options.rect.topRight());
......
Markdown is supported
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