diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /krita/ui/kis_part_layer_handler.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krita/ui/kis_part_layer_handler.cc')
-rw-r--r-- | krita/ui/kis_part_layer_handler.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/krita/ui/kis_part_layer_handler.cc b/krita/ui/kis_part_layer_handler.cc index 787de872..f062e4a1 100644 --- a/krita/ui/kis_part_layer_handler.cc +++ b/krita/ui/kis_part_layer_handler.cc @@ -19,8 +19,8 @@ #include "kis_canvas.h" #include <fixx11h.h> // kis_canvas.h does X11 stuff -#include <qpainter.h> -#include <qcursor.h> +#include <tqpainter.h> +#include <tqcursor.h> #include "kis_cursor.h" #include "kis_canvas_painter.h" @@ -31,8 +31,8 @@ #include "kis_part_layer_handler.h" KisPartLayerHandler::KisPartLayerHandler(KisView* view, const KoDocumentEntry& entry, - KisGroupLayerSP parent, KisLayerSP above) - : m_parent(parent), m_above(above), m_view(view), m_entry(entry) { + KisGroupLayerSP tqparent, KisLayerSP above) + : m_parent(tqparent), m_above(above), m_view(view), m_entry(entry) { m_started = false; view->getCanvasController()->setCanvasCursor( KisCursor::selectCursor() ); } @@ -51,20 +51,20 @@ void KisPartLayerHandler::gotMoveEvent(KisMoveEvent* event) { painter.setRasterOp( NotROP ); // erase old lines - QRect r(m_start, m_end); + TQRect r(m_start, m_end); r = r.normalize(); if (!r.isEmpty()) painter.drawRect(r); - m_end = event->pos().roundQPoint(); - r = QRect(m_start, m_end).normalize(); + m_end = event->pos().roundTQPoint(); + r = TQRect(m_start, m_end).normalize(); painter.drawRect(r); painter.end(); } void KisPartLayerHandler::gotButtonPressEvent(KisButtonPressEvent* event) { - m_start = event->pos().roundQPoint(); + m_start = event->pos().roundTQPoint(); m_end = m_start; m_started = true; } @@ -75,15 +75,15 @@ void KisPartLayerHandler::gotButtonReleaseEvent(KisButtonReleaseEvent* event) { return; } - m_end = event->pos().roundQPoint(); + m_end = event->pos().roundTQPoint(); - QRect r(m_start, m_end); + TQRect r(m_start, m_end); m_view->insertPart(r.normalize(), m_entry, m_parent, m_above); // We will get deleted by the view through the above } -void KisPartLayerHandler::gotKeyPressEvent(QKeyEvent* event) { +void KisPartLayerHandler::gotKeyPressEvent(TQKeyEvent* event) { if (event->key() == Key_Escape) { done(); } else { |