@ -177,7 +177,7 @@ DCOPObject *KisDoc::dcopObject()
{
if ( ! m_dcop ) {
m_dcop = new KisDocIface ( this ) ;
Q_CHECK_PTR( m_dcop ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_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 ) ;
T Q_CHECK_PTR( m_currentMacro ) ;
}
m_macroNestDepth + + ;