[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Tue Aug 16 21:28:28 CEST 2005


SVN commit 449811 by rchern:

- more cleanup of comments 
- rearrange items in dropdown menu

 M  +2 -2      kst.cpp  
 M  +4 -27     kstviewobject.cpp  


--- trunk/extragear/graphics/kst/kst/kst.cpp #449810:449811
@@ -784,10 +784,10 @@
   mouseModeMenu->insertSeparator();
   _gfxLabelAction->plug(mouseModeMenu);
   _gfxRectangleAction->plug(mouseModeMenu);
+  _gfxEllipseAction->plug(mouseModeMenu);
   _gfxLineAction->plug(mouseModeMenu);
+  _gfxArrowAction->plug(mouseModeMenu);
   _gfxPictureAction->plug(mouseModeMenu);
-  _gfxArrowAction->plug(mouseModeMenu);
-  _gfxEllipseAction->plug(mouseModeMenu);
 
   toolBar()->insertButton("thumbnail", 5, mouseModeMenu, true, i18n("Select the desired mode"));
   toggleMouseMode();
--- trunk/extragear/graphics/kst/kst/kstviewobject.cpp #449810:449811
@@ -311,37 +311,14 @@
 
 
 void KstViewObject::drawFocusRect(QPainter& p) {
-  // testing: see if single-click-select mode is better
-//   QPen pen(Qt::black, 2);
-//   p.setPen(pen);
-//   QRect r;
-//   r.setX(_geom.left());
-//   r.setY(_geom.top());
-//   r.setWidth(_geom.width());
-//   r.setHeight(_geom.height());
-//   Qt::RasterOp op = p.rasterOp();
-//   // FIXME: Qt bug?  Appears that clipping is ignored here
-//   p.setRasterOp(Qt::NotROP);
-//   p.drawWinFocusRect(r);
-//   p.setRasterOp(op);
+  Q_UNUSED(p)
+      
+  // to draw a focus rect, put something here
 }
 
 
 void KstViewObject::drawSelectRect(QPainter& p) {
-  // testing: see if 8 hotpoints are better than a border
-//   QPen pen(Qt::green, 2);
-//   p.setPen(pen);
-//   p.setBrush(Qt::NoBrush); 
-//   QRect r;
-//   r.setX(_geom.left() + 2);
-//   r.setY(_geom.top() + 2);
-//   r.setWidth(_geom.width() - 4);
-//   r.setHeight(_geom.height() - 4);
-//   Qt::RasterOp op = p.rasterOp();
-//   p.setRasterOp(Qt::CopyROP);
-//   p.drawRect(r);
-//   p.setRasterOp(op);
-  
+
   // draw the 8 hotpoints
   QPoint topLeft = geometry().topLeft();
   QPoint topRight = geometry().topRight();


More information about the Kst mailing list