[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/kolourpaint/tools/selection
From:       Clarence Dang <dang () kde ! org>
Date:       2006-11-20 11:49:42
Message-ID: 1164023382.530338.10133.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 606413 by dang:

style

 M  +14 -11    kptoolselection.cpp  


--- trunk/KDE/kdegraphics/kolourpaint/tools/selection/kptoolselection.cpp #606412:606413
@@ -168,15 +168,15 @@
     kpSelection *sel = document ()->selection ();
     if (sel && onSelectionResizeHandle () && !controlOrShiftPressed ())
     {
-        return haventBegunDrawUserMessageOnResizeHandle ();
+        return /*virtual*/haventBegunDrawUserMessageOnResizeHandle ();
     }
     else if (sel && sel->contains (m_currentPoint))
     {
-        return haventBegunDrawUserMessageInsideSelection ();
+        return /*virtual*/haventBegunDrawUserMessageInsideSelection ();
     }
     else
     {
-        return haventBegunDrawUserMessageOutsideSelection ();
+        return /*virtual*/haventBegunDrawUserMessageOutsideSelection ();
     }
 }
 
@@ -337,7 +337,7 @@
         }
         else if (sel->contains (m_currentPoint))
         {
-            m_dragType = beginDrawInsideSelection ();
+            m_dragType = /*virtual*/beginDrawInsideSelection ();
         }
         else
         {
@@ -427,7 +427,7 @@
         kDebug () << "\tsel contains currentPoint; selecting text? "
                    << onSelectionToSelectText () << endl;
     #endif
-        return cursorInsideSelection ();
+        return /*virtual*/cursorInsideSelection ();
     }
     else
     {
@@ -544,7 +544,7 @@
     if (m_createNOPTimer->isActive ())
     {
         if (m_viewUnderStartPoint->transformDocToViewX (
-            (thisPoint - m_startPoint).manhattanLength ()) <= 6)
+                (thisPoint - m_startPoint).manhattanLength ()) <= 6)
         {
         #if DEBUG_KP_TOOL_SELECTION && 1
             kDebug () << "\t\tsuppress accidental movement" << endl;
@@ -1001,9 +1001,12 @@
 
 
     viewManager ()->setFastUpdates ();
-    m_currentResizeScaleCommand->resizeAndMoveTo (newWidth, newHeight,
-                                                  QPoint (newX, newY),
-                                                  true/*smooth scale delayed*/);
+    {
+        m_currentResizeScaleCommand->resizeAndMoveTo (
+            newWidth, newHeight,
+            QPoint (newX, newY),
+            true/*smooth scale delayed*/);
+    }
     viewManager ()->restoreFastUpdates ();
 
     setUserShapePoints (QPoint (originalSelection.width (),
@@ -1151,7 +1154,7 @@
         }
 
 
-        setSelectionBorderForHaventBegunDraw ();
+        /*virtual*/setSelectionBorderForHaventBegunDraw ();
     }
     viewManager ()->restoreQueueUpdates ();
 
@@ -1271,7 +1274,7 @@
         if (cmd)
             commandHistory ()->addCommand (cmd, false/*no exec*/);
 
-        setSelectionBorderForHaventBegunDraw ();
+        /*virtual*/setSelectionBorderForHaventBegunDraw ();
     }
     viewManager ()->restoreQueueUpdates ();
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic