[Kst] branches/work/kst/portto4/kst/src/libkstapp
Adam Treat
treat at kde.org
Sat May 26 04:48:27 CEST 2007
SVN commit 668339 by treat:
* Use proper cursors
M +2 -0 kstplotitems.cpp
M +4 -0 kstplotview.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/kstplotitems.cpp #668338:668339
@@ -50,6 +50,7 @@
: KstPlotItem(parent) {
setFlags(ItemIsMovable | ItemIsSelectable | ItemIsFocusable);
parent->setMouseMode(KstPlotView::Create);
+ parent->setCursor(Qt::IBeamCursor);
//If the mouseMode is changed again before we're done with creation
//delete ourself.
@@ -100,6 +101,7 @@
: KstPlotItem(parent) {
setFlags(ItemIsMovable | ItemIsSelectable | ItemIsFocusable);
parent->setMouseMode(KstPlotView::Create);
+ parent->setCursor(Qt::CrossCursor);
//If the mouseMode is changed again before we're done with creation
//delete ourself.
--- branches/work/kst/portto4/kst/src/libkstapp/kstplotview.cpp #668338:668339
@@ -61,6 +61,10 @@
_mouseMode = mode;
+ if (_mouseMode != Create) {
+ setCursor(Qt::ArrowCursor);
+ }
+
emit mouseModeChanged();
}
More information about the Kst
mailing list