diff options
Diffstat (limited to 'chalk/ui/kis_layerlist.cc')
-rw-r--r-- | chalk/ui/kis_layerlist.cc | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/chalk/ui/kis_layerlist.cc b/chalk/ui/kis_layerlist.cc index 64127d20..985bd0c6 100644 --- a/chalk/ui/kis_layerlist.cc +++ b/chalk/ui/kis_layerlist.cc @@ -35,8 +35,8 @@ #include "kis_layerlist.h" -KisLayerList::KisLayerList( TQWidget *tqparent, const char *name ) - : super( tqparent, name ) +KisLayerList::KisLayerList( TQWidget *parent, const char *name ) + : super( parent, name ) { m_partLayerAction = new KoPartSelectAction( i18n( "New &Object Layer" ), "gear", TQT_TQOBJECT(this) ); } @@ -76,26 +76,26 @@ void KisLayerList::constructMenu( LayerItem *layer ) void KisLayerList::menuActivated( int id, LayerItem *layer ) { const TQValueList<LayerItem*> selected = selectedLayers(); - LayerItem *tqparent = ( layer && layer->isFolder() ) ? layer : 0; + LayerItem *parent = ( layer && layer->isFolder() ) ? layer : 0; LayerItem *after = 0; - if( layer && !tqparent ) + if( layer && !parent ) { - tqparent = layer->tqparent(); + parent = layer->parent(); after = layer->prevSibling(); } switch( id ) { case MenuItems::NewLayer: - emit requestNewLayer( tqparent, after ); - emit requestNewLayer( tqparent ? tqparent->id() : -1, after ? after->id() : -1 ); + emit requestNewLayer( parent, after ); + emit requestNewLayer( parent ? parent->id() : -1, after ? after->id() : -1 ); break; case MenuItems::NewFolder: - emit requestNewFolder( tqparent, after ); - emit requestNewFolder( tqparent ? tqparent->id() : -1, after ? after->id() : -1 ); + emit requestNewFolder( parent, after ); + emit requestNewFolder( parent ? parent->id() : -1, after ? after->id() : -1 ); break; case ADJUSTMENT_LAYER: - emit requestNewAdjustmentLayer( tqparent, after ); - emit requestNewAdjustmentLayer( tqparent ? tqparent->id() : -1, after ? after->id() : -1 ); + emit requestNewAdjustmentLayer( parent, after ); + emit requestNewAdjustmentLayer( parent ? parent->id() : -1, after ? after->id() : -1 ); break; case MenuItems::RemoveLayer: { @@ -123,26 +123,26 @@ void KisLayerList::menuActivated( int id, LayerItem *layer ) super::menuActivated( id, layer ); else if( id != -1 ) //object layer was selected { - emit requestNewObjectLayer( tqparent, after, m_partLayerAction->documentEntry() ); - emit requestNewObjectLayer( tqparent ? tqparent->id() : -1, after ? after->id() : -1, m_partLayerAction->documentEntry() ); + emit requestNewObjectLayer( parent, after, m_partLayerAction->documentEntry() ); + emit requestNewObjectLayer( parent ? parent->id() : -1, after ? after->id() : -1, m_partLayerAction->documentEntry() ); } } } -KisLayerItem::KisLayerItem( LayerList* tqparent, KisLayer* layer ) +KisLayerItem::KisLayerItem( LayerList* parent, KisLayer* layer ) : super( layer->name(), - tqparent, - layer->prevSibling() ? tqparent->layer( layer->prevSibling()->id() ) : 0, + parent, + layer->prevSibling() ? parent->layer( layer->prevSibling()->id() ) : 0, layer->id() ) , m_layer( layer ) { init(); } -KisLayerItem::KisLayerItem( LayerItem* tqparent, KisLayer* layer ) +KisLayerItem::KisLayerItem( LayerItem* parent, KisLayer* layer ) : super( layer->name(), - tqparent, - layer->prevSibling() ? tqparent->listView()->layer( layer->prevSibling()->id() ) : 0, + parent, + layer->prevSibling() ? parent->listView()->layer( layer->prevSibling()->id() ) : 0, layer->id() ) , m_layer( layer ) { |