[Kst] branches/work/kst/portto4/kst/src/libkstapp

George Staikos staikos at kde.org
Tue Jun 19 06:26:28 CEST 2007


SVN commit 677389 by staikos:

update the TODO and fix a few quirks


 M  +2 -5      TODO  
 M  +6 -3      viewitem.cpp  
 M  +1 -0      viewitem.h  


--- branches/work/kst/portto4/kst/src/libkstapp/TODO #677388:677389
@@ -1,15 +1,12 @@
 View
 ----
 - arrows
-- resizing
-- undo/redo of selection moves
-- Undo/Redo for item select/focus/move and other ItemChanges
-- movement and other mouse manipulation in general needs work
 - Box the objects so they can't be dragged out of the visible size of scene
 - Kst2DPlot
 - Add properties to Items such as border, brush, pen, padding, etc
-- Item context menus
 - Create an ItemModel to map the items into a model
+- gradient editor doesn't work
+- Edit dialog needs to be parented and probably should be one-per-view
 
 
 Dialogs
--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #677388:677389
@@ -624,6 +624,11 @@
 }
 
 
+void ViewItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) {
+  edit();
+}
+
+
 void ViewItem::mousePressEvent(QGraphicsSceneMouseEvent *event) {
   QPointF p = event->pos();
   if (topLeftGrip().contains(p)) {
@@ -655,9 +660,7 @@
   if (parentView()->mouseMode() != View::Default) {
     parentView()->setMouseMode(View::Default);
     parentView()->undoStack()->endMacro();
-  }
-
-  if (!grips().contains(event->pos()) && event->button() & Qt::LeftButton) {
+  } else if (!grips().contains(event->pos()) && event->button() & Qt::LeftButton) {
     switch (_mouseMode) {
     case Default:
     case Move:
--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.h #677388:677389
@@ -94,6 +94,7 @@
   virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
   virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
   virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
+  virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
   virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event);
   virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
 


More information about the Kst mailing list