diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /kdevdesigner/designer/configtoolboxdialog.ui.h | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner/designer/configtoolboxdialog.ui.h')
-rw-r--r-- | kdevdesigner/designer/configtoolboxdialog.ui.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/kdevdesigner/designer/configtoolboxdialog.ui.h b/kdevdesigner/designer/configtoolboxdialog.ui.h index 6b5d55b6..0b176afc 100644 --- a/kdevdesigner/designer/configtoolboxdialog.ui.h +++ b/kdevdesigner/designer/configtoolboxdialog.ui.h @@ -27,7 +27,7 @@ #include "mainwindow.h" #include "widgetaction.h" #include "listviewdnd.h" -#include <qlistview.h> +#include <tqlistview.h> void ConfigToolboxDialog::init() { @@ -40,31 +40,31 @@ void ConfigToolboxDialog::init() ListViewDnd *commonDnd = new ListViewDnd( listViewCommon ); commonDnd->setDragMode( ListViewDnd::Both | ListViewDnd::Move | ListViewDnd::Flat ); - QObject::connect( toolsDnd, SIGNAL( dropped( QListViewItem * ) ), - commonDnd, SLOT( confirmDrop( QListViewItem * ) ) ); - QObject::connect( commonDnd, SIGNAL( dropped( QListViewItem * ) ), - commonDnd, SLOT( confirmDrop( QListViewItem * ) ) ); + TQObject::connect( toolsDnd, TQT_SIGNAL( dropped( TQListViewItem * ) ), + commonDnd, TQT_SLOT( confirmDrop( TQListViewItem * ) ) ); + TQObject::connect( commonDnd, TQT_SIGNAL( dropped( TQListViewItem * ) ), + commonDnd, TQT_SLOT( confirmDrop( TQListViewItem * ) ) ); - QDict<QListViewItem> groups; - QAction *a; + TQDict<TQListViewItem> groups; + TQAction *a; for ( a = MainWindow::self->toolActions.last(); a; a = MainWindow::self->toolActions.prev() ) { - QString grp = ( (WidgetAction*)a )->group(); - QListViewItem *parent = groups.find( grp ); + TQString grp = ( (WidgetAction*)a )->group(); + TQListViewItem *parent = groups.find( grp ); if ( !parent ) { - parent = new QListViewItem( listViewTools ); + parent = new TQListViewItem( listViewTools ); parent->setText( 0, grp ); parent->setOpen( TRUE ); groups.insert( grp, parent ); } - QListViewItem *i = new QListViewItem( parent ); + TQListViewItem *i = new TQListViewItem( parent ); i->setText( 0, a->text() ); i->setPixmap( 0, a->iconSet().pixmap() ); } for ( a = MainWindow::self->commonWidgetsPage.last(); a; a = MainWindow::self->commonWidgetsPage.prev() ) { - QListViewItem *i = new QListViewItem( listViewCommon ); + TQListViewItem *i = new TQListViewItem( listViewCommon ); i->setText( 0, a->text() ); i->setPixmap( 0, a->iconSet().pixmap() ); } @@ -74,12 +74,12 @@ void ConfigToolboxDialog::init() void ConfigToolboxDialog::addTool() { - QListView *src = listViewTools; + TQListView *src = listViewTools; bool addKids = FALSE; - QListViewItem *nextSibling = 0; - QListViewItem *nextParent = 0; - QListViewItemIterator it = src->firstChild(); + TQListViewItem *nextSibling = 0; + TQListViewItem *nextParent = 0; + TQListViewItemIterator it = src->firstChild(); for ( ; *it; it++ ) { // Hit the nextSibling, turn of child processing if ( (*it) == nextSibling ) @@ -88,7 +88,7 @@ void ConfigToolboxDialog::addTool() if ( (*it)->isSelected() ) { if ( (*it)->childCount() == 0 ) { // Selected, no children - QListViewItem *i = new QListViewItem( listViewCommon, listViewCommon->lastItem() ); + TQListViewItem *i = new TQListViewItem( listViewCommon, listViewCommon->lastItem() ); i->setText( 0, (*it)->text(0) ); i->setPixmap( 0, *((*it)->pixmap(0)) ); listViewCommon->setCurrentItem( i ); @@ -107,7 +107,7 @@ void ConfigToolboxDialog::addTool() } } else if ( ((*it)->childCount() == 0) && addKids ) { // Leaf node, and we _do_ process children - QListViewItem *i = new QListViewItem( listViewCommon, listViewCommon->lastItem() ); + TQListViewItem *i = new TQListViewItem( listViewCommon, listViewCommon->lastItem() ); i->setText( 0, (*it)->text(0) ); i->setPixmap( 0, *((*it)->pixmap(0)) ); listViewCommon->setCurrentItem( i ); @@ -119,7 +119,7 @@ void ConfigToolboxDialog::addTool() void ConfigToolboxDialog::removeTool() { - QListViewItemIterator it = listViewCommon->firstChild(); + TQListViewItemIterator it = listViewCommon->firstChild(); while ( *it ) { if ( (*it)->isSelected() ) delete (*it); @@ -131,8 +131,8 @@ void ConfigToolboxDialog::removeTool() void ConfigToolboxDialog::moveToolUp() { - QListViewItem *next = 0; - QListViewItem *item = listViewCommon->firstChild(); + TQListViewItem *next = 0; + TQListViewItem *item = listViewCommon->firstChild(); for ( int i = 0; i < listViewCommon->childCount(); ++i ) { next = item->itemBelow(); if ( item->isSelected() && (i > 0) && !item->itemAbove()->isSelected() ) @@ -145,8 +145,8 @@ void ConfigToolboxDialog::moveToolUp() void ConfigToolboxDialog::moveToolDown() { int count = listViewCommon->childCount(); - QListViewItem *next = 0; - QListViewItem *item = listViewCommon->lastItem(); + TQListViewItem *next = 0; + TQListViewItem *item = listViewCommon->lastItem(); for ( int i = 0; i < count; ++i ) { next = item->itemAbove(); if ( item->isSelected() && (i > 0) && !item->itemBelow()->isSelected() ) @@ -154,7 +154,7 @@ void ConfigToolboxDialog::moveToolDown() item = next; } - // QListViewItem *item = listViewCommon->firstChild(); + // TQListViewItem *item = listViewCommon->firstChild(); // for ( int i = 0; i < listViewCommon->childCount(); ++i ) { //if ( item == listViewCommon->currentItem() ) { // item->moveItem( item->itemBelow() ); @@ -166,10 +166,10 @@ void ConfigToolboxDialog::moveToolDown() } -void ConfigToolboxDialog::currentToolChanged( QListViewItem *i ) +void ConfigToolboxDialog::currentToolChanged( TQListViewItem *i ) { bool canAdd = FALSE; - QListViewItemIterator it = listViewTools->firstChild(); + TQListViewItemIterator it = listViewTools->firstChild(); for ( ; *it; it++ ) { if ( (*it)->isSelected() ) { canAdd = TRUE; @@ -180,13 +180,13 @@ void ConfigToolboxDialog::currentToolChanged( QListViewItem *i ) } -void ConfigToolboxDialog::currentCommonToolChanged( QListViewItem *i ) +void ConfigToolboxDialog::currentCommonToolChanged( TQListViewItem *i ) { buttonUp->setEnabled( (bool) (i && i->itemAbove()) ); buttonDown->setEnabled( (bool) (i && i->itemBelow()) ); bool canRemove = FALSE; - QListViewItemIterator it = listViewCommon->firstChild(); + TQListViewItemIterator it = listViewCommon->firstChild(); for ( ; *it; it++ ) { if ( (*it)->isSelected() ) { canRemove = TRUE; @@ -200,9 +200,9 @@ void ConfigToolboxDialog::currentCommonToolChanged( QListViewItem *i ) void ConfigToolboxDialog::ok() { MainWindow::self->commonWidgetsPage.clear(); - QListViewItem *item = listViewCommon->firstChild(); + TQListViewItem *item = listViewCommon->firstChild(); for ( int j = 0; j < listViewCommon->childCount(); item = item->itemBelow(), ++j ) { - QAction *a = 0; + TQAction *a = 0; for ( a = MainWindow::self->toolActions.last(); a; a = MainWindow::self->toolActions.prev() ) { |