summaryrefslogtreecommitdiffstats
path: root/krita/plugins/tools/selectiontools/kis_tool_select_outline.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/tools/selectiontools/kis_tool_select_outline.cc')
-rw-r--r--krita/plugins/tools/selectiontools/kis_tool_select_outline.cc58
1 files changed, 29 insertions, 29 deletions
diff --git a/krita/plugins/tools/selectiontools/kis_tool_select_outline.cc b/krita/plugins/tools/selectiontools/kis_tool_select_outline.cc
index fe76c989..11c59824 100644
--- a/krita/plugins/tools/selectiontools/kis_tool_select_outline.cc
+++ b/krita/plugins/tools/selectiontools/kis_tool_select_outline.cc
@@ -19,11 +19,11 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qapplication.h>
-#include <qpainter.h>
-#include <qregion.h>
-#include <qwidget.h>
-#include <qlayout.h>
+#include <tqapplication.h>
+#include <tqpainter.h>
+#include <tqregion.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
#include <kaction.h>
#include <kdebug.h>
@@ -115,7 +115,7 @@ void KisToolSelectOutline::buttonRelease(KisButtonReleaseEvent *event)
KisImageSP img = m_subject->currentImg();
if (img && img->activeDevice()) {
- QApplication::setOverrideCursor(KisCursor::waitCursor());
+ TQApplication::setOverrideCursor(KisCursor::waitCursor());
KisPaintDeviceSP dev = img->activeDevice();
bool hasSelection = dev->hasSelection();
KisSelectedTransaction *t = 0;
@@ -128,7 +128,7 @@ void KisToolSelectOutline::buttonRelease(KisButtonReleaseEvent *event)
KisPainter painter(selection.data());
- painter.setPaintColor(KisColor(Qt::black, selection->colorSpace()));
+ painter.setPaintColor(KisColor(TQt::black, selection->colorSpace()));
painter.setFillStyle(KisPainter::FillStyleForegroundColor);
painter.setStrokeStyle(KisPainter::StrokeStyleNone);
painter.setBrush(m_subject->currentBrush());
@@ -151,7 +151,7 @@ void KisToolSelectOutline::buttonRelease(KisButtonReleaseEvent *event)
if(hasSelection) {
- QRect dirty(painter.dirtyRect());
+ TQRect dirty(painter.dirtyRect());
dev->setDirty(dirty);
dev->emitSelectionChanged(dirty);
} else {
@@ -162,7 +162,7 @@ void KisToolSelectOutline::buttonRelease(KisButtonReleaseEvent *event)
if (img->undo())
img->undoAdapter()->addCommand(t);
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
m_points.clear();
@@ -174,7 +174,7 @@ void KisToolSelectOutline::paint(KisCanvasPainter& gc)
draw(gc);
}
-void KisToolSelectOutline::paint(KisCanvasPainter& gc, const QRect&)
+void KisToolSelectOutline::paint(KisCanvasPainter& gc, const TQRect&)
{
draw(gc);
}
@@ -196,18 +196,18 @@ void KisToolSelectOutline::draw(KisCanvasPainter& gc)
return;
if (m_dragging && !m_points.empty()) {
- QPen pen(Qt::white, 0, Qt::DotLine);
+ TQPen pen(TQt::white, 0, TQt::DotLine);
gc.setPen(pen);
- gc.setRasterOp(Qt::XorROP);
+ gc.setRasterOp(TQt::XorROP);
KisCanvasController *controller = m_subject->canvasController();
KisPoint start, end;
- QPoint startPos;
- QPoint endPos;
+ TQPoint startPos;
+ TQPoint endPos;
- startPos = controller->windowToView(m_dragStart.floorQPoint());
- endPos = controller->windowToView(m_dragEnd.floorQPoint());
+ startPos = controller->windowToView(m_dragStart.floorTQPoint());
+ endPos = controller->windowToView(m_dragEnd.floorTQPoint());
gc.drawLine(startPos, endPos);
}
}
@@ -219,14 +219,14 @@ void KisToolSelectOutline::deactivate()
KisCanvas *canvas = controller->kiscanvas();
KisCanvasPainter gc(canvas);
- QPen pen(Qt::white, 0, Qt::DotLine);
+ TQPen pen(TQt::white, 0, TQt::DotLine);
gc.setPen(pen);
- gc.setRasterOp(Qt::XorROP);
+ gc.setRasterOp(TQt::XorROP);
KisPoint start, end;
- QPoint startPos;
- QPoint endPos;
+ TQPoint startPos;
+ TQPoint endPos;
for (KisPointVector::iterator it = m_points.begin(); it != m_points.end(); ++it) {
@@ -236,8 +236,8 @@ void KisToolSelectOutline::deactivate()
} else {
end = (*it);
- startPos = controller->windowToView(start.floorQPoint());
- endPos = controller->windowToView(end.floorQPoint());
+ startPos = controller->windowToView(start.floorTQPoint());
+ endPos = controller->windowToView(end.floorTQPoint());
gc.drawLine(startPos, endPos);
@@ -256,7 +256,7 @@ void KisToolSelectOutline::setup(KActionCollection *collection)
"tool_outline_selection",
0,
this,
- SLOT(activate()),
+ TQT_SLOT(activate()),
collection,
name());
Q_CHECK_PTR(m_action);
@@ -267,21 +267,21 @@ void KisToolSelectOutline::setup(KActionCollection *collection)
}
-QWidget* KisToolSelectOutline::createOptionWidget(QWidget* parent)
+TQWidget* KisToolSelectOutline::createOptionWidget(TQWidget* tqparent)
{
- m_optWidget = new KisSelectionOptions(parent, m_subject);
+ m_optWidget = new KisSelectionOptions(tqparent, m_subject);
Q_CHECK_PTR(m_optWidget);
m_optWidget->setCaption(i18n("Outline Selection"));
- connect (m_optWidget, SIGNAL(actionChanged(int)), this, SLOT(slotSetAction(int)));
+ connect (m_optWidget, TQT_SIGNAL(actionChanged(int)), this, TQT_SLOT(slotSetAction(int)));
- QVBoxLayout * l = dynamic_cast<QVBoxLayout*>(m_optWidget->layout());
- l->addItem(new QSpacerItem(1, 1, QSizePolicy::Fixed, QSizePolicy::Expanding));
+ TQVBoxLayout * l = dynamic_cast<TQVBoxLayout*>(m_optWidget->tqlayout());
+ l->addItem(new TQSpacerItem(1, 1, TQSizePolicy::Fixed, TQSizePolicy::Expanding));
return m_optWidget;
}
-QWidget* KisToolSelectOutline::optionWidget()
+TQWidget* KisToolSelectOutline::optionWidget()
{
return m_optWidget;
}