diff options
author | Timothy Pearson <[email protected]> | 2012-02-14 21:10:09 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-02-14 21:10:09 -0600 |
commit | e6cf8874a75a09b279e13f59e78b31804b1d6f83 (patch) | |
tree | 73cf4e5dee6ce00c4fa7d32243c322631c50712c /chalk/ui | |
parent | 35dc3d657c5d486b5233ce8e6ec74bf9656aaedf (diff) | |
download | koffice-e6cf8874a75a09b279e13f59e78b31804b1d6f83.tar.gz koffice-e6cf8874a75a09b279e13f59e78b31804b1d6f83.zip |
Update various qt function definitions and static methods for tqt3
Diffstat (limited to 'chalk/ui')
-rw-r--r-- | chalk/ui/kis_autobrush.cc | 8 | ||||
-rw-r--r-- | chalk/ui/kis_canvas.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_clipboard.cc | 4 | ||||
-rw-r--r-- | chalk/ui/kis_custom_brush.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_custom_pattern.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_doc.cc | 28 | ||||
-rw-r--r-- | chalk/ui/kis_factory.cc | 4 | ||||
-rw-r--r-- | chalk/ui/kis_filter_manager.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_palette_view.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_resource_mediator.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_resourceserver.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_ruler.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_selection_manager.cc | 18 | ||||
-rw-r--r-- | chalk/ui/kis_selection_options.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_tool_dummy.h | 2 | ||||
-rw-r--r-- | chalk/ui/kis_tool_freehand.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_tool_shape.cc | 2 | ||||
-rw-r--r-- | chalk/ui/kis_view.cc | 20 |
18 files changed, 53 insertions, 53 deletions
diff --git a/chalk/ui/kis_autobrush.cc b/chalk/ui/kis_autobrush.cc index b2e848a8..5e61bcc5 100644 --- a/chalk/ui/kis_autobrush.cc +++ b/chalk/ui/kis_autobrush.cc @@ -50,7 +50,7 @@ KisAutobrush::KisAutobrush(TQWidget *parent, const char* name, const TQString& c connect(spinBoxVertical,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(spinBoxVerticalChanged(int))); m_brsh = new TQImage(1,1,32); - Q_CHECK_PTR(m_brsh); + TQ_CHECK_PTR(m_brsh); paramChanged(); @@ -79,11 +79,11 @@ void KisAutobrush::paramChanged() if(comboBoxShape->currentItem() == 0) // use index compare instead of comparing a translatable string { kas = new KisAutobrushCircleShape(spinBoxWidth->value(), spinBoxHeigth->value(), fh, fv); - Q_CHECK_PTR(kas); + TQ_CHECK_PTR(kas); } else { kas = new KisAutobrushRectShape(spinBoxWidth->value(), spinBoxHeigth->value(), fh, fv); - Q_CHECK_PTR(kas); + TQ_CHECK_PTR(kas); } kas->createBrush(m_brsh); @@ -109,7 +109,7 @@ void KisAutobrush::paramChanged() p.convertFromImage(pi); brushPreview->setPixmap(p); KisAutobrushResource * resource = new KisAutobrushResource(*m_brsh); - Q_CHECK_PTR(resource); + TQ_CHECK_PTR(resource); emit(activatedResource(resource)); delete kas; diff --git a/chalk/ui/kis_canvas.cc b/chalk/ui/kis_canvas.cc index d38c7ea1..2fdc813b 100644 --- a/chalk/ui/kis_canvas.cc +++ b/chalk/ui/kis_canvas.cc @@ -1105,7 +1105,7 @@ void KisCanvas::createCanvasWidget(bool useOpenGL) m_useOpenGL = useOpenGL; - Q_CHECK_PTR(m_canvasWidget); + TQ_CHECK_PTR(m_canvasWidget); TQWidget *widget = dynamic_cast<TQWidget *>(m_canvasWidget); widget->setBackgroundMode(TQWidget::NoBackground); diff --git a/chalk/ui/kis_clipboard.cc b/chalk/ui/kis_clipboard.cc index 0c3f65e7..3c16049c 100644 --- a/chalk/ui/kis_clipboard.cc +++ b/chalk/ui/kis_clipboard.cc @@ -65,7 +65,7 @@ KisClipboard* KisClipboard::instance() if(KisClipboard::m_singleton == 0) { KisClipboard::m_singleton = new KisClipboard(); - Q_CHECK_PTR(KisClipboard::m_singleton); + TQ_CHECK_PTR(KisClipboard::m_singleton); } return KisClipboard::m_singleton; } @@ -200,7 +200,7 @@ KisPaintDeviceSP KisClipboard::clip() cs = KisMetaRegistry::instance()->csRegistry() ->getColorSpace(KisID("RGBA",""), profileName); m_clip = new KisPaintDevice(cs, "from paste"); - Q_CHECK_PTR(m_clip); + TQ_CHECK_PTR(m_clip); m_clip->convertFromTQImage(qimg, profileName); } diff --git a/chalk/ui/kis_custom_brush.cc b/chalk/ui/kis_custom_brush.cc index 8091d0fb..d633935c 100644 --- a/chalk/ui/kis_custom_brush.cc +++ b/chalk/ui/kis_custom_brush.cc @@ -105,7 +105,7 @@ void KisCustomBrush::slotAddPredefined() { void KisCustomBrush::slotUseBrush() { KisBrush* copy = m_brush->clone(); - Q_CHECK_PTR(copy); + TQ_CHECK_PTR(copy); emit(activatedResource(copy)); } diff --git a/chalk/ui/kis_custom_pattern.cc b/chalk/ui/kis_custom_pattern.cc index c5c04f23..4f0821ed 100644 --- a/chalk/ui/kis_custom_pattern.cc +++ b/chalk/ui/kis_custom_pattern.cc @@ -100,7 +100,7 @@ void KisCustomPattern::slotUsePattern() { return; KisPattern* copy = m_pattern->clone(); - Q_CHECK_PTR(copy); + TQ_CHECK_PTR(copy); emit(activatedResource(copy)); } diff --git a/chalk/ui/kis_doc.cc b/chalk/ui/kis_doc.cc index 70141dea..02699d67 100644 --- a/chalk/ui/kis_doc.cc +++ b/chalk/ui/kis_doc.cc @@ -177,7 +177,7 @@ DCOPObject *KisDoc::dcopObject() { if (!m_dcop) { m_dcop = new KisDocIface(this); - Q_CHECK_PTR(m_dcop); + TQ_CHECK_PTR(m_dcop); } return m_dcop; } @@ -258,14 +258,14 @@ bool KisDoc::init() } m_cmdHistory = new KoCommandHistory(actionCollection(), true); - Q_CHECK_PTR(m_cmdHistory); + TQ_CHECK_PTR(m_cmdHistory); connect(m_cmdHistory, TQT_SIGNAL(documentRestored()), this, TQT_SLOT(slotDocumentRestored())); connect(m_cmdHistory, TQT_SIGNAL(commandExecuted(KCommand *)), this, TQT_SLOT(slotCommandExecuted(KCommand *))); setUndo(true); m_nserver = new KisNameServer(i18n("Image %1"), 1); - Q_CHECK_PTR(m_nserver); + TQ_CHECK_PTR(m_nserver); if (!KisMetaRegistry::instance()->csRegistry()->exists(KisID("RGBA",""))) { KMessageBox::sorry(0, i18n("No colorspace modules loaded: cannot run Chalk")); @@ -446,7 +446,7 @@ KisImageSP KisDoc::loadImage(const TQDomElement& element) img = new KisImage(this, width, height, cs, name); img->blockSignals(true); // Don't send out signals while we're building the image - Q_CHECK_PTR(img); + TQ_CHECK_PTR(img); connect( img, TQT_SIGNAL( sigImageModified() ), this, TQT_SLOT( slotImageUpdated() )); img->setDescription(description); img->setResolution(xres, yres); @@ -580,7 +580,7 @@ KisLayerSP KisDoc::loadPaintLayer(const TQDomElement& element, KisImageSP img, cs = KisMetaRegistry::instance()->csRegistry()->getColorSpace(colorspacename,""); layer = new KisPaintLayer(img, name, opacity, cs); - Q_CHECK_PTR(layer); + TQ_CHECK_PTR(layer); layer->setCompositeOp(compositeOp); layer->setVisible(visible); @@ -622,7 +622,7 @@ KisGroupLayerSP KisDoc::loadGroupLayer(const TQDomElement& element, KisImageSP i KisGroupLayerSP layer; layer = new KisGroupLayer(img, name, opacity); - Q_CHECK_PTR(layer); + TQ_CHECK_PTR(layer); layer->setCompositeOp(compositeOp); layer->setVisible(visible); @@ -659,7 +659,7 @@ KisAdjustmentLayerSP KisDoc::loadAdjustmentLayer(const TQDomElement& element, Ki // We'll load the configuration and the selection later. layer = new KisAdjustmentLayer(img, name, kfc, 0); - Q_CHECK_PTR(layer); + TQ_CHECK_PTR(layer); layer->setCompositeOp(compositeOp); layer->setVisible(visible); @@ -693,7 +693,7 @@ KisPartLayerSP KisDoc::loadPartLayer(const TQDomElement& element, KisImageSP img insertChild(child); KisPartLayerSP layer = new KisPartLayerImpl(img, child); - Q_CHECK_PTR(layer); + TQ_CHECK_PTR(layer); layer->setCompositeOp(compositeOp); layer->setVisible(visible); @@ -858,11 +858,11 @@ KisImageSP KisDoc::newImage(const TQString& name, TQ_INT32 width, TQ_INT32 heigh setUndo(false); KisImageSP img = new KisImage(this, width, height, colorstrategy, name); - Q_CHECK_PTR(img); + TQ_CHECK_PTR(img); connect( img, TQT_SIGNAL( sigImageModified() ), this, TQT_SLOT( slotImageUpdated() )); KisPaintLayer *layer = new KisPaintLayer(img, img->nextLayerName(), OPACITY_OPAQUE,colorstrategy); - Q_CHECK_PTR(layer); + TQ_CHECK_PTR(layer); KisColorSpace * cs = KisMetaRegistry::instance()->csRegistry()->getRGB8(); KisFillPainter painter; @@ -897,14 +897,14 @@ bool KisDoc::newImage(const TQString& name, TQ_INT32 width, TQ_INT32 height, Kis setUndo(false); img = new KisImage(this, width, height, cs, name); - Q_CHECK_PTR(img); + TQ_CHECK_PTR(img); connect( img, TQT_SIGNAL( sigImageModified() ), this, TQT_SLOT( slotImageUpdated() )); img->setResolution(imgResolution, imgResolution); img->setDescription(imgDescription); img->setProfile(cs->getProfile()); layer = new KisPaintLayer(img, img->nextLayerName(), OPACITY_OPAQUE, cs); - Q_CHECK_PTR(layer); + TQ_CHECK_PTR(layer); KisFillPainter painter; painter.begin(layer->paintDevice()); @@ -934,7 +934,7 @@ bool KisDoc::newImage(const TQString& name, TQ_INT32 width, TQ_INT32 height, Kis KoView* KisDoc::createViewInstance(TQWidget* parent, const char *name) { KisView * v = new KisView(this, this, parent, name); - Q_CHECK_PTR(v); + TQ_CHECK_PTR(v); return v; } @@ -975,7 +975,7 @@ void KisDoc::beginMacro(const TQString& macroName) if (m_macroNestDepth == 0) { Q_ASSERT(m_currentMacro == 0); m_currentMacro = new KMacroCommand(macroName); - Q_CHECK_PTR(m_currentMacro); + TQ_CHECK_PTR(m_currentMacro); } m_macroNestDepth++; diff --git a/chalk/ui/kis_factory.cc b/chalk/ui/kis_factory.cc index 519ca878..7da1c5fe 100644 --- a/chalk/ui/kis_factory.cc +++ b/chalk/ui/kis_factory.cc @@ -86,7 +86,7 @@ KParts::Part* KisFactory::createPartObject( TQWidget *parentWidget, KisDoc *doc = new KisDoc( parentWidget, widgetName, parent, name, !bWantKoDocument ); - Q_CHECK_PTR(doc); + TQ_CHECK_PTR(doc); if ( !bWantKoDocument ) doc->setReadWrite( false ); @@ -107,7 +107,7 @@ KInstance* KisFactory::instance() if ( !s_instance ) { s_instance = new KInstance(s_aboutData); - Q_CHECK_PTR(s_instance); + TQ_CHECK_PTR(s_instance); s_instance->dirs()->addResourceType("chalk_template", KStandardDirs::kde_default("data") + "chalk/templates"); diff --git a/chalk/ui/kis_filter_manager.cc b/chalk/ui/kis_filter_manager.cc index 24569402..713427e2 100644 --- a/chalk/ui/kis_filter_manager.cc +++ b/chalk/ui/kis_filter_manager.cc @@ -342,7 +342,7 @@ void KisFilterManager::slotApplyFilter(int i) // Create the config dialog m_lastDialog = new KisPreviewDialog(m_view, m_lastFilter->id().name().ascii(), true, m_lastFilter->id().name()); - Q_CHECK_PTR(m_lastDialog); + TQ_CHECK_PTR(m_lastDialog); m_lastWidget = m_lastFilter->createConfigurationWidget( (TQWidget*)m_lastDialog->container(), dev ); bool accepted = true; diff --git a/chalk/ui/kis_palette_view.cc b/chalk/ui/kis_palette_view.cc index 63766599..42c15aca 100644 --- a/chalk/ui/kis_palette_view.cc +++ b/chalk/ui/kis_palette_view.cc @@ -100,7 +100,7 @@ void KisPaletteView::setPalette(KisPalette* palette) if (rows < 1) rows = 1; m_cells = new KColorCells(viewport(), rows, mCols); - Q_CHECK_PTR(m_cells); + TQ_CHECK_PTR(m_cells); m_cells->setShading(false); m_cells->setAcceptDrags(false); diff --git a/chalk/ui/kis_resource_mediator.cc b/chalk/ui/kis_resource_mediator.cc index c06584c3..ddecf85a 100644 --- a/chalk/ui/kis_resource_mediator.cc +++ b/chalk/ui/kis_resource_mediator.cc @@ -104,7 +104,7 @@ void KisResourceMediator::rServerAddedResource(KisResource *resource) if (resource && resource->valid()) { KisIconItem *item = new KisIconItem(resource); - Q_CHECK_PTR(item); + TQ_CHECK_PTR(item); m_items[resource] = item; diff --git a/chalk/ui/kis_resourceserver.cc b/chalk/ui/kis_resourceserver.cc index e7593ceb..64cd1171 100644 --- a/chalk/ui/kis_resourceserver.cc +++ b/chalk/ui/kis_resourceserver.cc @@ -71,7 +71,7 @@ void KisResourceServerBase::loadResources(TQStringList filenames) if(resource->load() && resource->valid()) { m_resources.append(resource); - Q_CHECK_PTR(resource); + TQ_CHECK_PTR(resource); emit resourceAdded(resource); } else { diff --git a/chalk/ui/kis_ruler.cc b/chalk/ui/kis_ruler.cc index 8a8929a7..23426922 100644 --- a/chalk/ui/kis_ruler.cc +++ b/chalk/ui/kis_ruler.cc @@ -98,7 +98,7 @@ void KisRuler::recalculateSize() } m_pixmapBuffer = new TQPixmap(w, h); - Q_CHECK_PTR(m_pixmapBuffer); + TQ_CHECK_PTR(m_pixmapBuffer); drawRuler(); updatePointer(m_currentPosition, m_currentPosition); diff --git a/chalk/ui/kis_selection_manager.cc b/chalk/ui/kis_selection_manager.cc index 5d7a31d1..23abb2b9 100644 --- a/chalk/ui/kis_selection_manager.cc +++ b/chalk/ui/kis_selection_manager.cc @@ -354,7 +354,7 @@ void KisSelectionManager::cut() if (img->undo()) { t = new KisSelectedTransaction(i18n("Cut"), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); } dev->clearSelection(); @@ -381,7 +381,7 @@ void KisSelectionManager::copy() TQRect r = selection->selectedExactRect(); KisPaintDeviceSP clip = new KisPaintDevice(dev->colorSpace(), "clip"); - Q_CHECK_PTR(clip); + TQ_CHECK_PTR(clip); KisColorSpace * cs = clip->colorSpace(); @@ -424,7 +424,7 @@ KisLayerSP KisSelectionManager::paste() if (clip) { TQApplication::setOverrideCursor(KisCursor::waitCursor()); KisPaintLayer *layer = new KisPaintLayer(img, img->nextLayerName() + i18n("(pasted)"), OPACITY_OPAQUE); - Q_CHECK_PTR(layer); + TQ_CHECK_PTR(layer); TQRect r = clip->exactBounds(); KisPainter gc; @@ -506,7 +506,7 @@ void KisSelectionManager::selectAll() KisSelectedTransaction * t = 0; if (img->undo()) t = new KisSelectedTransaction(i18n("Select All"), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); // Make adjustment layers behave better KisAdjustmentLayer* adj = dynamic_cast<KisAdjustmentLayer*>(img->activeLayer().data()); @@ -533,7 +533,7 @@ void KisSelectionManager::deselect() if (!dev) return; KisSelectedTransaction * t = 0; if (img->undo()) t = new KisSelectedTransaction(i18n("Deselect"), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); // Make adjustment layers behave almost the same (except no reselect) KisAdjustmentLayer* adj = dynamic_cast<KisAdjustmentLayer*>(img->activeLayer().data()); @@ -636,7 +636,7 @@ void KisSelectionManager::reselect() KisSelectedTransaction * t = 0; if (img->undo()) t = new KisSelectedTransaction(i18n("Reselect"), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); dev->reselect(); // sets hasSelection=true dev->setDirty(); @@ -662,7 +662,7 @@ void KisSelectionManager::invert() if (img->undo()) { t = new KisSelectedTransaction(i18n("Invert"), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); } s->invert(); @@ -716,7 +716,7 @@ void KisSelectionManager::feather() KisSelectionSP selection = dev->selection(); KisSelectedTransaction * t = 0; if (img->undo()) t = new KisSelectedTransaction(i18n("Feather..."), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); // XXX: we should let gaussian blur & others influence alpha channels as well @@ -805,7 +805,7 @@ void KisSelectionManager::grow (TQ_INT32 xradius, TQ_INT32 yradius) if (img->undo()) { t = new KisSelectedTransaction(i18n("Grow"), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); } max = new TQ_UINT8* [layerSize.width() + 2 * xradius]; diff --git a/chalk/ui/kis_selection_options.cc b/chalk/ui/kis_selection_options.cc index 32933b5a..8593d22a 100644 --- a/chalk/ui/kis_selection_options.cc +++ b/chalk/ui/kis_selection_options.cc @@ -37,7 +37,7 @@ KisSelectionOptions::KisSelectionOptions(TQWidget *parent, KisCanvasSubject * su m_subject(subject) { m_page = new WdgSelectionOptions(this); - Q_CHECK_PTR(m_page); + TQ_CHECK_PTR(m_page); TQVBoxLayout * l = new TQVBoxLayout(this); l->addWidget(m_page); diff --git a/chalk/ui/kis_tool_dummy.h b/chalk/ui/kis_tool_dummy.h index de74ce84..0c5f1d6f 100644 --- a/chalk/ui/kis_tool_dummy.h +++ b/chalk/ui/kis_tool_dummy.h @@ -73,7 +73,7 @@ public: virtual KisTool * createTool(KActionCollection * ac) { KisTool * t = new KisToolDummy(); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); t->setup(ac); return t; } diff --git a/chalk/ui/kis_tool_freehand.cc b/chalk/ui/kis_tool_freehand.cc index 32ef617d..a44acfbc 100644 --- a/chalk/ui/kis_tool_freehand.cc +++ b/chalk/ui/kis_tool_freehand.cc @@ -204,7 +204,7 @@ void KisToolFreehand::initPaint(KisEvent *) } if(m_target->hasSelection()) m_target->selection()->startCachingExactRect(); m_painter = new KisPainter( m_target ); - Q_CHECK_PTR(m_painter); + TQ_CHECK_PTR(m_painter); m_source = device; if (currentImage()->undo()) m_painter->beginTransaction(m_transactionText); } diff --git a/chalk/ui/kis_tool_shape.cc b/chalk/ui/kis_tool_shape.cc index 7aba5a49..fa9d0c94 100644 --- a/chalk/ui/kis_tool_shape.cc +++ b/chalk/ui/kis_tool_shape.cc @@ -42,7 +42,7 @@ TQWidget* KisToolShape::createOptionWidget(TQWidget* parent) TQWidget *widget = super::createOptionWidget(parent); m_shapeOptionsWidget = new WdgGeometryOptions(0); - Q_CHECK_PTR(m_shapeOptionsWidget); + TQ_CHECK_PTR(m_shapeOptionsWidget); m_optionLayout = new TQGridLayout(widget, 2, 1); // super::addOptionWidgetLayout(m_optionLayout); diff --git a/chalk/ui/kis_view.cc b/chalk/ui/kis_view.cc index decc9eca..26a657c3 100644 --- a/chalk/ui/kis_view.cc +++ b/chalk/ui/kis_view.cc @@ -416,7 +416,7 @@ KoPaletteManager * KisView::paletteManager() { if (!m_paletteManager) { m_paletteManager = new KoPaletteManager(this, actionCollection(), "Chalk palette manager"); - Q_CHECK_PTR(m_paletteManager); + TQ_CHECK_PTR(m_paletteManager); } return m_paletteManager; } @@ -449,7 +449,7 @@ DCOPObject* KisView::dcopObject() { if (!m_dcop) { m_dcop = new KisViewIface(this); - Q_CHECK_PTR(m_dcop); + TQ_CHECK_PTR(m_dcop); } return m_dcop; } @@ -459,10 +459,10 @@ void KisView::setupScrollBars() m_scrollX = 0; m_scrollY = 0; m_vScroll = new TQScrollBar(Qt::Vertical, this); - Q_CHECK_PTR(m_vScroll); + TQ_CHECK_PTR(m_vScroll); m_hScroll = new TQScrollBar(Qt::Horizontal, this); - Q_CHECK_PTR(m_hScroll); + TQ_CHECK_PTR(m_hScroll); m_vScroll->setGeometry(width() - 16, 20, 16, height() - 36); m_hScroll->setGeometry(20, height() - 16, width() - 36, 16); @@ -475,10 +475,10 @@ void KisView::setupScrollBars() void KisView::setupRulers() { m_hRuler = new KisRuler(Qt::Horizontal, this); - Q_CHECK_PTR(m_hRuler); + TQ_CHECK_PTR(m_hRuler); m_vRuler = new KisRuler(Qt::Vertical, this); - Q_CHECK_PTR(m_vRuler); + TQ_CHECK_PTR(m_vRuler); m_hRuler->setGeometry(20, 0, width() - 20, 20); m_vRuler->setGeometry(0, 20, 20, height() - 20); @@ -1792,7 +1792,7 @@ void KisView::mirrorLayerX() KisTransaction * t = 0; if (undoAdapter() && undoAdapter()->undo()) { t = new KisTransaction(i18n("Mirror Layer X"), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); } dev->mirrorX(); @@ -1813,7 +1813,7 @@ void KisView::mirrorLayerY() KisTransaction * t = 0; if (undoAdapter() && undoAdapter()->undo()) { t = new KisTransaction(i18n("Mirror Layer Y"), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); } dev->mirrorY(); @@ -1835,7 +1835,7 @@ void KisView::scaleLayer(double sx, double sy, KisFilterStrategy *filterStrategy KisSelectedTransaction * t = 0; if (undoAdapter() && undoAdapter()->undo()) { t = new KisSelectedTransaction(i18n("Scale Layer"), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); } KisTransformWorker worker(dev, sx, sy, 0, 0, 0.0, 0, 0, m_progress, filterStrategy); @@ -1858,7 +1858,7 @@ void KisView::rotateLayer(double radians) KisSelectedTransaction * t = 0; if (undoAdapter() && undoAdapter()->undo()) { t = new KisSelectedTransaction(i18n("Rotate Layer"), dev); - Q_CHECK_PTR(t); + TQ_CHECK_PTR(t); } KisFilterStrategy *filter = KisFilterStrategyRegistry::instance()->get(KisID("Triangle")); |