From kde-commits Sun Aug 01 01:39:23 2004 From: Clarence Dang Date: Sun, 01 Aug 2004 01:39:23 +0000 To: kde-commits Subject: kdegraphics/kolourpaint Message-Id: <20040801013923.496219993 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109132437032346 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 ()); }