[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Wed Aug 10 20:46:26 CEST 2005


SVN commit 445244 by rchern:

get rid of the dashed line when move/resize is cancelled

 M  +1 -0      kstgfxmousehandler.cpp  
 M  +2 -0      kstgfxpicturemousehandler.cpp  
 M  +1 -0      ksttoplevelview.cpp  


--- trunk/extragear/graphics/kst/kst/kstgfxmousehandler.cpp #445243:445244
@@ -33,6 +33,7 @@
 
 
 void KstGfxMouseHandler::handlePress(const QPoint& pos, bool shift) {
+  Q_UNUSED(shift)
   _mouseOrigin = pos;  
   _mouseMoved = false;
   _cancelled = false;
--- trunk/extragear/graphics/kst/kst/kstgfxpicturemousehandler.cpp #445243:445244
@@ -76,6 +76,8 @@
 
 
 void KstGfxPictureMouseHandler::releasePress(const QPoint& pos, bool shift) {
+  Q_UNUSED(shift)
+  Q_UNUSED(pos)
   // once released, create a picture and popup the edit dialog
   if (!_cancelled) {
     KstViewPicturePtr pic = new KstViewPicture();
--- trunk/extragear/graphics/kst/kst/ksttoplevelview.cpp #445243:445244
@@ -1331,6 +1331,7 @@
     clearFocus();
     //_pressTarget = 0L;
     _prevBand = QRect(-1, -1, 0, 0);
+    paint(P_PAINT);
     return;
   }
   


More information about the Kst mailing list