[Kst] branches/work/kst/portto4/kst/src/libkstapp
Peter Kümmel
syntheticpp at gmx.net
Thu Sep 2 10:11:21 CEST 2010
SVN commit 1170827 by kuemmel:
show cursor as Qt::SizeVerCursor only on mouse events because shift is also used for arrow key controlled zooming
BUG:247637
M +3 -1 plotrenderitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.cpp #1170826:1170827
@@ -373,7 +373,8 @@
const Qt::KeyboardModifiers modifiers = QApplication::keyboardModifiers();
if (modifiers & Qt::ShiftModifier) {
- parentView()->setCursor(Qt::SizeVerCursor);
+ // show cursor as Qt::SizeVerCursor only on mouse events
+ // because shift is also used for arrow key controlled zooming
} else if (modifiers & Qt::ControlModifier) {
parentView()->setCursor(Qt::SizeHorCursor);
}
@@ -427,6 +428,7 @@
const QPointF p = event->pos();
const Qt::KeyboardModifiers modifiers = QApplication::keyboardModifiers();
if (modifiers & Qt::ShiftModifier) {
+ parentView()->setCursor(Qt::SizeVerCursor);
_selectionRect.setTo(QPointF(rect().right(), p.y()));
} else if (modifiers & Qt::ControlModifier) {
_selectionRect.setTo(QPointF(p.x(), rect().bottom()));
More information about the Kst
mailing list