From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdevdesigner/designer/hierarchyview.cpp | 516 ++++++++++++++++---------------- 1 file changed, 258 insertions(+), 258 deletions(-) (limited to 'kdevdesigner/designer/hierarchyview.cpp') diff --git a/kdevdesigner/designer/hierarchyview.cpp b/kdevdesigner/designer/hierarchyview.cpp index 8c204ac3..0b2fc17e 100644 --- a/kdevdesigner/designer/hierarchyview.cpp +++ b/kdevdesigner/designer/hierarchyview.cpp @@ -46,47 +46,47 @@ #include "kdevdesigner_part.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "../interfaces/languageinterface.h" -#include -#include -#include +#include +#include +#include #include -QListViewItem *newItem = 0; +TQListViewItem *newItem = 0; static QPluginManager *classBrowserInterfaceManager = 0; -HierarchyItem::HierarchyItem( Type type, QListViewItem *parent, QListViewItem *after, - const QString &txt1, const QString &txt2, const QString &txt3 ) - : QListViewItem( parent, after, txt1, txt2, txt3 ), typ( type ) +HierarchyItem::HierarchyItem( Type type, TQListViewItem *parent, TQListViewItem *after, + const TQString &txt1, const TQString &txt2, const TQString &txt3 ) + : TQListViewItem( parent, after, txt1, txt2, txt3 ), typ( type ) { } -HierarchyItem::HierarchyItem( Type type, QListView *parent, QListViewItem *after, - const QString &txt1, const QString &txt2, const QString &txt3 ) - : QListViewItem( parent, after, txt1, txt2, txt3 ), typ( type ) +HierarchyItem::HierarchyItem( Type type, TQListView *parent, TQListViewItem *after, + const TQString &txt1, const TQString &txt2, const TQString &txt3 ) + : TQListViewItem( parent, after, txt1, txt2, txt3 ), typ( type ) { } -void HierarchyItem::paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int align ) +void HierarchyItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align ) { - QColorGroup g( cg ); - g.setColor( QColorGroup::Base, backgroundColor() ); - g.setColor( QColorGroup::Foreground, Qt::black ); - g.setColor( QColorGroup::Text, Qt::black ); - QString txt = text( 0 ); + TQColorGroup g( cg ); + g.setColor( TQColorGroup::Base, backgroundColor() ); + g.setColor( TQColorGroup::Foreground, Qt::black ); + g.setColor( TQColorGroup::Text, Qt::black ); + TQString txt = text( 0 ); if ( rtti() == Function && MainWindow::self->currProject()->isCpp() && ( txt == "init()" || txt == "destroy()" ) ) { @@ -95,14 +95,14 @@ void HierarchyItem::paintCell( QPainter *p, const QColorGroup &cg, int column, i setText( 0, txt + " " + "(Constructor)" ); else setText( 0, txt + " " + "(Destructor)" ); - QListViewItem::paintCell( p, g, column, width, align ); + TQListViewItem::paintCell( p, g, column, width, align ); setText( 0, txt ); listView()->setUpdatesEnabled( TRUE ); } else { - QListViewItem::paintCell( p, g, column, width, align ); + TQListViewItem::paintCell( p, g, column, width, align ); } p->save(); - p->setPen( QPen( cg.dark(), 1 ) ); + p->setPen( TQPen( cg.dark(), 1 ) ); if ( column == 0 ) p->drawLine( 0, 0, 0, height() - 1 ); if ( listView()->firstChild() != this ) { @@ -116,7 +116,7 @@ void HierarchyItem::paintCell( QPainter *p, const QColorGroup &cg, int column, i p->restore(); } -QColor HierarchyItem::backgroundColor() +TQColor HierarchyItem::backgroundColor() { updateBackColor(); return backColor; @@ -129,7 +129,7 @@ void HierarchyItem::updateBackColor() return; } - QListViewItemIterator it( this ); + TQListViewItemIterator it( this ); --it; if ( it.current() ) { if ( ( ( HierarchyItem*)it.current() )->backColor == *backColor1 ) @@ -141,12 +141,12 @@ void HierarchyItem::updateBackColor() } } -void HierarchyItem::setObject( QObject *o ) +void HierarchyItem::setObject( TQObject *o ) { obj = o; } -QObject *HierarchyItem::object() const +TQObject *HierarchyItem::object() const { return obj; } @@ -155,25 +155,25 @@ void HierarchyItem::okRename( int col ) { if ( newItem == this ) newItem = 0; - QListViewItem::okRename( col ); + TQListViewItem::okRename( col ); } void HierarchyItem::cancelRename( int col ) { if ( newItem == this ) { newItem = 0; - QListViewItem::cancelRename( col ); + TQListViewItem::cancelRename( col ); delete this; return; } - QListViewItem::cancelRename( col ); + TQListViewItem::cancelRename( col ); } -HierarchyList::HierarchyList( QWidget *parent, FormWindow *fw, bool doConnects ) - : QListView( parent ), formWindow( fw ) +HierarchyList::HierarchyList( TQWidget *parent, FormWindow *fw, bool doConnects ) + : TQListView( parent ), formWindow( fw ) { DesignerFormPix = SmallIcon( "designer_form.png" , KDevDesignerPartFactory::instance()); DesignerLayoutPix = SmallIcon( "designer_layout.png" , KDevDesignerPartFactory::instance()); @@ -189,64 +189,64 @@ HierarchyList::HierarchyList( QWidget *parent, FormWindow *fw, bool doConnects ) tabWidgetMenu = 0; addColumn( i18n( "Name" ) ); addColumn( i18n( "Class" ) ); - QPalette p( palette() ); - p.setColor( QColorGroup::Base, QColor( *backColor2 ) ); + TQPalette p( palette() ); + p.setColor( TQColorGroup::Base, TQColor( *backColor2 ) ); (void)*selectedBack; // hack setPalette( p ); - disconnect( header(), SIGNAL( sectionClicked( int ) ), - this, SLOT( changeSortColumn( int ) ) ); + disconnect( header(), TQT_SIGNAL( sectionClicked( int ) ), + this, TQT_SLOT( changeSortColumn( int ) ) ); setSorting( -1 ); setHScrollBarMode( AlwaysOff ); setVScrollBarMode( AlwaysOn ); if ( doConnects ) { - connect( this, SIGNAL( clicked( QListViewItem * ) ), - this, SLOT( objectClicked( QListViewItem * ) ) ); - connect( this, SIGNAL( doubleClicked( QListViewItem * ) ), - this, SLOT( objectDoubleClicked( QListViewItem * ) ) ); - connect( this, SIGNAL( returnPressed( QListViewItem * ) ), - this, SLOT( objectClicked( QListViewItem * ) ) ); - connect( this, SIGNAL( contextMenuRequested( QListViewItem *, const QPoint&, int ) ), - this, SLOT( showRMBMenu( QListViewItem *, const QPoint & ) ) ); + connect( this, TQT_SIGNAL( clicked( TQListViewItem * ) ), + this, TQT_SLOT( objectClicked( TQListViewItem * ) ) ); + connect( this, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ), + this, TQT_SLOT( objectDoubleClicked( 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 & ) ) ); } deselect = TRUE; setColumnWidthMode( 1, Manual ); } -void HierarchyList::keyPressEvent( QKeyEvent *e ) +void HierarchyList::keyPressEvent( TQKeyEvent *e ) { if ( e->key() == Key_Shift || e->key() == Key_Control ) deselect = FALSE; else deselect = TRUE; - QListView::keyPressEvent( e ); + TQListView::keyPressEvent( e ); } -void HierarchyList::keyReleaseEvent( QKeyEvent *e ) +void HierarchyList::keyReleaseEvent( TQKeyEvent *e ) { deselect = TRUE; - QListView::keyReleaseEvent( e ); + TQListView::keyReleaseEvent( e ); } -void HierarchyList::viewportMousePressEvent( QMouseEvent *e ) +void HierarchyList::viewportMousePressEvent( TQMouseEvent *e ) { if ( e->state() & ShiftButton || e->state() & ControlButton ) deselect = FALSE; else deselect = TRUE; - QListView::viewportMousePressEvent( e ); + TQListView::viewportMousePressEvent( e ); } -void HierarchyList::viewportMouseReleaseEvent( QMouseEvent *e ) +void HierarchyList::viewportMouseReleaseEvent( TQMouseEvent *e ) { - QListView::viewportMouseReleaseEvent( e ); + TQListView::viewportMouseReleaseEvent( e ); } -QObject *HierarchyList::handleObjectClick( QListViewItem *i ) +TQObject *HierarchyList::handleObjectClick( TQListViewItem *i ) { if ( !i ) return 0; - QObject *o = findObject( i ); + TQObject *o = findObject( i ); if ( !o ) return 0; if ( formWindow == o ) { @@ -256,33 +256,33 @@ QObject *HierarchyList::handleObjectClick( QListViewItem *i ) return 0; } if ( o->isWidgetType() ) { - QWidget *w = (QWidget*)o; + TQWidget *w = (TQWidget*)o; if ( !formWindow->widgets()->find( w ) ) { - if ( ::qt_cast(w->parent()) ) { - if (::qt_cast(w->parent()->parent()) ) { - ((QTabWidget*)w->parent()->parent())->showPage( w ); - o = (QWidget*)w->parent()->parent(); + if ( ::qt_cast(w->parent()) ) { + if (::qt_cast(w->parent()->parent()) ) { + ((TQTabWidget*)w->parent()->parent())->showPage( w ); + o = (TQWidget*)w->parent()->parent(); formWindow->emitUpdateProperties( formWindow->currentWidget() ); - } else if ( ::qt_cast(w->parent()->parent()) ) { + } else if ( ::qt_cast(w->parent()->parent()) ) { ((QDesignerWizard*)w->parent()->parent())-> setCurrentPage( ( (QDesignerWizard*)w->parent()->parent() )->pageNum( w ) ); - o = (QWidget*)w->parent()->parent(); + o = (TQWidget*)w->parent()->parent(); formWindow->emitUpdateProperties( formWindow->currentWidget() ); } else { - ( (QWidgetStack*)w->parent() )->raiseWidget( w ); - if ( (QWidgetStack*)w->parent()->isA( "QDesignerWidgetStack" ) ) + ( (TQWidgetStack*)w->parent() )->raiseWidget( w ); + if ( (TQWidgetStack*)w->parent()->isA( "QDesignerWidgetStack" ) ) ( (QDesignerWidgetStack*)w->parent() )->updateButtons(); } - } else if ( ::qt_cast(w) || ::qt_cast(w) ) { + } else if ( ::qt_cast(w) || ::qt_cast(w) ) { formWindow->setActiveObject( w ); - } else if ( ::qt_cast(w) ) { + } else if ( ::qt_cast(w) ) { return 0; // ### we could try to find our menu bar and change the currentMenu to our index } else { return 0; } } - } else if ( ::qt_cast(o) ) { - MainWindow::self->actioneditor()->setCurrentAction( (QAction*)o ); + } else if ( ::qt_cast(o) ) { + MainWindow::self->actioneditor()->setCurrentAction( (TQAction*)o ); deselect = TRUE; } @@ -293,13 +293,13 @@ QObject *HierarchyList::handleObjectClick( QListViewItem *i ) } -void HierarchyList::objectDoubleClicked( QListViewItem *i ) +void HierarchyList::objectDoubleClicked( TQListViewItem *i ) { - QObject *o = handleObjectClick( i ); + TQObject *o = handleObjectClick( i ); if ( !o ) return; - if ( o->isWidgetType() && ( (QWidget*)o )->isVisibleTo( formWindow ) ) { - QWidget *w = (QWidget*)o; + if ( o->isWidgetType() && ( (TQWidget*)o )->isVisibleTo( formWindow ) ) { + TQWidget *w = (TQWidget*)o; if ( !w->parentWidget() || WidgetFactory::layoutType( w->parentWidget() ) == WidgetFactory::NoLayout ) w->raise(); @@ -307,25 +307,25 @@ void HierarchyList::objectDoubleClicked( QListViewItem *i ) } } -void HierarchyList::objectClicked( QListViewItem *i ) +void HierarchyList::objectClicked( TQListViewItem *i ) { - QObject *o = handleObjectClick( i ); + TQObject *o = handleObjectClick( i ); if ( !o ) return; - if ( o->isWidgetType() && ( (QWidget*)o )->isVisibleTo( formWindow ) ) { - QWidget *w = (QWidget*)o; + if ( o->isWidgetType() && ( (TQWidget*)o )->isVisibleTo( formWindow ) ) { + TQWidget *w = (TQWidget*)o; formWindow->selectWidget( w, TRUE ); } } -QObject *HierarchyList::findObject( QListViewItem *i ) +TQObject *HierarchyList::findObject( TQListViewItem *i ) { return ( (HierarchyItem*)i )->object(); } -QListViewItem *HierarchyList::findItem( QObject *o ) +TQListViewItem *HierarchyList::findItem( TQObject *o ) { - QListViewItemIterator it( this ); + TQListViewItemIterator it( this ); while ( it.current() ) { if ( ( (HierarchyItem*)it.current() )->object() == o ) return it.current(); @@ -334,42 +334,42 @@ QListViewItem *HierarchyList::findItem( QObject *o ) return 0; } -QObject *HierarchyList::current() const +TQObject *HierarchyList::current() const { if ( currentItem() ) return ( (HierarchyItem*)currentItem() )->object(); return 0; } -void HierarchyList::changeNameOf( QObject *o, const QString &name ) +void HierarchyList::changeNameOf( TQObject *o, const TQString &name ) { - QListViewItem *item = findItem( o ); + TQListViewItem *item = findItem( o ); if ( !item ) return; item->setText( 0, name ); } -void HierarchyList::changeDatabaseOf( QObject *o, const QString &info ) +void HierarchyList::changeDatabaseOf( TQObject *o, const TQString &info ) { #ifndef QT_NO_SQL if ( !formWindow->isDatabaseAware() ) return; - QListViewItem *item = findItem( o ); + TQListViewItem *item = findItem( o ); if ( !item ) return; item->setText( 2, info ); #endif } -static QPtrList *widgetStacks = 0; +static TQPtrList *widgetStacks = 0; void HierarchyList::setup() { if ( !formWindow || formWindow->isFake() ) return; clear(); - QWidget *w = formWindow->mainContainer(); + TQWidget *w = formWindow->mainContainer(); #ifndef QT_NO_SQL if ( formWindow->isDatabaseAware() ) { if ( columns() == 2 ) { @@ -386,33 +386,33 @@ void HierarchyList::setup() } #endif if ( !widgetStacks ) - widgetStacks = new QPtrList; + widgetStacks = new TQPtrList; if ( w ) insertObject( w, 0 ); widgetStacks->clear(); } -void HierarchyList::setOpen( QListViewItem *i, bool b ) +void HierarchyList::setOpen( TQListViewItem *i, bool b ) { - QListView::setOpen( i, b ); + TQListView::setOpen( i, b ); } -void HierarchyList::insertObject( QObject *o, QListViewItem *parent ) +void HierarchyList::insertObject( TQObject *o, TQListViewItem *parent ) { - if ( QString( o->name() ).startsWith( "qt_dead_widget_" ) ) + if ( TQString( o->name() ).startsWith( "qt_dead_widget_" ) ) return; bool fakeMainWindow = FALSE; - if ( ::qt_cast(o) ) { - QObject *cw = ( (QMainWindow*)o )->centralWidget(); + if ( ::qt_cast(o) ) { + TQObject *cw = ( (TQMainWindow*)o )->centralWidget(); if ( cw ) { o = cw; fakeMainWindow = TRUE; } } - QListViewItem *item = 0; - QString className = WidgetFactory::classNameOf( o ); + TQListViewItem *item = 0; + TQString className = WidgetFactory::classNameOf( o ); if ( ::qt_cast(o) ) { - switch ( WidgetFactory::layoutType( (QWidget*)o ) ) { + switch ( WidgetFactory::layoutType( (TQWidget*)o ) ) { case WidgetFactory::HBox: className = "HBox"; break; @@ -427,27 +427,27 @@ void HierarchyList::insertObject( QObject *o, QListViewItem *parent ) } } - QString dbInfo; + TQString dbInfo; #ifndef QT_NO_SQL dbInfo = MetaDataBase::fakeProperty( o, "database" ).toStringList().join("."); #endif - QString name = o->name(); - if ( ::qt_cast(o->parent()) ) { - if ( ::qt_cast(o->parent()->parent()) ) - name = ( (QTabWidget*)o->parent()->parent() )->tabLabel( (QWidget*)o ); - else if ( ::qt_cast(o->parent()->parent()) ) - name = ( (QWizard*)o->parent()->parent() )->title( (QWidget*)o ); + TQString name = o->name(); + if ( ::qt_cast(o->parent()) ) { + if ( ::qt_cast(o->parent()->parent()) ) + name = ( (TQTabWidget*)o->parent()->parent() )->tabLabel( (TQWidget*)o ); + else if ( ::qt_cast(o->parent()->parent()) ) + name = ( (TQWizard*)o->parent()->parent() )->title( (TQWidget*)o ); } - QToolBox *tb; + TQToolBox *tb; if ( o->parent() && o->parent()->parent() && - (tb = ::qt_cast(o->parent()->parent()->parent())) ) - name = tb->itemLabel( tb->indexOf((QWidget*)o) ); + (tb = ::qt_cast(o->parent()->parent()->parent())) ) + name = tb->itemLabel( tb->indexOf((TQWidget*)o) ); if ( fakeMainWindow ) { name = o->parent()->name(); - className = "QMainWindow"; + className = "TQMainWindow"; } if ( !parent ) @@ -462,53 +462,53 @@ void HierarchyList::insertObject( QObject *o, QListViewItem *parent ) else item->setPixmap( 0, WidgetDatabase::iconSet( WidgetDatabase::idFromClassName( WidgetFactory::classNameOf( o ) ) ). - pixmap( QIconSet::Small, QIconSet::Normal ) ); - if ( ::qt_cast(o) ) - item->setPixmap( 0, ( (QAction*)o )->iconSet().pixmap() ); + pixmap( TQIconSet::Small, TQIconSet::Normal ) ); + if ( ::qt_cast(o) ) + item->setPixmap( 0, ( (TQAction*)o )->iconSet().pixmap() ); ( (HierarchyItem*)item )->setObject( o ); - const QObjectList *l = o->children(); + const TQObjectList *l = o->children(); if ( ::qt_cast(o) ) l = 0; if ( l ) { - QObjectListIt it( *l ); + TQObjectListIt it( *l ); it.toLast(); for ( ; it.current(); --it ) { if ( !it.current()->isWidgetType() || - ( (QWidget*)it.current() )->isHidden() ) + ( (TQWidget*)it.current() )->isHidden() ) continue; - if ( !formWindow->widgets()->find( (QWidget*)it.current() ) ) { - if ( ::qt_cast(it.current()->parent()) || - ::qt_cast(it.current()) ) { - QObject *obj = it.current(); + if ( !formWindow->widgets()->find( (TQWidget*)it.current() ) ) { + if ( ::qt_cast(it.current()->parent()) || + ::qt_cast(it.current()) ) { + TQObject *obj = it.current(); QDesignerTabWidget *tw = ::qt_cast(it.current()->parent()); QDesignerWizard *dw = ::qt_cast(it.current()->parent()); - QWidgetStack *stack = 0; - if ( dw || tw || ::qt_cast(obj) ) - stack = (QWidgetStack*)obj; + TQWidgetStack *stack = 0; + if ( dw || tw || ::qt_cast(obj) ) + stack = (TQWidgetStack*)obj; else - stack = (QWidgetStack*)obj->parent(); + stack = (TQWidgetStack*)obj->parent(); if ( widgetStacks->findRef( stack ) != -1 ) continue; widgetStacks->append( stack ); - QObjectList *l2 = stack->queryList( "QWidget", 0, TRUE, FALSE ); + TQObjectList *l2 = stack->queryList( "TQWidget", 0, TRUE, FALSE ); for ( obj = l2->last(); obj; obj = l2->prev() ) { if ( qstrcmp( obj->className(), "QWidgetStackPrivate::Invisible" ) == 0 || - ( tw && !tw->tabBar()->tab( stack->id( (QWidget*)obj ) ) ) || - ( dw && dw->isPageRemoved( (QWidget*)obj ) ) ) + ( tw && !tw->tabBar()->tab( stack->id( (TQWidget*)obj ) ) ) || + ( dw && dw->isPageRemoved( (TQWidget*)obj ) ) ) continue; if ( qstrcmp( obj->name(), "designer_wizardstack_button" ) == 0 ) continue; - if ( stack->id( (QWidget*)obj ) == -1 ) + if ( stack->id( (TQWidget*)obj ) == -1 ) continue; insertObject( obj, item ); } delete l2; - } else if ( ::qt_cast(it.current()->parent()) ) { - if ( !::qt_cast(it.current()) ) + } else if ( ::qt_cast(it.current()->parent()) ) { + if ( !::qt_cast(it.current()) ) continue; - QToolBox *tb = (QToolBox*)it.current()->parent(); + TQToolBox *tb = (TQToolBox*)it.current()->parent(); for ( int i = tb->count() - 1; i >= 0; --i ) insertObject( tb->item( i ), item ); } @@ -519,8 +519,8 @@ void HierarchyList::insertObject( QObject *o, QListViewItem *parent ) } if ( fakeMainWindow ) { - QObjectList *l = o->parent()->queryList( "QDesignerToolBar" ); - QObject *obj; + TQObjectList *l = o->parent()->queryList( "QDesignerToolBar" ); + TQObject *obj; for ( obj = l->first(); obj; obj = l->next() ) insertObject( obj, item ); delete l; @@ -529,16 +529,16 @@ void HierarchyList::insertObject( QObject *o, QListViewItem *parent ) insertObject( obj, item ); delete l; } else if ( ::qt_cast(o) || ::qt_cast(o) ) { - QPtrList actions; + TQPtrList actions; if ( ::qt_cast(o) ) actions = ( (QDesignerToolBar*)o )->insertedActions(); else ( (PopupMenuEditor*)o )->insertedActions( actions ); - QPtrListIterator it( actions ); + TQPtrListIterator it( actions ); it.toLast(); while ( it.current() ) { - QAction *a = it.current(); + TQAction *a = it.current(); if ( ::qt_cast(a) ) { QDesignerAction *da = (QDesignerAction*)a; if ( da->supportsMenu() ) @@ -551,8 +551,8 @@ void HierarchyList::insertObject( QObject *o, QListViewItem *parent ) --it; } } else if ( ::qt_cast(o) && o->children() ) { - QObjectList *l = (QObjectList*)o->children(); - for ( QObject *obj = l->last(); obj; obj = l->prev() ) { + TQObjectList *l = (TQObjectList*)o->children(); + for ( TQObject *obj = l->last(); obj; obj = l->prev() ) { if ( ::qt_cast(obj) ) { QDesignerAction *da = (QDesignerAction*)obj; if ( da->supportsMenu() ) @@ -574,9 +574,9 @@ void HierarchyList::insertObject( QObject *o, QListViewItem *parent ) } } -void HierarchyList::setCurrent( QObject *o ) +void HierarchyList::setCurrent( TQObject *o ) { - QListViewItemIterator it( this ); + TQListViewItemIterator it( this ); while ( it.current() ) { if ( ( (HierarchyItem*)it.current() )->object() == o ) { blockSignals( TRUE ); @@ -589,22 +589,22 @@ void HierarchyList::setCurrent( QObject *o ) } } -void HierarchyList::showRMBMenu( QListViewItem *i, const QPoint & p ) +void HierarchyList::showRMBMenu( TQListViewItem *i, const TQPoint & p ) { if ( !i ) return; - QObject *o = findObject( i ); + TQObject *o = findObject( i ); if ( !o ) return; if ( !o->isWidgetType() || - ( o != formWindow && !formWindow->widgets()->find( (QWidget*)o ) ) ) + ( o != formWindow && !formWindow->widgets()->find( (TQWidget*)o ) ) ) return; - QWidget *w = (QWidget*)o; + TQWidget *w = (TQWidget*)o; if ( w->isVisibleTo( formWindow ) ) { - if ( !::qt_cast(w) && !::qt_cast(w) ) { + if ( !::qt_cast(w) && !::qt_cast(w) ) { if ( !normalMenu ) normalMenu = formWindow->mainWindow()->setupNormalHierarchyMenu( this ); normalMenu->popup( p ); @@ -612,8 +612,8 @@ void HierarchyList::showRMBMenu( QListViewItem *i, const QPoint & p ) if ( !tabWidgetMenu ) tabWidgetMenu = formWindow->mainWindow()->setupTabWidgetHierarchyMenu( - this, SLOT( addTabPage() ), - SLOT( removeTabPage() ) ); + this, TQT_SLOT( addTabPage() ), + TQT_SLOT( removeTabPage() ) ); tabWidgetMenu->popup( p ); } } @@ -621,19 +621,19 @@ void HierarchyList::showRMBMenu( QListViewItem *i, const QPoint & p ) void HierarchyList::addTabPage() { - QObject *o = current(); + TQObject *o = current(); if ( !o || !o->isWidgetType() ) return; - QWidget *w = (QWidget*)o; - if ( ::qt_cast(w) ) { - QTabWidget *tw = (QTabWidget*)w; + TQWidget *w = (TQWidget*)o; + if ( ::qt_cast(w) ) { + TQTabWidget *tw = (TQTabWidget*)w; AddTabPageCommand *cmd = new AddTabPageCommand( i18n( "Add Page to %1" ). arg( tw->name() ), formWindow, tw, "Tab" ); formWindow->commandHistory()->addCommand( cmd ); cmd->execute(); - } else if ( ::qt_cast(w) ) { - QWizard *wiz = (QWizard*)formWindow->mainContainer(); + } else if ( ::qt_cast(w) ) { + TQWizard *wiz = (TQWizard*)formWindow->mainContainer(); AddWizardPageCommand *cmd = new AddWizardPageCommand( i18n( "Add Page to %1" ). arg( wiz->name() ), formWindow, wiz, "Page" ); @@ -644,12 +644,12 @@ void HierarchyList::addTabPage() void HierarchyList::removeTabPage() { - QObject *o = current(); + TQObject *o = current(); if ( !o || !o->isWidgetType() ) return; - QWidget *w = (QWidget*)o; - if ( ::qt_cast(w) ) { - QTabWidget *tw = (QTabWidget*)w; + TQWidget *w = (TQWidget*)o; + if ( ::qt_cast(w) ) { + TQTabWidget *tw = (TQTabWidget*)w; if ( tw->currentPage() ) { QDesignerTabWidget *dtw = (QDesignerTabWidget*)tw; DeleteTabPageCommand *cmd = @@ -659,8 +659,8 @@ void HierarchyList::removeTabPage() formWindow->commandHistory()->addCommand( cmd ); cmd->execute(); } - } else if ( ::qt_cast(w) ) { - QWizard *wiz = (QWizard*)formWindow->mainContainer(); + } else if ( ::qt_cast(w) ) { + TQWizard *wiz = (TQWizard*)formWindow->mainContainer(); if ( wiz->currentPage() ) { QDesignerWizard *dw = (QDesignerWizard*)wiz; DeleteWizardPageCommand *cmd = @@ -676,13 +676,13 @@ void HierarchyList::removeTabPage() // ------------------------------------------------------------ -FormDefinitionView::FormDefinitionView( QWidget *parent, FormWindow *fw ) +FormDefinitionView::FormDefinitionView( TQWidget *parent, FormWindow *fw ) : HierarchyList( parent, fw, TRUE ) { header()->hide(); removeColumn( 1 ); - connect( this, SIGNAL( itemRenamed( QListViewItem *, int, const QString & ) ), - this, SLOT( renamed( QListViewItem * ) ) ); + connect( this, TQT_SIGNAL( itemRenamed( TQListViewItem *, int, const TQString & ) ), + this, TQT_SLOT( renamed( TQListViewItem * ) ) ); popupOpen = FALSE; } @@ -692,10 +692,10 @@ void FormDefinitionView::setup() return; if ( !formWindow->project()->isCpp() ) return; - QListViewItem *i = firstChild(); + TQListViewItem *i = firstChild(); while ( i ) { if ( i->rtti() == HierarchyItem::DefinitionParent ) { - QListViewItem *a = i; + TQListViewItem *a = i; i = i->nextSibling(); delete a; continue; @@ -705,18 +705,18 @@ void FormDefinitionView::setup() LanguageInterface *lIface = MetaDataBase::languageInterface( formWindow->project()->language() ); if ( lIface ) { - QStringList defs = lIface->definitions(); - for ( QStringList::Iterator dit = defs.begin(); dit != defs.end(); ++dit ) { + TQStringList defs = lIface->definitions(); + for ( TQStringList::Iterator dit = defs.begin(); dit != defs.end(); ++dit ) { HierarchyItem *itemDef = new HierarchyItem( HierarchyItem::DefinitionParent, this, 0, - i18n( *dit ), QString::null, QString::null ); + i18n( *dit ), TQString::null, TQString::null ); itemDef->setPixmap( 0, DesignerFolderPix ); itemDef->setOpen( TRUE ); - QStringList entries = + TQStringList entries = lIface->definitionEntries( *dit, formWindow->mainWindow()->designerInterface() ); HierarchyItem *item = 0; - for ( QStringList::Iterator eit = entries.begin(); eit != entries.end(); ++eit ) { + for ( TQStringList::Iterator eit = entries.begin(); eit != entries.end(); ++eit ) { item = new HierarchyItem( HierarchyItem::Definition, - itemDef, item, *eit, QString::null, QString::null ); + itemDef, item, *eit, TQString::null, TQString::null ); item->setRenameEnabled( 0, TRUE ); } } @@ -730,10 +730,10 @@ void FormDefinitionView::setupVariables() { bool pubOpen, protOpen, privOpen; pubOpen = protOpen = privOpen = TRUE; - QListViewItem *i = firstChild(); + TQListViewItem *i = firstChild(); while ( i ) { if ( i->rtti() == HierarchyItem::VarParent ) { - QListViewItem *a = i; + TQListViewItem *a = i; i = i->firstChild(); while ( i ) { if ( i->rtti() == HierarchyItem::VarPublic ) @@ -751,31 +751,31 @@ void FormDefinitionView::setupVariables() } HierarchyItem *itemVar = new HierarchyItem( HierarchyItem::VarParent, this, 0, i18n( "Class Variables" ), - QString::null, QString::null ); + TQString::null, TQString::null ); itemVar->setPixmap( 0, DesignerFolderPix ); itemVar->setOpen( TRUE ); itemVarPriv = new HierarchyItem( HierarchyItem::VarPrivate, itemVar, 0, i18n( "private" ), - QString::null, QString::null ); + TQString::null, TQString::null ); itemVarProt = new HierarchyItem( HierarchyItem::VarProtected, itemVar, 0, i18n( "protected" ), - QString::null, QString::null ); + TQString::null, TQString::null ); itemVarPubl = new HierarchyItem( HierarchyItem::VarPublic, itemVar, 0, i18n( "public" ), - QString::null, QString::null ); + TQString::null, TQString::null ); - QValueList varList = MetaDataBase::variables( formWindow ); - QValueList::Iterator it = --( varList.end() ); + TQValueList varList = MetaDataBase::variables( formWindow ); + TQValueList::Iterator it = --( varList.end() ); if ( !varList.isEmpty() && itemVar ) { for (;;) { - QListViewItem *item = 0; + TQListViewItem *item = 0; if ( (*it).varAccess == "public" ) item = new HierarchyItem( HierarchyItem::Variable, itemVarPubl, 0, (*it).varName, - QString::null, QString::null ); + TQString::null, TQString::null ); else if ( (*it).varAccess == "private" ) item = new HierarchyItem( HierarchyItem::Variable, itemVarPriv, 0, (*it).varName, - QString::null, QString::null ); + TQString::null, TQString::null ); else // default is protected item = new HierarchyItem( HierarchyItem::Variable, itemVarProt, 0, (*it).varName, - QString::null, QString::null ); + TQString::null, TQString::null ); item->setPixmap( 0, DesignerEditSlotsPix ); if ( it == varList.begin() ) break; @@ -795,11 +795,11 @@ void FormDefinitionView::refresh() bool fuPub, fuProt, fuPriv, slPub, slProt, slPriv; fuPub = fuProt = fuPriv = slPub = slProt = slPriv = TRUE; - QListViewItem *i = firstChild(); + TQListViewItem *i = firstChild(); while ( i ) { if ( i->rtti() == HierarchyItem::SlotParent || i->rtti() == HierarchyItem::FunctParent ) { - QListViewItem *a = i; + TQListViewItem *a = i; i = i->firstChild(); while ( i ) { switch( i->rtti() ) { @@ -832,51 +832,51 @@ void FormDefinitionView::refresh() itemFunct = new HierarchyItem( HierarchyItem::FunctParent, - this, 0, i18n( "Functions" ), QString::null, QString::null ); + this, 0, i18n( "Functions" ), TQString::null, TQString::null ); itemFunct->moveItem( i ); itemFunct->setPixmap( 0, DesignerFolderPix ); itemFunctPriv = new HierarchyItem( HierarchyItem::FunctPrivate, itemFunct, 0, - i18n( "private" ), QString::null, QString::null ); + i18n( "private" ), TQString::null, TQString::null ); itemFunctProt = new HierarchyItem( HierarchyItem::FunctProtected, itemFunct, 0, - i18n( "protected" ), QString::null, QString::null ); + i18n( "protected" ), TQString::null, TQString::null ); itemFunctPubl = new HierarchyItem( HierarchyItem::FunctPublic, itemFunct, 0, - i18n( "public" ), QString::null, QString::null ); + i18n( "public" ), TQString::null, TQString::null ); itemSlots = new HierarchyItem( HierarchyItem::SlotParent, - this, 0, i18n( "Slots" ), QString::null, QString::null ); + this, 0, i18n( "Slots" ), TQString::null, TQString::null ); itemSlots->setPixmap( 0, DesignerFolderPix ); itemPrivate = new HierarchyItem( HierarchyItem::SlotPrivate, itemSlots, 0, i18n( "private" ), - QString::null, QString::null ); + TQString::null, TQString::null ); itemProtected = new HierarchyItem( HierarchyItem::SlotProtected, itemSlots, 0, i18n( "protected" ), - QString::null, QString::null ); + TQString::null, TQString::null ); itemPublic = new HierarchyItem( HierarchyItem::SlotPublic, itemSlots, 0, i18n( "public" ), - QString::null, QString::null ); + TQString::null, TQString::null ); - QValueList functionList = MetaDataBase::functionList( formWindow ); - QValueList::Iterator it = --( functionList.end() ); + TQValueList functionList = MetaDataBase::functionList( formWindow ); + TQValueList::Iterator it = --( functionList.end() ); if ( !functionList.isEmpty() && itemFunct ) { for (;;) { - QListViewItem *item = 0; + TQListViewItem *item = 0; if ( (*it).type == "slot" ) { if ( (*it).access == "protected" ) item = new HierarchyItem( HierarchyItem::Slot, itemProtected, 0, (*it).function, - QString::null, QString::null ); + TQString::null, TQString::null ); else if ( (*it).access == "private" ) item = new HierarchyItem( HierarchyItem::Slot, itemPrivate, 0, (*it).function, - QString::null, QString::null ); + TQString::null, TQString::null ); else // default is public item = new HierarchyItem( HierarchyItem::Slot, itemPublic, 0, (*it).function, - QString::null, QString::null ); + TQString::null, TQString::null ); } else { if ( (*it).access == "protected" ) item = new HierarchyItem( HierarchyItem::Function, itemFunctProt, 0, (*it).function, - QString::null, QString::null ); + TQString::null, TQString::null ); else if ( (*it).access == "private" ) item = new HierarchyItem( HierarchyItem::Function, itemFunctPriv, 0, (*it).function, - QString::null, QString::null ); + TQString::null, TQString::null ); else // default is public item = new HierarchyItem( HierarchyItem::Function, itemFunctPubl, 0, (*it).function, - QString::null, QString::null ); + TQString::null, TQString::null ); } item->setPixmap( 0, DesignerEditSlotsPix ); if ( it == functionList.begin() ) @@ -897,11 +897,11 @@ void FormDefinitionView::refresh() } -void FormDefinitionView::setCurrent( QWidget * ) +void FormDefinitionView::setCurrent( TQWidget * ) { } -void FormDefinitionView::objectClicked( QListViewItem *i ) +void FormDefinitionView::objectClicked( TQListViewItem *i ) { if ( !i ) return; @@ -947,13 +947,13 @@ static HierarchyItem::Type getChildType( int type ) return (HierarchyItem::Type)type; } -void HierarchyList::insertEntry( QListViewItem *i, const QPixmap &pix, const QString &s ) +void HierarchyList::insertEntry( TQListViewItem *i, const TQPixmap &pix, const TQString &s ) { - QListViewItem *after = i->firstChild(); + TQListViewItem *after = i->firstChild(); while ( after && after->nextSibling() ) after = after->nextSibling(); HierarchyItem *item = new HierarchyItem( getChildType( i->rtti() ), i, after, s, - QString::null, QString::null ); + TQString::null, TQString::null ); if ( !pix.isNull() ) item->setPixmap( 0, pix ); item->setRenameEnabled( 0, TRUE ); @@ -964,9 +964,9 @@ void HierarchyList::insertEntry( QListViewItem *i, const QPixmap &pix, const QSt item->startRename( 0 ); } -void FormDefinitionView::contentsMouseDoubleClickEvent( QMouseEvent *e ) +void FormDefinitionView::contentsMouseDoubleClickEvent( TQMouseEvent *e ) { - QListViewItem *i = itemAt( contentsToViewport( e->pos() ) ); + TQListViewItem *i = itemAt( contentsToViewport( e->pos() ) ); if ( !i ) return; @@ -1002,7 +1002,7 @@ void FormDefinitionView::contentsMouseDoubleClickEvent( QMouseEvent *e ) case HierarchyItem::VarProtected: case HierarchyItem::VarPrivate: { VariableDialog varDia( formWindow, this ); - QListViewItem *i = selectedItem(); + TQListViewItem *i = selectedItem(); if ( i ) varDia.setCurrentItem( i->text( 0 ) ); varDia.exec(); @@ -1014,7 +1014,7 @@ void FormDefinitionView::contentsMouseDoubleClickEvent( QMouseEvent *e ) insertEntry( i ); } -void FormDefinitionView::execFunctionDialog( const QString &access, const QString &type, bool addFunc ) +void FormDefinitionView::execFunctionDialog( const TQString &access, const TQString &type, bool addFunc ) { FormFile *formFile = formWindow->formFile(); if ( !formFile || !formFile->isUihFileUpToDate() ) @@ -1031,7 +1031,7 @@ void FormDefinitionView::execFunctionDialog( const QString &access, const QStrin dlg.exec(); } -void FormDefinitionView::showRMBMenu( QListViewItem *i, const QPoint &pos ) +void FormDefinitionView::showRMBMenu( TQListViewItem *i, const TQPoint &pos ) { if ( !i ) return; @@ -1042,7 +1042,7 @@ void FormDefinitionView::showRMBMenu( QListViewItem *i, const QPoint &pos ) const int PROPS = 4; const int GOIMPL = 5; - QPopupMenu menu; + TQPopupMenu menu; bool insertDelete = FALSE; if ( i->rtti() == HierarchyItem::FunctParent || i->rtti() == HierarchyItem::SlotParent || @@ -1087,10 +1087,10 @@ void FormDefinitionView::showRMBMenu( QListViewItem *i, const QPoint &pos ) case HierarchyItem::VarPrivate: case HierarchyItem::Variable: { VariableDialog varDia( formWindow, this ); - QListViewItem *i = selectedItem(); + TQListViewItem *i = selectedItem(); if ( i ) varDia.setCurrentItem( i->text( 0 ) ); - if ( varDia.exec() == QDialog::Accepted ) + if ( varDia.exec() == TQDialog::Accepted ) formWindow->commandHistory()->setModified( TRUE ); break; } @@ -1103,7 +1103,7 @@ void FormDefinitionView::showRMBMenu( QListViewItem *i, const QPoint &pos ) i = i->parent(); ListEditor dia( this, 0, TRUE ); dia.setCaption( i18n( "Edit %1" ).arg( i->text( 0 ) ) ); - QStringList entries = lIface->definitionEntries( i->text( 0 ), MainWindow::self->designerInterface() ); + TQStringList entries = lIface->definitionEntries( i->text( 0 ), MainWindow::self->designerInterface() ); dia.setList( entries ); dia.exec(); Command *cmd = new EditDefinitionsCommand( i18n( "Edit %1" ).arg( i->text( 0 )), formWindow, @@ -1140,10 +1140,10 @@ void FormDefinitionView::showRMBMenu( QListViewItem *i, const QPoint &pos ) } else if ( res == DEL ) { if ( i->rtti() == HierarchyItem::Slot || i->rtti() == HierarchyItem::Function ) { - QCString funct( MetaDataBase::normalizeFunction( i->text( 0 ) ).latin1() ); + TQCString funct( MetaDataBase::normalizeFunction( i->text( 0 ) ).latin1() ); Command *cmd = new RemoveFunctionCommand( i18n( "Remove Function" ), formWindow, funct, - QString::null, QString::null, QString::null, - QString::null, formWindow->project()->language() ); + TQString::null, TQString::null, TQString::null, + TQString::null, formWindow->project()->language() ); formWindow->commandHistory()->addCommand( cmd ); cmd->execute(); formWindow->mainWindow()->objectHierarchy()->updateFormDefinitionView(); @@ -1153,7 +1153,7 @@ void FormDefinitionView::showRMBMenu( QListViewItem *i, const QPoint &pos ) formWindow->commandHistory()->addCommand( cmd ); cmd->execute(); } else { - QListViewItem *p = i->parent(); + TQListViewItem *p = i->parent(); delete i; save( p, 0 ); } @@ -1174,7 +1174,7 @@ void FormDefinitionView::showRMBMenu( QListViewItem *i, const QPoint &pos ) } } -void FormDefinitionView::renamed( QListViewItem *i ) +void FormDefinitionView::renamed( TQListViewItem *i ) { if ( newItem == i ) newItem = 0; @@ -1184,7 +1184,7 @@ void FormDefinitionView::renamed( QListViewItem *i ) } -void FormDefinitionView::save( QListViewItem *p, QListViewItem *i ) +void FormDefinitionView::save( TQListViewItem *p, TQListViewItem *i ) { if ( i && i->text( 0 ).isEmpty() ) { delete i; @@ -1193,12 +1193,12 @@ void FormDefinitionView::save( QListViewItem *p, QListViewItem *i ) if ( i && i->rtti() == HierarchyItem::Variable ) { i->setRenameEnabled( 0, FALSE ); - QString varName = i->text( 0 ); + TQString varName = i->text( 0 ); varName = varName.simplifyWhiteSpace(); if ( varName[(int)varName.length() - 1] != ';' ) varName += ";"; if ( MetaDataBase::hasVariable( formWindow, varName ) ) { - QMessageBox::information( this, i18n( "Edit Variables" ), + TQMessageBox::information( this, i18n( "Edit Variables" ), i18n( "This variable has already been declared." ) ); } else { if ( p->rtti() == HierarchyItem::VarPublic ) @@ -1212,7 +1212,7 @@ void FormDefinitionView::save( QListViewItem *p, QListViewItem *i ) LanguageInterface *lIface = MetaDataBase::languageInterface( formWindow->project()->language() ); if ( !lIface ) return; - QStringList lst; + TQStringList lst; i = p->firstChild(); while ( i ) { lst << i->text( 0 ); @@ -1225,7 +1225,7 @@ void FormDefinitionView::save( QListViewItem *p, QListViewItem *i ) } } -void FormDefinitionView::addVariable( const QString &varName, const QString &access ) +void FormDefinitionView::addVariable( const TQString &varName, const TQString &access ) { Command *cmd = new AddVariableCommand( i18n( "Add Variable" ), formWindow, varName, access ); @@ -1235,8 +1235,8 @@ void FormDefinitionView::addVariable( const QString &varName, const QString &acc // ------------------------------------------------------------ -HierarchyView::HierarchyView( QWidget *parent ) - : QTabWidget( parent, 0, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | +HierarchyView::HierarchyView( TQWidget *parent ) + : TQTabWidget( parent, 0, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_Tool |WStyle_MinMax | WStyle_SysMenu ) { formwindow = 0; @@ -1255,20 +1255,20 @@ HierarchyView::HierarchyView( QWidget *parent ) if ( !classBrowserInterfaceManager ) { classBrowserInterfaceManager = - new QPluginManager( IID_ClassBrowser, QApplication::libraryPaths(), + new QPluginManager( IID_ClassBrowser, TQApplication::libraryPaths(), MainWindow::self->pluginDirectory() ); } - classBrowsers = new QMap(); - QStringList langs = MetaDataBase::languages(); - for ( QStringList::Iterator it = langs.begin(); it != langs.end(); ++it ) { + classBrowsers = new TQMap(); + TQStringList langs = MetaDataBase::languages(); + for ( TQStringList::Iterator it = langs.begin(); it != langs.end(); ++it ) { QInterfacePtr ciface = 0; classBrowserInterfaceManager->queryInterface( *it, &ciface ); if ( ciface ) { ClassBrowser cb( ciface->createClassBrowser( this ), ciface ); addTab( cb.lv, i18n( "Class Declarations" ) ); setTabToolTip( cb.lv, i18n( "List of all classes and its declarations of the current source file" ) ); - ciface->onClick( this, SLOT( jumpTo( const QString &, const QString &, int ) ) ); + ciface->onClick( this, TQT_SLOT( jumpTo( const TQString &, const TQString &, int ) ) ); classBrowsers->insert( *it, cb ); setTabEnabled( cb.lv, FALSE ); } @@ -1283,13 +1283,13 @@ void HierarchyView::clear() { listview->clear(); fView->clear(); - for ( QMap::Iterator it = classBrowsers->begin(); + for ( TQMap::Iterator it = classBrowsers->begin(); it != classBrowsers->end(); ++it ) { (*it).iface->clear(); } } -void HierarchyView::setFormWindow( FormWindow *fw, QObject *o ) +void HierarchyView::setFormWindow( FormWindow *fw, TQObject *o ) { bool fake = fw && qstrcmp( fw->name(), "qt_fakewindow" ) == 0; if ( fw == 0 || o == 0 ) { @@ -1307,7 +1307,7 @@ void HierarchyView::setFormWindow( FormWindow *fw, QObject *o ) if ( fw == formwindow ) { if ( fw ) { if ( !fake ) - listview->setCurrent( (QWidget*)o ); + listview->setCurrent( (TQWidget*)o ); else listview->clear(); if ( MainWindow::self->qWorkspace()->activeWindow() == fw ) @@ -1330,11 +1330,11 @@ void HierarchyView::setFormWindow( FormWindow *fw, QObject *o ) fView->setFormWindow( fw ); if ( !fake ) { listview->setup(); - listview->setCurrent( (QWidget*)o ); + listview->setCurrent( (TQWidget*)o ); } fView->setup(); - for ( QMap::Iterator it = classBrowsers->begin(); + for ( TQMap::Iterator it = classBrowsers->begin(); it != classBrowsers->end(); ++it ) { (*it).iface->clear(); setTabEnabled( (*it).lv, fw && !fw->project()->isCpp() ); @@ -1356,7 +1356,7 @@ void HierarchyView::showClasses( SourceEditor *se ) return; lastSourceEditor = se; - QTimer::singleShot( 100, this, SLOT( showClassesTimeout() ) ); + TQTimer::singleShot( 100, this, TQT_SLOT( showClassesTimeout() ) ); } void HierarchyView::showClassesTimeout() @@ -1385,7 +1385,7 @@ void HierarchyView::showClassesTimeout() MainWindow::self->propertyeditor()->setWidget( 0, 0 ); editor = se; - for ( QMap::Iterator it = classBrowsers->begin(); + for ( TQMap::Iterator it = classBrowsers->begin(); it != classBrowsers->end(); ++it ) { if ( it.key() == se->project()->language() ) { (*it).iface->update( se->text() ); @@ -1402,7 +1402,7 @@ void HierarchyView::updateClassBrowsers() { if ( !editor ) return; - for ( QMap::Iterator it = classBrowsers->begin(); + for ( TQMap::Iterator it = classBrowsers->begin(); it != classBrowsers->end(); ++it ) { if ( it.key() == editor->project()->language() ) (*it).iface->update( editor->text() ); @@ -1416,56 +1416,56 @@ FormWindow *HierarchyView::formWindow() const return formwindow; } -void HierarchyView::closeEvent( QCloseEvent *e ) +void HierarchyView::closeEvent( TQCloseEvent *e ) { emit hidden(); e->accept(); } -void HierarchyView::widgetInserted( QWidget * ) +void HierarchyView::widgetInserted( TQWidget * ) { listview->setup(); } -void HierarchyView::widgetRemoved( QWidget * ) +void HierarchyView::widgetRemoved( TQWidget * ) { listview->setup(); } -void HierarchyView::widgetsInserted( const QWidgetList & ) +void HierarchyView::widgetsInserted( const TQWidgetList & ) { listview->setup(); } -void HierarchyView::widgetsRemoved( const QWidgetList & ) +void HierarchyView::widgetsRemoved( const TQWidgetList & ) { listview->setup(); } -void HierarchyView::namePropertyChanged( QWidget *w, const QVariant & ) +void HierarchyView::namePropertyChanged( TQWidget *w, const TQVariant & ) { - QWidget *w2 = w; - if ( ::qt_cast(w) ) - w2 = ( (QMainWindow*)w )->centralWidget(); + TQWidget *w2 = w; + if ( ::qt_cast(w) ) + w2 = ( (TQMainWindow*)w )->centralWidget(); listview->changeNameOf( w2, w->name() ); } -void HierarchyView::databasePropertyChanged( QWidget *w, const QStringList& info ) +void HierarchyView::databasePropertyChanged( TQWidget *w, const TQStringList& info ) { #ifndef QT_NO_SQL - QString i = info.join( "." ); + TQString i = info.join( "." ); listview->changeDatabaseOf( w, i ); #endif } -void HierarchyView::tabsChanged( QTabWidget * ) +void HierarchyView::tabsChanged( TQTabWidget * ) { listview->setup(); } -void HierarchyView::pagesChanged( QWizard * ) +void HierarchyView::pagesChanged( TQWizard * ) { listview->setup(); } @@ -1488,7 +1488,7 @@ void HierarchyView::updateFormDefinitionView() fView->setup(); } -void HierarchyView::jumpTo( const QString &func, const QString &clss, int type ) +void HierarchyView::jumpTo( const TQString &func, const TQString &clss, int type ) { if ( !editor ) return; @@ -1498,7 +1498,7 @@ void HierarchyView::jumpTo( const QString &func, const QString &clss, int type ) editor->setFunction( func, clss ); } -HierarchyView::ClassBrowser::ClassBrowser( QListView *l, ClassBrowserInterface *i ) +HierarchyView::ClassBrowser::ClassBrowser( TQListView *l, ClassBrowserInterface *i ) : lv( l ), iface( i ) { } -- cgit v1.2.1