summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/tools
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/tools')
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cpp4
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_ellipse.cpp4
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_fill.cpp2
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_gradient.cpp4
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_line.cpp4
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_move.cpp6
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_pan.cpp4
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_rectangle.cpp4
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_text.cpp4
-rw-r--r--chalk/plugins/tools/defaulttools/kis_tool_zoom.cpp4
-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
-rw-r--r--chalk/plugins/tools/tool_crop/kis_tool_crop.cpp4
-rw-r--r--chalk/plugins/tools/tool_curves/kis_tool_curve.cpp2
-rw-r--r--chalk/plugins/tools/tool_curves/kis_tool_moutline.cpp4
-rw-r--r--chalk/plugins/tools/tool_perspectivegrid/kis_tool_perspectivegrid.cpp6
-rw-r--r--chalk/plugins/tools/tool_perspectivetransform/kis_tool_perspectivetransform.cpp6
-rw-r--r--chalk/plugins/tools/tool_polygon/kis_tool_polygon.cpp8
-rw-r--r--chalk/plugins/tools/tool_polyline/kis_tool_polyline.cpp8
-rw-r--r--chalk/plugins/tools/tool_selectsimilar/kis_tool_selectsimilar.cpp2
-rw-r--r--chalk/plugins/tools/tool_star/kis_tool_star.cpp4
-rw-r--r--chalk/plugins/tools/tool_transform/kis_tool_transform.cpp6
26 files changed, 58 insertions, 58 deletions
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cpp b/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cpp
index 40a09a91..6130aa21 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cpp
@@ -77,7 +77,7 @@ void KisToolColorPicker::update(KisCanvasSubject *subject)
void KisToolColorPicker::buttonPress(KisButtonPressEvent *e)
{
if (m_subject) {
- if (e->button() != Qt::LeftButton && e->button() != Qt::RightButton)
+ if (e->button() != TQt::LeftButton && e->button() != TQt::RightButton)
return;
KisImageSP img;
@@ -164,7 +164,7 @@ void KisToolColorPicker::buttonPress(KisButtonPressEvent *e)
displayPickedColor();
if (m_updateColor) {
- if (e->button() == Qt::LeftButton)
+ if (e->button() == TQt::LeftButton)
m_subject->setFGColor(m_pickedColor);
else
m_subject->setBGColor(m_pickedColor);
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_ellipse.cpp b/chalk/plugins/tools/defaulttools/kis_tool_ellipse.cpp
index 0488dcb0..0dc53a5b 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_ellipse.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_ellipse.cpp
@@ -62,7 +62,7 @@ void KisToolEllipse::update (KisCanvasSubject *subject)
void KisToolEllipse::buttonPress(KisButtonPressEvent *event)
{
- if (m_currentImage && event->button() == Qt::LeftButton) {
+ if (m_currentImage && event->button() == TQt::LeftButton) {
m_dragging = true;
m_dragStart = m_dragCenter = m_dragEnd = event->pos();
draw(m_dragStart, m_dragEnd);
@@ -110,7 +110,7 @@ void KisToolEllipse::buttonRelease(KisButtonReleaseEvent *event)
if (!m_subject || !m_currentImage)
return;
- if (m_dragging && event->button() == Qt::LeftButton) {
+ if (m_dragging && event->button() == TQt::LeftButton) {
// erase old lines on canvas
draw(m_dragStart, m_dragEnd);
m_dragging = false;
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_fill.cpp b/chalk/plugins/tools/defaulttools/kis_tool_fill.cpp
index ceb78f06..3c9b6038 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_fill.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_fill.cpp
@@ -145,7 +145,7 @@ void KisToolFill::buttonRelease(KisButtonReleaseEvent *e)
{
if (!m_subject) return;
if (!m_currentImage || !m_currentImage->activeDevice()) return;
- if (e->button() != Qt::LeftButton) return;
+ if (e->button() != TQt::LeftButton) return;
if(!m_wasPressed) return;
m_wasPressed = false;
int x, y;
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_gradient.cpp b/chalk/plugins/tools/defaulttools/kis_tool_gradient.cpp
index b8f72a3b..c0543c6a 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_gradient.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_gradient.cpp
@@ -91,7 +91,7 @@ void KisToolGradient::buttonPress(KisButtonPressEvent *e)
return;
}
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
m_dragging = true;
m_startPos = e->pos();
m_endPos = e->pos();
@@ -118,7 +118,7 @@ void KisToolGradient::move(KisMoveEvent *e)
void KisToolGradient::buttonRelease(KisButtonReleaseEvent *e)
{
- if (m_dragging && e->button() == Qt::LeftButton) {
+ if (m_dragging && e->button() == TQt::LeftButton) {
KisCanvasController *controller = m_subject->canvasController();
KisImageSP img = m_subject->currentImg();
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_line.cpp b/chalk/plugins/tools/defaulttools/kis_tool_line.cpp
index 87cb9390..e9e303a6 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_line.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_line.cpp
@@ -87,7 +87,7 @@ void KisToolLine::buttonPress(KisButtonPressEvent *e)
if (!m_subject->currentBrush()) return;
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
m_dragging = true;
//KisCanvasController *controller = m_subject->canvasController();
m_startPos = e->pos(); //controller->windowToView(e->pos());
@@ -116,7 +116,7 @@ void KisToolLine::move(KisMoveEvent *e)
void KisToolLine::buttonRelease(KisButtonReleaseEvent *e)
{
- if (m_dragging && e->button() == Qt::LeftButton) {
+ if (m_dragging && e->button() == TQt::LeftButton) {
m_dragging = false;
KisCanvasController *controller = m_subject->canvasController();
KisImageSP img = m_subject->currentImg();
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_move.cpp b/chalk/plugins/tools/defaulttools/kis_tool_move.cpp
index be506578..1bcd5135 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_move.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_move.cpp
@@ -62,7 +62,7 @@ void KisToolMove::update(KisCanvasSubject *subject)
void KisToolMove::buttonPress(KisButtonPressEvent *e)
{
- if (m_subject && e->button() == Qt::LeftButton) {
+ if (m_subject && e->button() == TQt::LeftButton) {
TQPoint pos = e->pos().floorTQPoint();
KisImageSP img = m_subject->currentImg();
KisLayerSP dev;
@@ -76,7 +76,7 @@ void KisToolMove::buttonPress(KisButtonPressEvent *e)
void KisToolMove::move(KisMoveEvent *e)
{
- if (m_subject && e->state() == Qt::LeftButton) {
+ if (m_subject && e->state() == TQt::LeftButton) {
TQPoint pos = e->pos().floorTQPoint();
if((e->state() & TQt::AltButton) || (e->state() & TQt::ControlButton)) {
if(fabs(pos.x() - m_dragStart.x()) > fabs(pos.y() - m_dragStart.y()))
@@ -90,7 +90,7 @@ void KisToolMove::move(KisMoveEvent *e)
void KisToolMove::buttonRelease(KisButtonReleaseEvent *e)
{
- if (m_subject && e->button() == Qt::LeftButton) {
+ if (m_subject && e->button() == TQt::LeftButton) {
m_strategy.endDrag(e->pos().floorTQPoint());
}
}
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_pan.cpp b/chalk/plugins/tools/defaulttools/kis_tool_pan.cpp
index c95b1000..d96c820f 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_pan.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_pan.cpp
@@ -50,7 +50,7 @@ void KisToolPan::update(KisCanvasSubject *subject)
void KisToolPan::buttonPress(KisButtonPressEvent *e)
{
- if (m_subject && !m_dragging && e->button() == Qt::LeftButton) {
+ if (m_subject && !m_dragging && e->button() == TQt::LeftButton) {
KisCanvasController *controller = m_subject->canvasController();
m_origScrollX = controller->horzValue();
@@ -74,7 +74,7 @@ void KisToolPan::move(KisMoveEvent *e)
void KisToolPan::buttonRelease(KisButtonReleaseEvent *e)
{
- if (m_subject && m_dragging && e->button() == Qt::LeftButton) {
+ if (m_subject && m_dragging && e->button() == TQt::LeftButton) {
setCursor(m_openHandCursor);
m_dragging = false;
}
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_rectangle.cpp b/chalk/plugins/tools/defaulttools/kis_tool_rectangle.cpp
index 69e306ec..0106b769 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_rectangle.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_rectangle.cpp
@@ -63,7 +63,7 @@ void KisToolRectangle::update (KisCanvasSubject *subject)
void KisToolRectangle::buttonPress(KisButtonPressEvent *event)
{
- if (m_currentImage && event->button() == Qt::LeftButton) {
+ if (m_currentImage && event->button() == TQt::LeftButton) {
m_dragging = true;
m_dragStart = m_dragCenter = m_dragEnd = event->pos();
draw(m_dragStart, m_dragEnd);
@@ -117,7 +117,7 @@ void KisToolRectangle::buttonRelease(KisButtonReleaseEvent *event)
KisPaintDeviceSP device = m_currentImage->activeDevice ();
if (!device) return;
- if (m_dragging && event->button() == Qt::LeftButton) {
+ if (m_dragging && event->button() == TQt::LeftButton) {
// erase old lines on canvas
draw(m_dragStart, m_dragEnd);
m_dragging = false;
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_text.cpp b/chalk/plugins/tools/defaulttools/kis_tool_text.cpp
index d1727f39..6fb07940 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_text.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_text.cpp
@@ -72,7 +72,7 @@ void KisToolText::update(KisCanvasSubject *subject)
void KisToolText::buttonPress(KisButtonPressEvent *e)
{
- if (m_subject && e->button() == Qt::LeftButton) {
+ if (m_subject && e->button() == TQt::LeftButton) {
m_wasPressed = true;
}
}
@@ -81,7 +81,7 @@ void KisToolText::buttonRelease(KisButtonReleaseEvent *e)
{
if ( m_windowIsBeingShown ) return;
- if (m_subject && e->button() == Qt::LeftButton) {
+ if (m_subject && e->button() == TQt::LeftButton) {
if(!m_wasPressed) return;
m_wasPressed = false;
KisImageSP img = m_subject->currentImg();
diff --git a/chalk/plugins/tools/defaulttools/kis_tool_zoom.cpp b/chalk/plugins/tools/defaulttools/kis_tool_zoom.cpp
index fe449ee4..77cdd336 100644
--- a/chalk/plugins/tools/defaulttools/kis_tool_zoom.cpp
+++ b/chalk/plugins/tools/defaulttools/kis_tool_zoom.cpp
@@ -74,7 +74,7 @@ void KisToolZoom::paint(KisCanvasPainter& gc, const TQRect& rc)
void KisToolZoom::buttonPress(KisButtonPressEvent *e)
{
if (m_subject && m_subject->currentImg() && !m_dragging) {
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
m_startPos = e->pos().floorTQPoint();
m_endPos = e->pos().floorTQPoint();
m_dragging = true;
@@ -95,7 +95,7 @@ void KisToolZoom::move(KisMoveEvent *e)
void KisToolZoom::buttonRelease(KisButtonReleaseEvent *e)
{
- if (m_subject && m_dragging && e->button() == Qt::LeftButton) {
+ if (m_subject && m_dragging && e->button() == TQt::LeftButton) {
KisCanvasController *controller = m_subject->canvasController();
m_endPos = e->pos().floorTQPoint();
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();
diff --git a/chalk/plugins/tools/tool_crop/kis_tool_crop.cpp b/chalk/plugins/tools/tool_crop/kis_tool_crop.cpp
index 58454b4f..8826de3d 100644
--- a/chalk/plugins/tools/tool_crop/kis_tool_crop.cpp
+++ b/chalk/plugins/tools/tool_crop/kis_tool_crop.cpp
@@ -145,7 +145,7 @@ void KisToolCrop::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) {
TQPoint pos = e->pos().floorTQPoint();
TQRect b = img->bounds();
@@ -392,7 +392,7 @@ void KisToolCrop::updateWidgetValues(bool updateratio)
void KisToolCrop::buttonRelease(KisButtonReleaseEvent *e)
{
- if (m_subject && m_subject->currentImg() && m_selecting && e->button() == Qt::LeftButton) {
+ if (m_subject && m_subject->currentImg() && m_selecting && e->button() == TQt::LeftButton) {
m_selecting = false;
m_haveCropSelection = true;
diff --git a/chalk/plugins/tools/tool_curves/kis_tool_curve.cpp b/chalk/plugins/tools/tool_curves/kis_tool_curve.cpp
index ea1f9a77..b4369d15 100644
--- a/chalk/plugins/tools/tool_curves/kis_tool_curve.cpp
+++ b/chalk/plugins/tools/tool_curves/kis_tool_curve.cpp
@@ -115,7 +115,7 @@ void KisToolCurve::buttonPress(KisButtonPressEvent *event)
updateOptions(event->state());
if (!m_currentImage)
return;
- if (event->button() == Qt::LeftButton) {
+ if (event->button() == TQt::LeftButton) {
m_dragging = true;
m_currentPoint = event->pos();
PointPair temp = pointUnderMouse (m_subject->canvasController()->windowToView(event->pos().toTQPoint()));
diff --git a/chalk/plugins/tools/tool_curves/kis_tool_moutline.cpp b/chalk/plugins/tools/tool_curves/kis_tool_moutline.cpp
index ebf82634..1412f5fa 100644
--- a/chalk/plugins/tools/tool_curves/kis_tool_moutline.cpp
+++ b/chalk/plugins/tools/tool_curves/kis_tool_moutline.cpp
@@ -643,7 +643,7 @@ void KisToolMagnetic::buttonPress(KisButtonPressEvent *event)
updateOptions(event->state());
if (!m_currentImage)
return;
- if (event->button() == Qt::LeftButton) {
+ if (event->button() == TQt::LeftButton) {
m_dragging = true;
m_currentPoint = event->pos();
PointPair temp(m_curve->end(),false);
@@ -771,7 +771,7 @@ TQWidget* KisToolMagnetic::createOptionWidget(TQWidget* parent)
m_mode = new TQLabel(i18n("Automatic mode"), m_optWidget);
m_lbDistance = new TQLabel(i18n("Distance: "), m_optWidget);
TQPushButton *finish = new TQPushButton(i18n("To Selection"), m_optWidget);
- m_slDistance = new TQSlider(MINDIST, MAXDIST, PAGESTEP, m_distance, Qt::Horizontal, m_optWidget);
+ m_slDistance = new TQSlider(MINDIST, MAXDIST, PAGESTEP, m_distance, TQt::Horizontal, m_optWidget);
connect(m_slDistance, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetDistance(int)));
connect(finish, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCommitCurve()));
diff --git a/chalk/plugins/tools/tool_perspectivegrid/kis_tool_perspectivegrid.cpp b/chalk/plugins/tools/tool_perspectivegrid/kis_tool_perspectivegrid.cpp
index 7d5df0f2..e676ba56 100644
--- a/chalk/plugins/tools/tool_perspectivegrid/kis_tool_perspectivegrid.cpp
+++ b/chalk/plugins/tools/tool_perspectivegrid/kis_tool_perspectivegrid.cpp
@@ -108,7 +108,7 @@ void KisToolPerspectiveGrid::buttonPress(KisButtonPressEvent *event)
m_mode = MODE_CREATION;
m_points.clear();
}
- if( m_mode == MODE_CREATION && event->button() == Qt::LeftButton)
+ if( m_mode == MODE_CREATION && event->button() == TQt::LeftButton)
{
m_dragging = true;
@@ -122,7 +122,7 @@ void KisToolPerspectiveGrid::buttonPress(KisButtonPressEvent *event)
m_dragEnd = event->pos();
drawGridCreation();
}
- } else if(m_mode == MODE_EDITING && event->button() == Qt::LeftButton){
+ } else if(m_mode == MODE_EDITING && event->button() == TQt::LeftButton){
// Look for the handle which was pressed
if (!m_subject)
return;
@@ -265,7 +265,7 @@ void KisToolPerspectiveGrid::buttonRelease(KisButtonReleaseEvent *event)
if( m_mode == MODE_CREATION )
{
- if (m_dragging && event->button() == Qt::LeftButton) {
+ if (m_dragging && event->button() == TQt::LeftButton) {
m_dragging = false;
m_points.append (m_dragEnd);
if( m_points.size() == 4)
diff --git a/chalk/plugins/tools/tool_perspectivetransform/kis_tool_perspectivetransform.cpp b/chalk/plugins/tools/tool_perspectivetransform/kis_tool_perspectivetransform.cpp
index e73f5da3..19451d94 100644
--- a/chalk/plugins/tools/tool_perspectivetransform/kis_tool_perspectivetransform.cpp
+++ b/chalk/plugins/tools/tool_perspectivetransform/kis_tool_perspectivetransform.cpp
@@ -268,7 +268,7 @@ void KisToolPerspectiveTransform::buttonPress(KisButtonPressEvent *event)
{
KisImageSP img = m_subject->currentImg();
- if (img && img->activeDevice() && event->button() == Qt::LeftButton) {
+ if (img && img->activeDevice() && event->button() == TQt::LeftButton) {
m_actualyMoveWhileSelected = false;
m_dragEnd = event->pos();
KisCanvasController *controller = m_subject->canvasController();
@@ -425,13 +425,13 @@ void KisToolPerspectiveTransform::buttonRelease(KisButtonReleaseEvent * event)
if (!img)
return;
- if( event->button() == Qt::LeftButton)
+ if( event->button() == TQt::LeftButton)
{
switch(m_interractionMode)
{
case DRAWRECTINTERRACTION:
{
- if (m_dragging && event->button() == Qt::LeftButton) {
+ if (m_dragging && event->button() == TQt::LeftButton) {
paintOutline();
m_dragging = false;
m_points.append (m_dragEnd);
diff --git a/chalk/plugins/tools/tool_polygon/kis_tool_polygon.cpp b/chalk/plugins/tools/tool_polygon/kis_tool_polygon.cpp
index 601fc690..3457d278 100644
--- a/chalk/plugins/tools/tool_polygon/kis_tool_polygon.cpp
+++ b/chalk/plugins/tools/tool_polygon/kis_tool_polygon.cpp
@@ -68,7 +68,7 @@ void KisToolPolygon::update (KisCanvasSubject *subject)
void KisToolPolygon::buttonPress(KisButtonPressEvent *event)
{
if (m_currentImage) {
- if (event->button() == Qt::LeftButton && event->state() != ShiftButton) {
+ if (event->button() == TQt::LeftButton && event->state() != ShiftButton) {
m_dragging = true;
@@ -82,7 +82,7 @@ void KisToolPolygon::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();
}
}
@@ -144,12 +144,12 @@ void KisToolPolygon::buttonRelease(KisButtonReleaseEvent *event)
if (!m_subject || !m_currentImage)
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/tool_polyline/kis_tool_polyline.cpp b/chalk/plugins/tools/tool_polyline/kis_tool_polyline.cpp
index ab89cf3f..594f1cf9 100644
--- a/chalk/plugins/tools/tool_polyline/kis_tool_polyline.cpp
+++ b/chalk/plugins/tools/tool_polyline/kis_tool_polyline.cpp
@@ -68,7 +68,7 @@ void KisToolPolyline::update (KisCanvasSubject *subject)
void KisToolPolyline::buttonPress(KisButtonPressEvent *event)
{
if (m_currentImage) {
- if (event->button() == Qt::LeftButton && event->state() != TQt::ShiftButton ) {
+ if (event->button() == TQt::LeftButton && event->state() != TQt::ShiftButton ) {
m_dragging = true;
@@ -82,7 +82,7 @@ void KisToolPolyline::buttonPress(KisButtonPressEvent *event)
m_dragEnd = event->pos();
draw();
}
- } else if (event->button() == Qt::LeftButton && event->state() == TQt::ShiftButton ) {
+ } else if (event->button() == TQt::LeftButton && event->state() == TQt::ShiftButton ) {
finish();
}
}
@@ -154,12 +154,12 @@ void KisToolPolyline::buttonRelease(KisButtonReleaseEvent *event)
if (!m_subject || !m_currentImage)
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/tool_selectsimilar/kis_tool_selectsimilar.cpp b/chalk/plugins/tools/tool_selectsimilar/kis_tool_selectsimilar.cpp
index 65b05957..3a5182b4 100644
--- a/chalk/plugins/tools/tool_selectsimilar/kis_tool_selectsimilar.cpp
+++ b/chalk/plugins/tools/tool_selectsimilar/kis_tool_selectsimilar.cpp
@@ -130,7 +130,7 @@ void KisToolSelectSimilar::buttonPress(KisButtonPressEvent *e)
TQPoint pos;
TQ_UINT8 opacity = OPACITY_OPAQUE;
- 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/tool_star/kis_tool_star.cpp b/chalk/plugins/tools/tool_star/kis_tool_star.cpp
index 3a260545..601bb775 100644
--- a/chalk/plugins/tools/tool_star/kis_tool_star.cpp
+++ b/chalk/plugins/tools/tool_star/kis_tool_star.cpp
@@ -73,7 +73,7 @@ void KisToolStar::update (KisCanvasSubject *subject)
void KisToolStar::buttonPress(KisButtonPressEvent *event)
{
- if (m_currentImage && event->button() == Qt::LeftButton) {
+ if (m_currentImage && event->button() == TQt::LeftButton) {
m_dragging = true;
m_dragStart = event->pos();
m_dragEnd = event->pos();
@@ -105,7 +105,7 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
if (!m_subject || !m_currentImage)
return;
- if (m_dragging && event->button() == Qt::LeftButton) {
+ if (m_dragging && event->button() == TQt::LeftButton) {
// erase old lines on canvas
draw(m_dragStart, m_dragEnd);
m_dragging = false;
diff --git a/chalk/plugins/tools/tool_transform/kis_tool_transform.cpp b/chalk/plugins/tools/tool_transform/kis_tool_transform.cpp
index 88a67566..19841067 100644
--- a/chalk/plugins/tools/tool_transform/kis_tool_transform.cpp
+++ b/chalk/plugins/tools/tool_transform/kis_tool_transform.cpp
@@ -275,14 +275,14 @@ void KisToolTransform::paint(KisCanvasPainter& gc, const TQRect& rc)
void KisToolTransform::buttonPress(KisButtonPressEvent *e)
{
- if (m_subject && e->button() == Qt::LeftButton) {
+ if (m_subject && e->button() == TQt::LeftButton) {
m_wasPressed = true;
}
if (m_subject) {
KisImageSP img = m_subject->currentImg();
- if (img && img->activeDevice() && e->button() == Qt::LeftButton) {
+ if (img && img->activeDevice() && e->button() == TQt::LeftButton) {
switch(m_function)
{
case ROTATE:
@@ -646,7 +646,7 @@ void KisToolTransform::move(KisMoveEvent *e)
void KisToolTransform::buttonRelease(KisButtonReleaseEvent *e)
{
- if (m_subject && e->button() == Qt::LeftButton) {
+ if (m_subject && e->button() == TQt::LeftButton) {
if(!m_wasPressed) return;
m_wasPressed = false;