diff options
author | Simjees Abraham <simjees.abraham@nokia.com> | 2012-04-11 12:56:25 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-11 13:34:04 +0200 |
commit | e2a1f1fa55ca590be3023a88dc9acbef711cb57e (patch) | |
tree | bbe62a27880c00e37b314f603939e5363d56cc26 /src/plugins | |
parent | 65bfc35429e845cf6b76d58107360a1360a654fc (diff) |
Debugger: Inspect tool - changes made to highlight on selection
Changes made for the display of highlight on selection such that the
highlight is more prominent.
Change-Id: Iaf06bd04095be7b25881681e3f81c0fbf87df205
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/qmltooling/qmldbg_qtquick2/highlight.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/qmltooling/qmldbg_qtquick2/highlight.cpp b/src/plugins/qmltooling/qmldbg_qtquick2/highlight.cpp index da959933f7..082f8e8854 100644 --- a/src/plugins/qmltooling/qmldbg_qtquick2/highlight.cpp +++ b/src/plugins/qmltooling/qmldbg_qtquick2/highlight.cpp @@ -90,6 +90,14 @@ void HoverHighlight::paint(QPainter *painter) void SelectionHighlight::paint(QPainter *painter) { + if (height() >= 10 && width() >= 10) { + QColor colorHighlight = Qt::green; + + painter->fillRect(QRectF(0, 0, width(), 5), colorHighlight); + painter->fillRect(QRectF(0, height()-5, width(), 5), colorHighlight); + painter->fillRect(QRectF(0, 5, 5, height() - 10), colorHighlight); + painter->fillRect(QRectF(width()-5, 5, 5, height() - 10), colorHighlight); + } painter->setPen(QPen(QColor(0, 22, 159))); painter->drawRect(QRect(1, 1, width() - 3, height() - 3)); painter->setPen(QColor(158, 199, 255)); |