summaryrefslogtreecommitdiffstats
path: root/krita/plugins/tools/selectiontools/kis_tool_select_contiguous.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/tools/selectiontools/kis_tool_select_contiguous.cc')
-rw-r--r--krita/plugins/tools/selectiontools/kis_tool_select_contiguous.cc50
1 files changed, 25 insertions, 25 deletions
diff --git a/krita/plugins/tools/selectiontools/kis_tool_select_contiguous.cc b/krita/plugins/tools/selectiontools/kis_tool_select_contiguous.cc
index 01acbbcb..1344c39f 100644
--- a/krita/plugins/tools/selectiontools/kis_tool_select_contiguous.cc
+++ b/krita/plugins/tools/selectiontools/kis_tool_select_contiguous.cc
@@ -20,11 +20,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qpainter.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qapplication.h>
-#include <qcheckbox.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqapplication.h>
+#include <tqcheckbox.h>
#include <kaction.h>
#include <kdebug.h>
@@ -84,9 +84,9 @@ void KisToolSelectContiguous::buttonPress(KisButtonPressEvent * e)
KisImageSP img;
KisPaintDeviceSP dev;
- QPoint pos;
+ TQPoint pos;
- if (e->button() != QMouseEvent::LeftButton && e->button() != QMouseEvent::RightButton)
+ if (e->button() != TQMouseEvent::LeftButton && e->button() != TQMouseEvent::RightButton)
return;
if (!(img = m_subject->currentImg()))
@@ -97,9 +97,9 @@ void KisToolSelectContiguous::buttonPress(KisButtonPressEvent * e)
if (!dev || !img->activeLayer()->visible())
return;
- QApplication::setOverrideCursor(KisCursor::waitCursor());
+ TQApplication::setOverrideCursor(KisCursor::waitCursor());
- pos = QPoint(e->pos().floorX(), e->pos().floorY());
+ pos = TQPoint(e->pos().floorX(), e->pos().floorY());
KisFillPainter fillpainter(dev);
fillpainter.setFillThreshold(m_fuzziness);
@@ -132,7 +132,7 @@ void KisToolSelectContiguous::buttonPress(KisButtonPressEvent * e)
if (img->undo())
img->undoAdapter()->addCommand(t);
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
}
@@ -146,7 +146,7 @@ void KisToolSelectContiguous::setup(KActionCollection *collection)
"tool_contiguous_selection" ,
0,
this,
- SLOT(activate()),
+ TQT_SLOT(activate()),
collection,
name());
Q_CHECK_PTR(m_action);
@@ -183,21 +183,21 @@ void KisToolSelectContiguous::slotSetAction(int action)
}
-QWidget* KisToolSelectContiguous::createOptionWidget(QWidget* parent)
+TQWidget* KisToolSelectContiguous::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("Contiguous Area Selection"));
- QVBoxLayout * l = dynamic_cast<QVBoxLayout*>(m_optWidget->layout());
+ TQVBoxLayout * l = dynamic_cast<TQVBoxLayout*>(m_optWidget->tqlayout());
l->setSpacing( 6 );
- connect (m_optWidget, SIGNAL(actionChanged(int)), this, SLOT(slotSetAction(int)));
+ connect (m_optWidget, TQT_SIGNAL(actionChanged(int)), this, TQT_SLOT(slotSetAction(int)));
- QHBoxLayout * hbox = new QHBoxLayout(l);
+ TQHBoxLayout * hbox = new TQHBoxLayout(l);
Q_CHECK_PTR(hbox);
- QLabel * lbl = new QLabel(i18n("Fuzziness: "), m_optWidget);
+ TQLabel * lbl = new TQLabel(i18n("Fuzziness: "), m_optWidget);
hbox->addWidget(lbl);
KIntNumInput * input = new KIntNumInput(m_optWidget, "fuzziness");
@@ -206,29 +206,29 @@ QWidget* KisToolSelectContiguous::createOptionWidget(QWidget* parent)
input->setRange(0, 200, 10, true);
input->setValue(20);
hbox->addWidget(input);
- connect(input, SIGNAL(valueChanged(int)), this, SLOT(slotSetFuzziness(int)));
+ connect(input, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetFuzziness(int)));
- QCheckBox* samplemerged = new QCheckBox(i18n("Sample merged"), m_optWidget);
+ TQCheckBox* samplemerged = new TQCheckBox(i18n("Sample merged"), m_optWidget);
l->addWidget( samplemerged );
samplemerged->setChecked(m_sampleMerged);
- connect(samplemerged, SIGNAL(stateChanged(int)),
- this, SLOT(slotSetSampleMerged(int)));
+ connect(samplemerged, TQT_SIGNAL(stateChanged(int)),
+ this, TQT_SLOT(slotSetSampleMerged(int)));
- l->addItem(new QSpacerItem(1, 1, QSizePolicy::Fixed, QSizePolicy::Expanding));
+ l->addItem(new TQSpacerItem(1, 1, TQSizePolicy::Fixed, TQSizePolicy::Expanding));
return m_optWidget;
}
-QWidget* KisToolSelectContiguous::optionWidget()
+TQWidget* KisToolSelectContiguous::optionWidget()
{
return m_optWidget;
}
void KisToolSelectContiguous::slotSetSampleMerged(int state)
{
- if (state == QButton::NoChange)
+ if (state == TQButton::NoChange)
return;
- m_sampleMerged = (state == QButton::On);
+ m_sampleMerged = (state == TQButton::On);
}
#include "kis_tool_select_contiguous.moc"