diff options
Diffstat (limited to 'krita/plugins/tools/selectiontools/kis_tool_select_eraser.cc')
| -rw-r--r-- | krita/plugins/tools/selectiontools/kis_tool_select_eraser.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/krita/plugins/tools/selectiontools/kis_tool_select_eraser.cc b/krita/plugins/tools/selectiontools/kis_tool_select_eraser.cc index 6880c61b9..08c30fc0d 100644 --- a/krita/plugins/tools/selectiontools/kis_tool_select_eraser.cc +++ b/krita/plugins/tools/selectiontools/kis_tool_select_eraser.cc @@ -18,10 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qevent.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qwidget.h> +#include <tqevent.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqwidget.h> #include <kdebug.h> #include <kaction.h> @@ -93,14 +93,14 @@ void KisToolSelectEraser::initPaint(KisEvent */*e*/) m_painter = new KisPainter(selection.data()); Q_CHECK_PTR(m_painter); m_painter->beginTransaction(i18n("Selection Eraser")); - m_painter->setPaintColor(KisColor(Qt::white, selection->colorSpace())); + m_painter->setPaintColor(KisColor(TQt::white, selection->colorSpace())); m_painter->setBrush(m_subject->currentBrush()); m_painter->setOpacity(OPACITY_OPAQUE); m_painter->setCompositeOp(COMPOSITE_ERASE); KisPaintOp * op = KisPaintOpRegistry::instance()->paintOp("eraser", 0, painter()); painter()->setPaintOp(op); // And now the painter owns the op and will destroy it. - // Set the cursor -- ideally. this should be a mask created from the brush, + // Set the cursor -- ideally. this should be a tqmask created from the brush, // now that X11 can handle colored cursors. #if 0 // Setting cursors has no effect until the tool is selected again; this @@ -121,7 +121,7 @@ void KisToolSelectEraser::setup(KActionCollection *collection) if (m_action == 0) { m_action = new KRadioAction(i18n("Selection &Eraser"), "tool_eraser_selection", "Ctrl+Shift+E", this, - SLOT(activate()), collection, + TQT_SLOT(activate()), collection, name()); Q_CHECK_PTR(m_action); m_action->setToolTip(i18n("Erase parts of a selection")); @@ -130,24 +130,24 @@ void KisToolSelectEraser::setup(KActionCollection *collection) } } -QWidget* KisToolSelectEraser::createOptionWidget(QWidget* parent) +TQWidget* KisToolSelectEraser::createOptionWidget(TQWidget* tqparent) { - Q_UNUSED(parent); + Q_UNUSED(tqparent); // 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); + m_optWidget = new KisSelectionOptions(tqparent, m_subject); Q_CHECK_PTR(m_optWidget); m_optWidget->setCaption(i18n("Selection Eraser")); - 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; #endif return 0; } -QWidget* KisToolSelectEraser::optionWidget() +TQWidget* KisToolSelectEraser::optionWidget() { return m_optWidget; } |
