summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/configtoolboxdialog.ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/configtoolboxdialog.ui.h')
-rw-r--r--kdevdesigner/designer/configtoolboxdialog.ui.h60
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() ) {