summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/wizardeditorimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/wizardeditorimpl.cpp')
-rw-r--r--kdevdesigner/designer/wizardeditorimpl.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kdevdesigner/designer/wizardeditorimpl.cpp b/kdevdesigner/designer/wizardeditorimpl.cpp
index 089bf746..21e20c63 100644
--- a/kdevdesigner/designer/wizardeditorimpl.cpp
+++ b/kdevdesigner/designer/wizardeditorimpl.cpp
@@ -31,29 +31,29 @@
#include "listboxdnd.h"
#include "listboxrename.h"
-#include <qwizard.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qinputdialog.h>
+#include <tqwizard.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqinputdialog.h>
#include <klocale.h>
-WizardEditor::WizardEditor( QWidget *parent, QWizard *w, FormWindow *fw )
+WizardEditor::WizardEditor( TQWidget *parent, TQWizard *w, FormWindow *fw )
: WizardEditorBase( parent, 0 ), formwindow( fw ), wizard( w ), draggedItem( 0 )
{
- connect( buttonHelp, SIGNAL( clicked() ), MainWindow::self, SLOT( showDialogHelp() ) );
+ connect( buttonHelp, TQT_SIGNAL( clicked() ), MainWindow::self, TQT_SLOT( showDialogHelp() ) );
fillListBox();
// Add drag and drop
ListBoxDnd *listBoxDnd = new ListBoxDnd( listBox );
listBoxDnd->setDragMode( ListBoxDnd::Internal | ListBoxDnd::Move );
- QObject::connect( listBoxDnd, SIGNAL( dropped( QListBoxItem * ) ),
- listBoxDnd, SLOT( confirmDrop( QListBoxItem * ) ) );
+ TQObject::connect( listBoxDnd, TQT_SIGNAL( dropped( TQListBoxItem * ) ),
+ listBoxDnd, TQT_SLOT( confirmDrop( TQListBoxItem * ) ) );
- QObject::connect( listBoxDnd, SIGNAL( dragged( QListBoxItem * ) ),
- this, SLOT( itemDragged( QListBoxItem * ) ) );
- QObject::connect( listBoxDnd, SIGNAL( dropped( QListBoxItem * ) ),
- this, SLOT( itemDropped( QListBoxItem * ) ) );
+ TQObject::connect( listBoxDnd, TQT_SIGNAL( dragged( TQListBoxItem * ) ),
+ this, TQT_SLOT( itemDragged( TQListBoxItem * ) ) );
+ TQObject::connect( listBoxDnd, TQT_SIGNAL( dropped( TQListBoxItem * ) ),
+ this, TQT_SLOT( itemDropped( TQListBoxItem * ) ) );
// Add in-place rename
new ListBoxRename( listBox );
@@ -90,7 +90,7 @@ void WizardEditor::applyClicked()
// fix wizard buttons
for ( int i = 0; i < wizard->pageCount(); i++ ) {
- QWidget * page = wizard->page( i );
+ TQWidget * page = wizard->page( i );
if ( i == 0 ) { // first page
wizard->setBackEnabled( page, FALSE );
@@ -163,7 +163,7 @@ void WizardEditor::upClicked()
int index2 = index1 - 1;
// swap listbox items
- QString item1 = listBox->text( index1 );
+ TQString item1 = listBox->text( index1 );
listBox->removeItem( index1 );
listBox->insertItem( item1, index2 );
listBox->setCurrentItem( index2 );
@@ -183,7 +183,7 @@ void WizardEditor::downClicked()
int index2 = index1 + 1;
// swap listbox items
- QString item1 = listBox->text( index1 );
+ TQString item1 = listBox->text( index1 );
listBox->removeItem( index1 );
listBox->insertItem( item1, index2 );
listBox->setCurrentItem( index2 );
@@ -217,7 +217,7 @@ void WizardEditor::itemSelected( int index )
if ( index < 0 ) return;
// Called when Qt::Key_Enter was pressed.
// ListBoxRename has renamed the list item, so we only need to rename the page to the same name.
- QString pn( i18n( "Rename page %1 of %2" ).arg( wizard->title( wizard->page( index ) ) ).arg( wizard->name() ) );
+ TQString pn( i18n( "Rename page %1 of %2" ).arg( wizard->title( wizard->page( index ) ) ).arg( wizard->name() ) );
RenameWizardPageCommand *cmd = new RenameWizardPageCommand( pn, formwindow, wizard, index, listBox->text( index ) );
commands.append( cmd );
}
@@ -234,13 +234,13 @@ void WizardEditor::updateButtons()
buttonRemove->setEnabled( FALSE );
}
-void WizardEditor::itemDragged( QListBoxItem * i )
+void WizardEditor::itemDragged( TQListBoxItem * i )
{
// Store item index
draggedItem = listBox->index( i );
}
-void WizardEditor::itemDropped( QListBoxItem * i )
+void WizardEditor::itemDropped( TQListBoxItem * i )
{
if ( draggedItem < 0 ) return;
// The reorder the pages acording to the listBox list of items