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

List:       kde-commits
Subject:    kdegraphics/kolourpaint
From:       Clarence Dang <dang () kde ! org>
Date:       2004-08-01 1:39:23
Message-ID: 20040801013923.496219993 () office ! kde ! org
[Download RAW message or body]

CVS commit by dang: 

disable paste textbox topLeft adjustment for now; -debug


  M +12 -11    kpmainwindow.cpp   1.42


--- kdegraphics/kolourpaint/kpmainwindow.cpp  #1.41:1.42
@@ -371,5 +371,5 @@ void kpMainWindow::enableDocumentActions
 bool kpMainWindow::actionsSingleKeyTriggersEnabled () const
 {
-#if DEBUG_KP_MAIN_WINDOW || 1
+#if DEBUG_KP_MAIN_WINDOW
     kdDebug () << "kpMainWindow::actionsSingleKeyTriggersEnabled()" << endl;
     QTime timer; timer.start ();
@@ -378,5 +378,5 @@ bool kpMainWindow::actionsSingleKeyTrigg
     if (m_toolToolBar)
     {
-    #if DEBUG_KP_MAIN_WINDOW || 1
+    #if DEBUG_KP_MAIN_WINDOW
         kdDebug () << "\ttime=" << timer.restart () << endl;
     #endif
@@ -393,5 +393,5 @@ bool kpMainWindow::actionsSingleKeyTrigg
 void kpMainWindow::enableActionsSingleKeyTriggers (bool enable)
 {
-#if DEBUG_KP_MAIN_WINDOW || 1
+#if DEBUG_KP_MAIN_WINDOW
     kdDebug () << "kpMainWindow::enableActionsSingleKeyTriggers("
                << enable << ")" << endl;
@@ -407,5 +407,5 @@ void kpMainWindow::enableActionsSingleKe
     d->m_actionNextToolOptionGroup2->enableSingleKeyTriggers (enable);
 
-#if DEBUG_KP_MAIN_WINDOW || 1
+#if DEBUG_KP_MAIN_WINDOW
     kdDebug () << "\ttime=" << timer.restart () << endl;
 #endif
@@ -702,5 +702,5 @@ void kpMainWindow::dragEnterEvent (QDrag
 void kpMainWindow::dropEvent (QDropEvent *e)
 {
-#if DEBUG_KP_MAIN_WINDOW || 1
+#if DEBUG_KP_MAIN_WINDOW
     kdDebug () << "kpMainWindow::dropEvent" << e->pos () << endl;
 #endif
@@ -726,5 +726,5 @@ void kpMainWindow::dropEvent (QDropEvent
         QPoint selTopLeft = KP_INVALID_POINT;
         const QPoint globalPos = QWidget::mapToGlobal (e->pos ());
-    #if DEBUG_KP_MAIN_WINDOW || 1
+    #if DEBUG_KP_MAIN_WINDOW
         kdDebug () << "\tpos toGlobal=" << globalPos << endl;
     #endif
@@ -735,5 +735,5 @@ void kpMainWindow::dropEvent (QDropEvent
         {
             view = m_viewManager->viewUnderCursor ();
-        #if DEBUG_KP_MAIN_WINDOW || 1
+        #if DEBUG_KP_MAIN_WINDOW
             kdDebug () << "\t\tviewUnderCursor=" << view << endl;
         #endif
@@ -742,5 +742,5 @@ void kpMainWindow::dropEvent (QDropEvent
                 // HACK: see kpViewManager::setViewUnderCursor() to see why
                 //       it's not reliable
-            #if DEBUG_KP_MAIN_WINDOW || 1
+            #if DEBUG_KP_MAIN_WINDOW
                 kdDebug () << "\t\tattempting to discover view" << endl;
 
@@ -786,7 +786,8 @@ void kpMainWindow::dropEvent (QDropEvent
             selTopLeft = view->zoomViewToDoc (viewPos);
 
-            // HACK: wrong
-            selTopLeft -= QPoint (kpSelection::textBorderSize (),
-                                  kpSelection::textBorderSize ());
+            // TODO: In terms of doc pixels, would be inconsistent behaviour
+            //       based on zoomLevel of view.
+            // selTopLeft -= QPoint (-view->selectionResizeHandleAtomicSize (),
+            //                       -view->selectionResizehandleAtomicSize ());
         }
 


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

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