[Kst] branches/work/kst/portto4/kst/src/libkstapp
Mike Fenton
mike at staikos.net
Fri Jan 16 19:57:38 CET 2009
SVN commit 912130 by fenton:
Add Escape cancelling for LineItem.
M +5 -0 lineitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/lineitem.cpp #912129:912130
@@ -112,6 +112,11 @@
void LineItem::creationPolygonChanged(View::CreationEvent event) {
+ if (event == View::EscapeEvent) {
+ ViewItem::creationPolygonChanged(event);
+ return;
+ }
+
if (event == View::MousePress) {
const QPolygonF poly = mapFromScene(parentView()->creationPolygon(View::MousePress));
setPos(poly.first().x(), poly.first().y());
More information about the Kst
mailing list