summaryrefslogtreecommitdiffstats
path: root/kommander/editor/listboxeditorimpl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/editor/listboxeditorimpl.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/editor/listboxeditorimpl.cpp')
-rw-r--r--kommander/editor/listboxeditorimpl.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kommander/editor/listboxeditorimpl.cpp b/kommander/editor/listboxeditorimpl.cpp
index 5a2aac9d..1f820081 100644
--- a/kommander/editor/listboxeditorimpl.cpp
+++ b/kommander/editor/listboxeditorimpl.cpp
@@ -24,19 +24,19 @@
#include "pixmapchooser.h"
#include "command.h"
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqcheckbox.h>
#include <klocale.h>
-ListBoxEditor::ListBoxEditor( QWidget *parent, QWidget *editWidget, FormWindow *fw )
+ListBoxEditor::ListBoxEditor( TQWidget *parent, TQWidget *editWidget, FormWindow *fw )
: ListBoxEditorBase( parent, 0, true ), formwindow( fw )
{
- connect( helpButton, SIGNAL( clicked() ), MainWindow::self, SLOT( showDialogHelp() ) );
- listbox = (QListBox*)editWidget;
+ connect( helpButton, TQT_SIGNAL( clicked() ), MainWindow::self, TQT_SLOT( showDialogHelp() ) );
+ listbox = (TQListBox*)editWidget;
itemText->setText( "" );
itemText->setEnabled( false );
@@ -44,12 +44,12 @@ ListBoxEditor::ListBoxEditor( QWidget *parent, QWidget *editWidget, FormWindow *
itemChoosePixmap->setEnabled( false );
itemDeletePixmap->setEnabled( false );
- QListBoxItem *i = 0;
+ TQListBoxItem *i = 0;
for ( i = listbox->firstItem(); i; i = i->next() ) {
if ( i->pixmap() )
- (void)new QListBoxPixmap( preview, *i->pixmap(), i->text() );
+ (void)new TQListBoxPixmap( preview, *i->pixmap(), i->text() );
else
- (void)new QListBoxText( preview, i->text() );
+ (void)new TQListBoxText( preview, i->text() );
}
if ( preview->firstItem() )
@@ -58,7 +58,7 @@ ListBoxEditor::ListBoxEditor( QWidget *parent, QWidget *editWidget, FormWindow *
void ListBoxEditor::insertNewItem()
{
- QListBoxItem *i = new QListBoxText( preview, i18n("New Item") );
+ TQListBoxItem *i = new TQListBoxText( preview, i18n("New Item") );
preview->setCurrentItem( i );
preview->setSelected( i, true );
}
@@ -70,7 +70,7 @@ void ListBoxEditor::deleteCurrentItem()
preview->setSelected( preview->currentItem(), true );
}
-void ListBoxEditor::currentItemChanged( QListBoxItem *i )
+void ListBoxEditor::currentItemChanged( TQListBoxItem *i )
{
itemText->blockSignals( true );
itemText->setText( "" );
@@ -95,7 +95,7 @@ void ListBoxEditor::currentItemChanged( QListBoxItem *i )
itemText->blockSignals( false );
}
-void ListBoxEditor::currentTextChanged( const QString &txt )
+void ListBoxEditor::currentTextChanged( const TQString &txt )
{
if ( preview->currentItem() == -1 )
return;
@@ -121,8 +121,8 @@ void ListBoxEditor::cancelClicked()
void ListBoxEditor::applyClicked()
{
- QListBoxItem *i = 0;
- QValueList<PopulateListBoxCommand::Item> items;
+ TQListBoxItem *i = 0;
+ TQValueList<PopulateListBoxCommand::Item> items;
for ( i = preview->firstItem(); i; i = i->next() ) {
PopulateListBoxCommand::Item item;
if ( i->pixmap() )
@@ -142,16 +142,16 @@ void ListBoxEditor::choosePixmap()
if ( preview->currentItem() == -1 )
return;
- QPixmap pix;
+ TQPixmap pix;
if ( preview->item( preview->currentItem() )->pixmap() )
pix = qChoosePixmap( this, formwindow, *preview->item( preview->currentItem() )->pixmap() );
else
- pix = qChoosePixmap( this, formwindow, QPixmap() );
+ pix = qChoosePixmap( this, formwindow, TQPixmap() );
if ( pix.isNull() )
return;
- QString txt = preview->item( preview->currentItem() )->text();
+ TQString txt = preview->item( preview->currentItem() )->text();
preview->changeItem( pix, txt, preview->currentItem() );
itemDeletePixmap->setEnabled( true );
}
@@ -161,14 +161,14 @@ void ListBoxEditor::moveItemUp()
if ( preview->currentItem() < 1 )
return;
- QListBoxItem *i = preview->item( preview->currentItem() );
+ TQListBoxItem *i = preview->item( preview->currentItem() );
bool hasPix = (i->pixmap() != 0);
- QPixmap pix;
+ TQPixmap pix;
if ( hasPix )
pix = *i->pixmap();
- QString txt = i->text();
+ TQString txt = i->text();
- QListBoxItem *p = i->prev();
+ TQListBoxItem *p = i->prev();
if ( p->pixmap() )
preview->changeItem( *p->pixmap(), p->text(), preview->currentItem() );
else
@@ -185,14 +185,14 @@ void ListBoxEditor::moveItemDown()
if ( preview->currentItem() == -1 || preview->currentItem() > (int)preview->count() - 2 )
return;
- QListBoxItem *i = preview->item( preview->currentItem() );
+ TQListBoxItem *i = preview->item( preview->currentItem() );
bool hasPix = (i->pixmap() != 0);
- QPixmap pix;
+ TQPixmap pix;
if ( hasPix )
pix = *i->pixmap();
- QString txt = i->text();
+ TQString txt = i->text();
- QListBoxItem *n = i->next();
+ TQListBoxItem *n = i->next();
if ( n->pixmap() )
preview->changeItem( *n->pixmap(), n->text(), preview->currentItem() );
else
@@ -209,7 +209,7 @@ void ListBoxEditor::deletePixmap()
if ( preview->currentItem() == -1 )
return;
- QListBoxItem *i = preview->item( preview->currentItem() );
+ TQListBoxItem *i = preview->item( preview->currentItem() );
preview->changeItem( i->text(), preview->currentItem() );
itemDeletePixmap->setEnabled( false );
}