summaryrefslogtreecommitdiffstats
path: root/kommander/editor/hierarchyview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/editor/hierarchyview.cpp')
-rw-r--r--kommander/editor/hierarchyview.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kommander/editor/hierarchyview.cpp b/kommander/editor/hierarchyview.cpp
index 116b75a5..b6113d37 100644
--- a/kommander/editor/hierarchyview.cpp
+++ b/kommander/editor/hierarchyview.cpp
@@ -193,18 +193,18 @@ HierarchyList::HierarchyList( TQWidget *parent, FormWindow *fw, bool doConnects
p.setColor( TQColorGroup::Base, TQColor( *backColor2 ) );
(void)*selectedBack; // hack
setPalette( p );
- disconnect( header(), TQT_SIGNAL( sectionClicked( int ) ),
- this, TQT_SLOT( changeSortColumn( int ) ) );
+ disconnect( header(), TQ_SIGNAL( sectionClicked( int ) ),
+ this, TQ_SLOT( changeSortColumn( int ) ) );
setSorting( -1 );
setHScrollBarMode( AlwaysOff );
setVScrollBarMode( AlwaysOn );
if ( doConnects ) {
- connect( this, TQT_SIGNAL( clicked( TQListViewItem * ) ),
- this, TQT_SLOT( objectClicked( TQListViewItem * ) ) );
- connect( this, TQT_SIGNAL( returnPressed( TQListViewItem * ) ),
- this, TQT_SLOT( objectClicked( TQListViewItem * ) ) );
- connect( this, TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint&, int ) ),
- this, TQT_SLOT( showRMBMenu( TQListViewItem *, const TQPoint & ) ) );
+ connect( this, TQ_SIGNAL( clicked( TQListViewItem * ) ),
+ this, TQ_SLOT( objectClicked( TQListViewItem * ) ) );
+ connect( this, TQ_SIGNAL( returnPressed( TQListViewItem * ) ),
+ this, TQ_SLOT( objectClicked( TQListViewItem * ) ) );
+ connect( this, TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint&, int ) ),
+ this, TQ_SLOT( showRMBMenu( TQListViewItem *, const TQPoint & ) ) );
}
deselect = true;
setColumnWidthMode( 1, Manual );
@@ -250,7 +250,7 @@ void HierarchyList::objectClicked( TQListViewItem *i )
if ( formWindow == w ) {
if ( deselect )
formWindow->clearSelection( false );
- formWindow->emitShowProperties( TQT_TQOBJECT(formWindow) );
+ formWindow->emitShowProperties( formWindow );
return;
}
@@ -264,7 +264,7 @@ void HierarchyList::objectClicked( TQListViewItem *i )
else
( (QDesignerWizard*)w->parent()->parent() )->setCurrentPage( ( (QDesignerWizard*)w->parent()->parent() )->pageNum( w ) );
w = (TQWidget*)w->parent()->parent();
- formWindow->emitUpdateProperties( TQT_TQOBJECT(formWindow->currentWidget()) );
+ formWindow->emitUpdateProperties( formWindow->currentWidget() );
} else {
return;
}
@@ -273,7 +273,7 @@ void HierarchyList::objectClicked( TQListViewItem *i )
if ( deselect )
formWindow->clearSelection( false );
if ( w->isVisibleTo( formWindow ) )
- formWindow->selectWidget( TQT_TQOBJECT(w), true );
+ formWindow->selectWidget( w, true );
}
TQWidget *HierarchyList::findWidget( TQListViewItem *i )
@@ -345,7 +345,7 @@ void HierarchyList::setup()
}
#endif
if ( w )
- insertObject( TQT_TQOBJECT(w), 0 );
+ insertObject( w, 0 );
}
void HierarchyList::setOpen( TQListViewItem *i, bool b )
@@ -357,7 +357,7 @@ void HierarchyList::insertObject( TQObject *o, TQListViewItem *parent )
{
bool fakeMainWindow = false;
if ( o && o->inherits( "TQMainWindow" ) ) {
- TQObject *cw = TQT_TQOBJECT(( (TQMainWindow*)o )->centralWidget());
+ TQObject *cw = ( (TQMainWindow*)o )->centralWidget();
if ( cw ) {
o = cw;
fakeMainWindow = true;
@@ -397,7 +397,7 @@ void HierarchyList::insertObject( TQObject *o, TQListViewItem *parent )
TQToolBox *tb;
if ( o->parent() && o->parent()->parent() &&
- (tb = ::tqqt_cast<TQToolBox*>(o->parent()->parent()->parent())) )
+ (tb = ::tqt_cast<TQToolBox*>(o->parent()->parent()->parent())) )
name = tb->itemLabel( tb->indexOf((TQWidget*)o) );
@@ -449,12 +449,12 @@ void HierarchyList::insertObject( TQObject *o, TQListViewItem *parent )
insertObject( obj, item );
}
delete l2;
- } else if ( ::tqqt_cast<TQToolBox*>(it.current()->parent()) ) {
- if ( !::tqqt_cast<TQScrollView*>(it.current()) )
+ } else if ( ::tqt_cast<TQToolBox*>(it.current()->parent()) ) {
+ if ( !::tqt_cast<TQScrollView*>(it.current()) )
continue;
TQToolBox *tb = (TQToolBox*)it.current()->parent();
for ( int i = tb->count() - 1; i >= 0; --i )
- insertObject( TQT_TQOBJECT(tb->item( i )), item );
+ insertObject( tb->item( i ), item );
}
continue;
}
@@ -502,8 +502,8 @@ void HierarchyList::showRMBMenu( TQListViewItem *i, const TQPoint & p )
} else {
if ( !tabWidgetMenu )
tabWidgetMenu =
- formWindow->mainWindow()->setupTabWidgetHierarchyMenu( this, TQT_SLOT( addTabPage() ),
- TQT_SLOT( removeTabPage() ) );
+ formWindow->mainWindow()->setupTabWidgetHierarchyMenu( this, TQ_SLOT( addTabPage() ),
+ TQ_SLOT( removeTabPage() ) );
tabWidgetMenu->popup( p );
}
}