summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/tools/selectiontools
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/tools/selectiontools')
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_move_selection.cpp4
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.cpp2
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.cpp4
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_outline.cpp4
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.cpp8
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.cpp4
6 files changed, 13 insertions, 13 deletions
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_move_selection.cpp b/chalk/plugins/tools/selectiontools/kis_tool_move_selection.cpp
index a1f0902f..c89702f9 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_move_selection.cpp
+++ b/chalk/plugins/tools/selectiontools/kis_tool_move_selection.cpp
@@ -118,7 +118,7 @@ void KisToolMoveSelection::update(KisCanvasSubject *subject)
void KisToolMoveSelection::buttonPress(KisButtonPressEvent *e)
{
m_dragging = false;
- if (m_subject && e->button() == Qt::LeftButton) {
+ if (m_subject && e->button() == TQt::LeftButton) {
TQPoint pos = e->pos().floorTQPoint();
KisImageSP img = m_subject->currentImg();
KisPaintLayerSP lay;
@@ -176,7 +176,7 @@ void KisToolMoveSelection::move(KisMoveEvent *e)
void KisToolMoveSelection::buttonRelease(KisButtonReleaseEvent *e)
{
- if (m_subject && e->button() == Qt::LeftButton && m_dragging) {
+ if (m_subject && e->button() == TQt::LeftButton && m_dragging) {
m_dragging = false;
KisImageSP img = m_subject->currentImg();
if(!img) return;
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.cpp b/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.cpp
index 1a4932b7..bf24775d 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.cpp
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.cpp
@@ -86,7 +86,7 @@ void KisToolSelectContiguous::buttonPress(KisButtonPressEvent * e)
KisPaintDeviceSP dev;
TQPoint pos;
- if (e->button() != Qt::LeftButton && e->button() != Qt::RightButton)
+ if (e->button() != TQt::LeftButton && e->button() != TQt::RightButton)
return;
if (!(img = m_subject->currentImg()))
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.cpp b/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.cpp
index f85da332..0d632c42 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.cpp
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.cpp
@@ -117,7 +117,7 @@ void KisToolSelectElliptical::buttonPress(KisButtonPressEvent *e)
if (m_subject) {
KisImageSP img = m_subject->currentImg();
- if (img && img->activeDevice() && e->button() == Qt::LeftButton) {
+ if (img && img->activeDevice() && e->button() == TQt::LeftButton) {
clearSelection();
m_startPos = m_endPos = m_centerPos = e->pos();
m_selecting = true;
@@ -162,7 +162,7 @@ void KisToolSelectElliptical::move(KisMoveEvent *e)
void KisToolSelectElliptical::buttonRelease(KisButtonReleaseEvent *e)
{
- if (m_subject && m_selecting && e->button() == Qt::LeftButton) {
+ if (m_subject && m_selecting && e->button() == TQt::LeftButton) {
paintOutline();
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_outline.cpp b/chalk/plugins/tools/selectiontools/kis_tool_select_outline.cpp
index 7f526736..2507cb56 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_outline.cpp
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_outline.cpp
@@ -82,7 +82,7 @@ void KisToolSelectOutline::update (KisCanvasSubject *subject)
void KisToolSelectOutline::buttonPress(KisButtonPressEvent *event)
{
- if (event->button() == Qt::LeftButton) {
+ if (event->button() == TQt::LeftButton) {
m_dragging = true;
m_dragStart = event->pos();
@@ -108,7 +108,7 @@ void KisToolSelectOutline::buttonRelease(KisButtonReleaseEvent *event)
if (!m_subject)
return;
- if (m_dragging && event->button() == Qt::LeftButton) {
+ if (m_dragging && event->button() == TQt::LeftButton) {
m_dragging = false;
deactivate();
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.cpp b/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.cpp
index 8d89eea2..464e4b0a 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.cpp
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.cpp
@@ -91,7 +91,7 @@ void KisToolSelectPolygonal::update (KisCanvasSubject *subject)
void KisToolSelectPolygonal::buttonPress(KisButtonPressEvent *event)
{
- if (event->button() == Qt::LeftButton) {
+ if (event->button() == TQt::LeftButton) {
m_dragging = true;
if (m_points.isEmpty())
@@ -104,7 +104,7 @@ void KisToolSelectPolygonal::buttonPress(KisButtonPressEvent *event)
m_dragEnd = event->pos();
draw();
}
- } else if (event->button() == Qt::LeftButton && event->state() == ShiftButton) {
+ } else if (event->button() == TQt::LeftButton && event->state() == ShiftButton) {
finish();
}
}
@@ -195,12 +195,12 @@ void KisToolSelectPolygonal::buttonRelease(KisButtonReleaseEvent *event)
if (!m_subject)
return;
- if (m_dragging && event->button() == Qt::LeftButton) {
+ if (m_dragging && event->button() == TQt::LeftButton) {
m_dragging = false;
m_points.append (m_dragEnd);
}
- if (m_dragging && event->button() == Qt::RightButton) {
+ if (m_dragging && event->button() == TQt::RightButton) {
}
}
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.cpp b/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.cpp
index 5a6772ba..b52ec563 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.cpp
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.cpp
@@ -114,7 +114,7 @@ void KisToolSelectRectangular::buttonPress(KisButtonPressEvent *e)
if (m_subject) {
KisImageSP img = m_subject->currentImg();
- if (img && img->activeDevice() && e->button() == Qt::LeftButton) {
+ if (img && img->activeDevice() && e->button() == TQt::LeftButton) {
clearSelection();
m_startPos = m_endPos = m_centerPos = e->pos();
m_selecting = true;
@@ -158,7 +158,7 @@ void KisToolSelectRectangular::move(KisMoveEvent *e)
void KisToolSelectRectangular::buttonRelease(KisButtonReleaseEvent *e)
{
- if (m_subject && m_selecting && e->button() == Qt::LeftButton) {
+ if (m_subject && m_selecting && e->button() == TQt::LeftButton) {
paintOutline();