summaryrefslogtreecommitdiffstats
path: root/kommander/editor/actioneditorimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/editor/actioneditorimpl.cpp')
-rw-r--r--kommander/editor/actioneditorimpl.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kommander/editor/actioneditorimpl.cpp b/kommander/editor/actioneditorimpl.cpp
index 9c1ae76d..e5358100 100644
--- a/kommander/editor/actioneditorimpl.cpp
+++ b/kommander/editor/actioneditorimpl.cpp
@@ -118,7 +118,7 @@ void ActionEditor::newAction()
ActionItem *actionParent = (ActionItem*)listActions->selectedItem();
if ( actionParent ) {
if ( !actionParent->actionGroup() ||
- !actionParent->actionGroup()->inherits( "TQActionGroup" ) )
+ !actionParent->actionGroup()->inherits( TQACTIONGROUP_OBJECT_NAME_STRING ) )
actionParent = (ActionItem*)actionParent->parent();
}
@@ -150,7 +150,7 @@ void ActionEditor::newActionGroup()
ActionItem *actionParent = (ActionItem*)listActions->selectedItem();
if ( actionParent ) {
if ( !actionParent->actionGroup() ||
- !actionParent->actionGroup()->inherits( "TQActionGroup" ) )
+ !actionParent->actionGroup()->inherits( TQACTIONGROUP_OBJECT_NAME_STRING ) )
actionParent = (ActionItem*)actionParent->parent();
}
@@ -187,18 +187,18 @@ void ActionEditor::setFormWindow( FormWindow *fw )
formWindow = fw;
if ( !formWindow ||
!formWindow->mainContainer() ||
- !formWindow->mainContainer()->inherits( "TQMainWindow" ) ) {
+ !formWindow->mainContainer()->inherits( TQMAINWINDOW_OBJECT_NAME_STRING ) ) {
setEnabled( false );
} else {
setEnabled( true );
for ( TQAction *a = formWindow->actionList().first(); a; a = formWindow->actionList().next() ) {
ActionItem *i = 0;
- if ( a->parent() && a->parent()->inherits( "TQAction" ) )
+ if ( a->parent() && a->parent()->inherits( TQACTION_OBJECT_NAME_STRING ) )
continue;
i = new ActionItem( listActions, a );
i->setText( 0, a->name() );
i->setPixmap( 0, a->iconSet().pixmap() );
- if ( a->inherits( "TQActionGroup" ) ) {
+ if ( a->inherits( TQACTIONGROUP_OBJECT_NAME_STRING ) ) {
insertChildActions( i );
}
}
@@ -217,14 +217,14 @@ void ActionEditor::insertChildActions( ActionItem *i )
while ( it.current() ) {
TQObject *o = it.current();
++it;
- if ( !o->inherits( "TQAction" ) )
+ if ( !o->inherits( TQACTION_OBJECT_NAME_STRING ) )
continue;
TQAction *a = (TQAction*)o;
ActionItem *i2 = new ActionItem( (TQListViewItem*)i, a );
i->setOpen( true );
i2->setText( 0, a->name() );
i2->setPixmap( 0, a->iconSet().pixmap() );
- if ( a->inherits( "TQActionGroup" ) )
+ if ( a->inherits( TQACTIONGROUP_OBJECT_NAME_STRING ) )
insertChildActions( i2 );
}
}