summaryrefslogtreecommitdiffstats
path: root/krita/plugins/tools/defaulttools/kis_tool_ellipse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/tools/defaulttools/kis_tool_ellipse.cc')
-rw-r--r--krita/plugins/tools/defaulttools/kis_tool_ellipse.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/krita/plugins/tools/defaulttools/kis_tool_ellipse.cc b/krita/plugins/tools/defaulttools/kis_tool_ellipse.cc
index dd8867c6..bae8ae04 100644
--- a/krita/plugins/tools/defaulttools/kis_tool_ellipse.cc
+++ b/krita/plugins/tools/defaulttools/kis_tool_ellipse.cc
@@ -21,7 +21,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qpainter.h>
+#include <tqpainter.h>
#include <kaction.h>
#include <kdebug.h>
@@ -75,23 +75,23 @@ void KisToolEllipse::move(KisMoveEvent *event)
// erase old lines on canvas
draw(m_dragStart, m_dragEnd);
// move (alt) or resize ellipse
- if (event->state() & Qt::AltButton) {
+ if (event->state() & TQt::AltButton) {
KisPoint trans = event->pos() - m_dragEnd;
m_dragStart += trans;
m_dragEnd += trans;
} else {
- KisPoint diag = event->pos() - (event->state() & Qt::ControlButton
+ KisPoint diag = event->pos() - (event->state() & TQt::ControlButton
? m_dragCenter : m_dragStart);
// circle?
- if (event->state() & Qt::ShiftButton) {
- double size = QMAX(fabs(diag.x()), fabs(diag.y()));
+ if (event->state() & TQt::ShiftButton) {
+ double size = TQMAX(fabs(diag.x()), fabs(diag.y()));
double w = diag.x() < 0 ? -size : size;
double h = diag.y() < 0 ? -size : size;
diag = KisPoint(w, h);
}
// resize around center point?
- if (event->state() & Qt::ControlButton) {
+ if (event->state() & TQt::ControlButton) {
m_dragStart = m_dragCenter - diag;
m_dragEnd = m_dragCenter + diag;
} else {
@@ -158,8 +158,8 @@ void KisToolEllipse::draw(const KisPoint& start, const KisPoint& end )
KisCanvas *canvas = controller->kiscanvas();
KisCanvasPainter p (canvas);
- p.setRasterOp (Qt::NotROP);
- p.drawEllipse (QRect (controller->windowToView (start).floorQPoint(), controller->windowToView (end).floorQPoint()));
+ p.setRasterOp (TQt::NotROP);
+ p.drawEllipse (TQRect (controller->windowToView (start).floorTQPoint(), controller->windowToView (end).floorTQPoint()));
p.end ();
}
@@ -168,13 +168,13 @@ void KisToolEllipse::setup(KActionCollection *collection)
m_action = static_cast<KRadioAction *>(collection->action(name()));
if (m_action == 0) {
- KShortcut shortcut(Qt::Key_Plus);
- shortcut.append(KShortcut(Qt::Key_F7));
+ KShortcut shortcut(TQt::Key_Plus);
+ shortcut.append(KShortcut(TQt::Key_F7));
m_action = new KRadioAction(i18n("&Ellipse"),
"tool_ellipse",
shortcut,
this,
- SLOT(activate()),
+ TQT_SLOT(activate()),
collection,
name());
m_action->setToolTip(i18n("Draw an ellipse"));