summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-08-10 14:54:59 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2011-08-10 14:54:59 (GMT)
commit9c6a2bf5ac8263ce33a1f72bf2525669c98c12fc (patch)
tree3919cd07853fb460d9273164931b3b11ab551769
parent857c7072320339a6ff114b6a18fef939b54d8026 (diff)
downloadQt-9c6a2bf5ac8263ce33a1f72bf2525669c98c12fc.zip
Qt-9c6a2bf5ac8263ce33a1f72bf2525669c98c12fc.tar.gz
Qt-9c6a2bf5ac8263ce33a1f72bf2525669c98c12fc.tar.bz2
QmlInspector: Fix compile for QT_NO_CURSOR
Change-Id: I0686ba006e6ab42dbd08cda6d36874d1c99009fe
-rw-r--r--src/plugins/qmltooling/qmldbg_inspector/editor/colorpickertool.cpp2
-rw-r--r--src/plugins/qmltooling/qmldbg_inspector/editor/liveselectiontool.cpp2
-rw-r--r--src/plugins/qmltooling/qmldbg_inspector/editor/zoomtool.cpp2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/qmltooling/qmldbg_inspector/editor/colorpickertool.cpp b/src/plugins/qmltooling/qmldbg_inspector/editor/colorpickertool.cpp
index 72e1380..efb5471 100644
--- a/src/plugins/qmltooling/qmldbg_inspector/editor/colorpickertool.cpp
+++ b/src/plugins/qmltooling/qmldbg_inspector/editor/colorpickertool.cpp
@@ -75,7 +75,9 @@ void ColorPickerTool::mouseMoveEvent(QMouseEvent *event)
void ColorPickerTool::clear()
{
+#ifndef QT_NO_CURSOR
view()->setCursor(Qt::CrossCursor);
+#endif
}
void ColorPickerTool::pickColor(const QPoint &pos)
diff --git a/src/plugins/qmltooling/qmldbg_inspector/editor/liveselectiontool.cpp b/src/plugins/qmltooling/qmldbg_inspector/editor/liveselectiontool.cpp
index 6085d81..3b2493a 100644
--- a/src/plugins/qmltooling/qmldbg_inspector/editor/liveselectiontool.cpp
+++ b/src/plugins/qmltooling/qmldbg_inspector/editor/liveselectiontool.cpp
@@ -363,7 +363,9 @@ void LiveSelectionTool::setSelectOnlyContentItems(bool selectOnlyContentItems)
void LiveSelectionTool::clear()
{
+#ifndef QT_NO_CURSOR
view()->setCursor(Qt::ArrowCursor);
+#endif
m_rubberbandSelectionManipulator.clear(),
m_singleSelectionManipulator.clear();
m_selectionIndicator.clear();
diff --git a/src/plugins/qmltooling/qmldbg_inspector/editor/zoomtool.cpp b/src/plugins/qmltooling/qmldbg_inspector/editor/zoomtool.cpp
index c8ade82..b66bc14 100644
--- a/src/plugins/qmltooling/qmldbg_inspector/editor/zoomtool.cpp
+++ b/src/plugins/qmltooling/qmldbg_inspector/editor/zoomtool.cpp
@@ -244,7 +244,9 @@ void ZoomTool::keyReleaseEvent(QKeyEvent *event)
void ZoomTool::clear()
{
+#ifndef QT_NO_CURSOR
view()->setCursor(Qt::ArrowCursor);
+#endif
}
void ZoomTool::scaleView(const QPointF &centerPos)