summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/tools/selectiontools
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-02-14 21:10:09 -0600
committerTimothy Pearson <[email protected]>2012-02-14 21:10:09 -0600
commite6cf8874a75a09b279e13f59e78b31804b1d6f83 (patch)
tree73cf4e5dee6ce00c4fa7d32243c322631c50712c /chalk/plugins/tools/selectiontools
parent35dc3d657c5d486b5233ce8e6ec74bf9656aaedf (diff)
downloadkoffice-e6cf8874a75a09b279e13f59e78b31804b1d6f83.tar.gz
koffice-e6cf8874a75a09b279e13f59e78b31804b1d6f83.zip
Update various qt function definitions and static methods for tqt3
Diffstat (limited to 'chalk/plugins/tools/selectiontools')
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_move_selection.cc2
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_move_selection.h2
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_brush.cc6
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_brush.h2
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.cc8
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.h2
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.cc4
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.h2
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_eraser.cc6
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_eraser.h2
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_outline.cc4
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_outline.h2
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.cc4
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.h2
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.cc4
-rw-r--r--chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.h2
16 files changed, 27 insertions, 27 deletions
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_move_selection.cc b/chalk/plugins/tools/selectiontools/kis_tool_move_selection.cc
index 343cee9f..85772397 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_move_selection.cc
+++ b/chalk/plugins/tools/selectiontools/kis_tool_move_selection.cc
@@ -188,7 +188,7 @@ void KisToolMoveSelection::buttonRelease(KisButtonReleaseEvent *e)
if (img->undo()) {
KCommand *cmd = new KisSelectionOffsetCommand( dev, m_layerStart, m_layerPosition);
- Q_CHECK_PTR(cmd);
+ TQ_CHECK_PTR(cmd);
KisUndoAdapter *adapter = img->undoAdapter();
if (adapter) {
adapter->addCommand(cmd);
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_move_selection.h b/chalk/plugins/tools/selectiontools/kis_tool_move_selection.h
index 60d73a9b..a8c604ec 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_move_selection.h
+++ b/chalk/plugins/tools/selectiontools/kis_tool_move_selection.h
@@ -62,7 +62,7 @@ public:
virtual KisTool * createTool(KActionCollection * ac) {
KisTool * t = new KisToolMoveSelection();
- Q_CHECK_PTR(t);
+ TQ_CHECK_PTR(t);
t->setup(ac);
return t;
}
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_brush.cc b/chalk/plugins/tools/selectiontools/kis_tool_select_brush.cc
index d6c8dd23..c2ca5405 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_brush.cc
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_brush.cc
@@ -92,7 +92,7 @@ void KisToolSelectBrush::initPaint(KisEvent* /*e*/)
m_target = selection;
m_painter = new KisPainter(selection.data());
- Q_CHECK_PTR(m_painter);
+ TQ_CHECK_PTR(m_painter);
m_painter->setPaintColor(KisColor(TQt::black, selection->colorSpace()));
m_painter->setBrush(m_subject->currentBrush());
m_painter->setOpacity(OPACITY_OPAQUE);//m_subject->fgColor().colorSpace()->intensity8(m_subject->fgColor().data()));
@@ -136,7 +136,7 @@ void KisToolSelectBrush::setup(KActionCollection *collection)
"tool_brush_selection", "Ctrl+Shift+B", this,
TQT_SLOT(activate()), collection,
name());
- Q_CHECK_PTR(m_action);
+ TQ_CHECK_PTR(m_action);
m_action->setToolTip(i18n("Paint a selection"));
m_action->setExclusiveGroup("tools");
m_ownAction = true;
@@ -149,7 +149,7 @@ TQWidget* KisToolSelectBrush::createOptionWidget(TQWidget* parent)
// Commented out due to the fact that this doesn't actually work if you change the action
#if 0
m_optWidget = new KisSelectionOptions(parent, m_subject);
- Q_CHECK_PTR(m_optWidget);
+ TQ_CHECK_PTR(m_optWidget);
m_optWidget->setCaption(i18n("Selection Brush"));
TQVBoxLayout * l = dynamic_cast<TQVBoxLayout*>(m_optWidget->layout());
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_brush.h b/chalk/plugins/tools/selectiontools/kis_tool_select_brush.h
index 9fd07e6d..a2660016 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_brush.h
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_brush.h
@@ -71,7 +71,7 @@ public:
virtual KisTool * createTool(KActionCollection * ac) {
KisTool * t = new KisToolSelectBrush();
- Q_CHECK_PTR(t);
+ TQ_CHECK_PTR(t);
t->setup(ac);
return t;
}
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.cc b/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.cc
index 94c28e01..dd762a9d 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.cc
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.cc
@@ -149,7 +149,7 @@ void KisToolSelectContiguous::setup(KActionCollection *collection)
TQT_SLOT(activate()),
collection,
name());
- Q_CHECK_PTR(m_action);
+ TQ_CHECK_PTR(m_action);
m_action->setToolTip(i18n("Select a contiguous area"));
m_action->setExclusiveGroup("tools");
m_ownAction = true;
@@ -186,7 +186,7 @@ void KisToolSelectContiguous::slotSetAction(int action)
TQWidget* KisToolSelectContiguous::createOptionWidget(TQWidget* parent)
{
m_optWidget = new KisSelectionOptions(parent, m_subject);
- Q_CHECK_PTR(m_optWidget);
+ TQ_CHECK_PTR(m_optWidget);
m_optWidget->setCaption(i18n("Contiguous Area Selection"));
TQVBoxLayout * l = dynamic_cast<TQVBoxLayout*>(m_optWidget->layout());
@@ -195,13 +195,13 @@ TQWidget* KisToolSelectContiguous::createOptionWidget(TQWidget* parent)
connect (m_optWidget, TQT_SIGNAL(actionChanged(int)), this, TQT_SLOT(slotSetAction(int)));
TQHBoxLayout * hbox = new TQHBoxLayout(l);
- Q_CHECK_PTR(hbox);
+ TQ_CHECK_PTR(hbox);
TQLabel * lbl = new TQLabel(i18n("Fuzziness: "), m_optWidget);
hbox->addWidget(lbl);
KIntNumInput * input = new KIntNumInput(m_optWidget, "fuzziness");
- Q_CHECK_PTR(input);
+ TQ_CHECK_PTR(input);
input->setRange(0, 200, 10, true);
input->setValue(20);
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.h b/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.h
index 688276e0..8b7db742 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.h
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_contiguous.h
@@ -83,7 +83,7 @@ public:
virtual KisTool * createTool(KActionCollection * ac) {
KisTool * t = new KisToolSelectContiguous();
- Q_CHECK_PTR(t);
+ TQ_CHECK_PTR(t);
t->setup(ac);
return t;
}
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.cc b/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.cc
index c499f48a..77f96c5a 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.cc
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.cc
@@ -290,7 +290,7 @@ void KisToolSelectElliptical::setup(KActionCollection *collection)
TQT_SLOT(activate()),
collection,
name());
- Q_CHECK_PTR(m_action);
+ TQ_CHECK_PTR(m_action);
m_action->setToolTip(i18n("Select an elliptical area"));
m_action->setExclusiveGroup("tools");
m_ownAction = true;
@@ -300,7 +300,7 @@ void KisToolSelectElliptical::setup(KActionCollection *collection)
TQWidget* KisToolSelectElliptical::createOptionWidget(TQWidget* parent)
{
m_optWidget = new KisSelectionOptions(parent, m_subject);
- Q_CHECK_PTR(m_optWidget);
+ TQ_CHECK_PTR(m_optWidget);
m_optWidget->setCaption(i18n("Elliptical Selection"));
connect (m_optWidget, TQT_SIGNAL(actionChanged(int)), this, TQT_SLOT(slotSetAction(int)));
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.h b/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.h
index 4c21cfcd..6873b995 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.h
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_elliptical.h
@@ -84,7 +84,7 @@ public:
virtual KisTool * createTool(KActionCollection * ac) {
KisTool * t = new KisToolSelectElliptical();
- Q_CHECK_PTR(t);
+ TQ_CHECK_PTR(t);
t->setup(ac);
return t;
}
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_eraser.cc b/chalk/plugins/tools/selectiontools/kis_tool_select_eraser.cc
index de5b92f1..7054f69c 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_eraser.cc
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_eraser.cc
@@ -91,7 +91,7 @@ void KisToolSelectEraser::initPaint(KisEvent */*e*/)
m_target = selection;
m_painter = new KisPainter(selection.data());
- Q_CHECK_PTR(m_painter);
+ TQ_CHECK_PTR(m_painter);
m_painter->beginTransaction(i18n("Selection Eraser"));
m_painter->setPaintColor(KisColor(TQt::white, selection->colorSpace()));
m_painter->setBrush(m_subject->currentBrush());
@@ -123,7 +123,7 @@ void KisToolSelectEraser::setup(KActionCollection *collection)
"tool_eraser_selection", "Ctrl+Shift+E", this,
TQT_SLOT(activate()), collection,
name());
- Q_CHECK_PTR(m_action);
+ TQ_CHECK_PTR(m_action);
m_action->setToolTip(i18n("Erase parts of a selection"));
m_action->setExclusiveGroup("tools");
m_ownAction = true;
@@ -136,7 +136,7 @@ TQWidget* KisToolSelectEraser::createOptionWidget(TQWidget* parent)
// Commented out due to the fact that this doesn't actually work if you change the action
#if 0
m_optWidget = new KisSelectionOptions(parent, m_subject);
- Q_CHECK_PTR(m_optWidget);
+ TQ_CHECK_PTR(m_optWidget);
m_optWidget->setCaption(i18n("Selection Eraser"));
TQVBoxLayout * l = dynamic_cast<TQVBoxLayout*>(m_optWidget->layout());
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_eraser.h b/chalk/plugins/tools/selectiontools/kis_tool_select_eraser.h
index cb8b82ed..5825181b 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_eraser.h
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_eraser.h
@@ -69,7 +69,7 @@ public:
virtual KisTool * createTool(KActionCollection * ac) {
KisTool * t = new KisToolSelectEraser();
- Q_CHECK_PTR(t);
+ TQ_CHECK_PTR(t);
t->setup(ac);
return t;
}
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_outline.cc b/chalk/plugins/tools/selectiontools/kis_tool_select_outline.cc
index a21b731e..3788eaa5 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_outline.cc
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_outline.cc
@@ -259,7 +259,7 @@ void KisToolSelectOutline::setup(KActionCollection *collection)
TQT_SLOT(activate()),
collection,
name());
- Q_CHECK_PTR(m_action);
+ TQ_CHECK_PTR(m_action);
m_action->setExclusiveGroup("tools");
m_action->setToolTip(i18n("Select an outline"));
m_ownAction = true;
@@ -270,7 +270,7 @@ void KisToolSelectOutline::setup(KActionCollection *collection)
TQWidget* KisToolSelectOutline::createOptionWidget(TQWidget* parent)
{
m_optWidget = new KisSelectionOptions(parent, m_subject);
- Q_CHECK_PTR(m_optWidget);
+ TQ_CHECK_PTR(m_optWidget);
m_optWidget->setCaption(i18n("Outline Selection"));
connect (m_optWidget, TQT_SIGNAL(actionChanged(int)), this, TQT_SLOT(slotSetAction(int)));
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_outline.h b/chalk/plugins/tools/selectiontools/kis_tool_select_outline.h
index 08119c96..b8c8c332 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_outline.h
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_outline.h
@@ -89,7 +89,7 @@ public:
virtual KisTool * createTool(KActionCollection * ac) {
KisTool * t = new KisToolSelectOutline();
- Q_CHECK_PTR(t);
+ TQ_CHECK_PTR(t);
t->setup(ac);
return t;
}
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.cc b/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.cc
index 39f306ac..b7ad8cb6 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.cc
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.cc
@@ -278,7 +278,7 @@ void KisToolSelectPolygonal::setup(KActionCollection *collection)
TQT_SLOT(activate()),
collection,
name());
- Q_CHECK_PTR(m_action);
+ TQ_CHECK_PTR(m_action);
m_action->setExclusiveGroup("tools");
m_action->setToolTip(i18n("Select a polygonal area"));
m_ownAction = true;
@@ -289,7 +289,7 @@ void KisToolSelectPolygonal::setup(KActionCollection *collection)
TQWidget* KisToolSelectPolygonal::createOptionWidget(TQWidget* parent)
{
m_optWidget = new KisSelectionOptions(parent, m_subject);
- Q_CHECK_PTR(m_optWidget);
+ TQ_CHECK_PTR(m_optWidget);
m_optWidget->setCaption(i18n("Polygonal Selection"));
connect (m_optWidget, TQT_SIGNAL(actionChanged(int)), this, TQT_SLOT(slotSetAction(int)));
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.h b/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.h
index 6e2d62fa..6a0051f4 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.h
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_polygonal.h
@@ -94,7 +94,7 @@ public:
virtual KisTool * createTool(KActionCollection * ac) {
KisTool * t = new KisToolSelectPolygonal();
- Q_CHECK_PTR(t);
+ TQ_CHECK_PTR(t);
t->setup(ac);
return t;
}
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.cc b/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.cc
index 3d580f89..316ce149 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.cc
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.cc
@@ -291,7 +291,7 @@ void KisToolSelectRectangular::setup(KActionCollection *collection)
TQT_SLOT(activate()),
collection,
name());
- Q_CHECK_PTR(m_action);
+ TQ_CHECK_PTR(m_action);
m_action->setExclusiveGroup("tools");
m_action->setToolTip(i18n("Select a rectangular area"));
m_ownAction = true;
@@ -301,7 +301,7 @@ void KisToolSelectRectangular::setup(KActionCollection *collection)
TQWidget* KisToolSelectRectangular::createOptionWidget(TQWidget* parent)
{
m_optWidget = new KisSelectionOptions(parent, m_subject);
- Q_CHECK_PTR(m_optWidget);
+ TQ_CHECK_PTR(m_optWidget);
m_optWidget->setCaption(i18n("Rectangular Selection"));
connect (m_optWidget, TQT_SIGNAL(actionChanged(int)), this, TQT_SLOT(slotSetAction(int)));
diff --git a/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.h b/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.h
index b2f8ecad..c2e25639 100644
--- a/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.h
+++ b/chalk/plugins/tools/selectiontools/kis_tool_select_rectangular.h
@@ -83,7 +83,7 @@ public:
virtual KisTool * createTool(KActionCollection * ac) {
KisTool * t = new KisToolSelectRectangular();
t->setup(ac);
- Q_CHECK_PTR(t);
+ TQ_CHECK_PTR(t);
return t;
}
virtual KisID id() { return KisID("rectangularselect", i18n("Rectangular Select Tool")); }