QmlDesigner.ItemLibrary: Removed row separators in resources view

This is to keep the resources view in the same look as the
navigator view.
This commit is contained in:
Jörg Schummer
2010-04-15 15:58:05 +03:00
committed by Kai Koehne
parent 981288d947
commit b5c7bc1c3d

View File

@@ -75,16 +75,8 @@ public:
void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget * = 0) const
{
if (element == QStyle::PE_PanelItemViewRow) {
if (option->state & QStyle::State_Selected) {
if (option->state & QStyle::State_Selected)
drawSelectionBackground(painter, *option);
} else {
painter->save();
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();
}
}
}
int styleHint(StyleHint hint, const QStyleOption *option = 0, const QWidget *widget = 0, QStyleHintReturn *returnData = 0) const {