QmlDebug: Selection Tool Highlight
authorAurindam Jana <aurindam.jana@nokia.com>
Mon, 2 Apr 2012 07:19:13 +0000 (09:19 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 10 Apr 2012 11:11:00 +0000 (13:11 +0200)
Show a light color overlay when hovering and a darker
overlay on selection.

Change-Id: I57c04840558a7345b7d5b0b8406c6e6dec72fde4
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
src/plugins/qmltooling/qmldbg_qtquick2/highlight.cpp

index bb4048e..da95993 100644 (file)
@@ -81,14 +81,14 @@ void Highlight::adjust()
 }
 
 
-void SelectionHighlight::paint(QPainter *painter)
+void HoverHighlight::paint(QPainter *painter)
 {
     painter->setPen(QColor(108, 141, 221));
     painter->drawRect(QRect(0, 0, width() - 1, height() - 1));
 }
 
 
-void HoverHighlight::paint(QPainter *painter)
+void SelectionHighlight::paint(QPainter *painter)
 {
     painter->setPen(QPen(QColor(0, 22, 159)));
     painter->drawRect(QRect(1, 1, width() - 3, height() - 3));