[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Mon Sep 12 15:51:55 CEST 2005


SVN commit 459944 by staikos:

fix vim modelines and use a namespace instead of a class


 M  +0 -1      kstgfxmousehandler.cpp  
 M  +2 -0      kstgfxmousehandlerutils.cpp  
 M  +4 -9      kstgfxmousehandlerutils.h  


--- trunk/extragear/graphics/kst/kst/kstgfxmousehandler.cpp #459943:459944
@@ -70,4 +70,3 @@
 }
 
 // vim: ts=2 sw=2 et
-
--- trunk/extragear/graphics/kst/kst/kstgfxmousehandlerutils.cpp #459943:459944
@@ -83,3 +83,5 @@
     return 1;
   }
 }
+
+// vim: ts=2 sw=2 et
--- trunk/extragear/graphics/kst/kst/kstgfxmousehandlerutils.h #459943:459944
@@ -21,18 +21,13 @@
 class QRect;
 class QPoint;
 
-class KstGfxMouseHandlerUtils {
-  public:
-    
-    KstGfxMouseHandlerUtils() {}
-    ~KstGfxMouseHandlerUtils() {}
-    
+namespace KstGfxMouseHandlerUtils {
     // returns a rectangle representing position and size 
-    static QRect newRect(const QPoint& pos, const QPoint& mouseOrigin, bool shift);
+    QRect newRect(const QPoint& pos, const QPoint& mouseOrigin, bool shift);
     // returns a rectangle with topLeft = from, and bottomRight = to
-    static QRect newLine(const QPoint& pos, const QPoint& mouseOrigin, bool shift);
+    QRect newLine(const QPoint& pos, const QPoint& mouseOrigin, bool shift);
     // returns -1 if pos is in 1st or 3rd quadrant with origin mouseOrigin, 1 otherwise
-    static int negativeOne(const QPoint& pos, const QPoint& mouseOrigin);
+    int negativeOne(const QPoint& pos, const QPoint& mouseOrigin);
 };
 
 #endif


More information about the Kst mailing list