diff options
Diffstat (limited to 'kbabel/kbabeldict/dictchooser.cpp')
-rw-r--r-- | kbabel/kbabeldict/dictchooser.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/kbabel/kbabeldict/dictchooser.cpp b/kbabel/kbabeldict/dictchooser.cpp index f9360b61..f99c3709 100644 --- a/kbabel/kbabeldict/dictchooser.cpp +++ b/kbabel/kbabeldict/dictchooser.cpp @@ -35,42 +35,42 @@ #include "dictchooser.h" #include "resources.h" -#include <qlabel.h> -#include <qlayout.h> -#include <qpushbutton.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqpushbutton.h> #include <kconfig.h> #include <klistbox.h> #include <klocale.h> #include <kdialog.h> #include <ktempfile.h> -DictChooser::DictChooser(KBabelDictBox*b, QStringList selected - , QWidget *parent, const char *name) - : QWidget(parent,name), box(b) +DictChooser::DictChooser(KBabelDictBox*b, TQStringList selected + , TQWidget *parent, const char *name) + : TQWidget(parent,name), box(b) { tempConfig.clear(); tempConfig.setAutoDelete(true); dictList = box->moduleInfos(); - QGridLayout *layout = new QGridLayout(this); + TQGridLayout *layout = new TQGridLayout(this); layout->setSpacing(KDialog::spacingHint()); - QLabel *label = new QLabel(i18n("dictionary to not use","Do not use:"),this); + TQLabel *label = new TQLabel(i18n("dictionary to not use","Do not use:"),this); layout->addWidget(label,0,0); - label = new QLabel(i18n("dictionary to use","Use:"),this); + label = new TQLabel(i18n("dictionary to use","Use:"),this); layout->addWidget(label,0,2); unselectedBox = new KListBox(this,"unselectedBox"); layout->addWidget(unselectedBox,1,0); - QVBoxLayout *bLayout = new QVBoxLayout(); - selectBtn = new QPushButton(" &>> ", this); + TQVBoxLayout *bLayout = new TQVBoxLayout(); + selectBtn = new TQPushButton(" &>> ", this); selectBtn->setEnabled(false); bLayout->addWidget(selectBtn); - unselectBtn = new QPushButton(" &<< ", this); + unselectBtn = new TQPushButton(" &<< ", this); unselectBtn->setEnabled(false); bLayout->addWidget(unselectBtn); bLayout->addStretch(); @@ -80,14 +80,14 @@ DictChooser::DictChooser(KBabelDictBox*b, QStringList selected layout->addWidget(selectedBox,1,2); - bLayout = new QVBoxLayout(); - upBtn = new QPushButton(i18n("Move &Up"), this); + bLayout = new TQVBoxLayout(); + upBtn = new TQPushButton(i18n("Move &Up"), this); upBtn->setEnabled(false); bLayout->addWidget(upBtn); - downBtn = new QPushButton(i18n("Move &Down"), this); + downBtn = new TQPushButton(i18n("Move &Down"), this); downBtn->setEnabled(false); bLayout->addWidget(downBtn); - configureBtn = new QPushButton(i18n("Con&figure..."), this); + configureBtn = new TQPushButton(i18n("Con&figure..."), this); bLayout->addWidget(configureBtn); bLayout->addStretch(); layout->addLayout(bLayout,1,3); @@ -95,7 +95,7 @@ DictChooser::DictChooser(KBabelDictBox*b, QStringList selected dictList.setAutoDelete(true); ModuleInfo *mi; - for(QStringList::Iterator it=selected.begin(); it!=selected.end(); + for(TQStringList::Iterator it=selected.begin(); it!=selected.end(); ++it) { for(mi = dictList.first(); mi != 0; mi = dictList.next()) @@ -122,17 +122,17 @@ DictChooser::DictChooser(KBabelDictBox*b, QStringList selected } - connect(selectedBox,SIGNAL(highlighted(int)), this - , SLOT(selectedMarked(int))); - connect(unselectedBox,SIGNAL(highlighted(int)), this - , SLOT(unselectedMarked(int))); + connect(selectedBox,TQT_SIGNAL(highlighted(int)), this + , TQT_SLOT(selectedMarked(int))); + connect(unselectedBox,TQT_SIGNAL(highlighted(int)), this + , TQT_SLOT(unselectedMarked(int))); - connect(selectBtn, SIGNAL(clicked()), this, SLOT(select())); - connect(unselectBtn, SIGNAL(clicked()), this, SLOT(unselect())); - connect(upBtn, SIGNAL(clicked()), this, SLOT(up())); - connect(downBtn, SIGNAL(clicked()), this, SLOT(down())); - connect(configureBtn,SIGNAL(clicked()), this - , SLOT(configureSelected())); + connect(selectBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(select())); + connect(unselectBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(unselect())); + connect(upBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(up())); + connect(downBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(down())); + connect(configureBtn,TQT_SIGNAL(clicked()), this + , TQT_SLOT(configureSelected())); selectedBox->installEventFilter(this); @@ -144,13 +144,13 @@ DictChooser::DictChooser(KBabelDictBox*b, QStringList selected } -QStringList DictChooser::selectedDicts() +TQStringList DictChooser::selectedDicts() { - QStringList selected; + TQStringList selected; for(int i = 0; i < (int)selectedBox->count(); i++) { - QString text = selectedBox->text(i); + TQString text = selectedBox->text(i); ModuleInfo *mi; for(mi = dictList.first(); mi!=0; mi = dictList.next()) @@ -192,7 +192,7 @@ void DictChooser::select() int i = unselectedBox->currentItem(); if(i >= 0) { - QString text = unselectedBox->text(i); + TQString text = unselectedBox->text(i); selectedBox->insertItem(text); unselectedBox->removeItem(i); @@ -214,7 +214,7 @@ void DictChooser::unselect() int i = selectedBox->currentItem(); if(i >= 0 && selectedBox->count() > 1) { - QString text = selectedBox->text(i); + TQString text = selectedBox->text(i); unselectedBox->insertItem(text); selectedBox->removeItem(i); @@ -236,7 +236,7 @@ void DictChooser::up() int i = selectedBox->currentItem(); if(i > 0) { - QString text = selectedBox->text(i); + TQString text = selectedBox->text(i); selectedBox->changeItem(selectedBox->text(i-1),i); selectedBox->changeItem(text,i-1); selectedBox->setSelected(i-1,true); @@ -249,7 +249,7 @@ void DictChooser::down() int i = selectedBox->currentItem(); if(i < (int)selectedBox->count()-1) { - QString text = selectedBox->text(i); + TQString text = selectedBox->text(i); selectedBox->changeItem(selectedBox->text(i+1),i); selectedBox->changeItem(text,i+1); selectedBox->setSelected(i+1,true); @@ -257,9 +257,9 @@ void DictChooser::down() } -bool DictChooser::eventFilter(QObject *object, QEvent *event) +bool DictChooser::eventFilter(TQObject *object, TQEvent *event) { - if(event->type() == QEvent::FocusIn) + if(event->type() == TQEvent::FocusIn) { if(object==selectedBox) { @@ -289,7 +289,7 @@ void DictChooser::configureSelected() { int ci = selectedBox->currentItem(); if( ci == -1 ) ci = 0; // there is always at least one item - QString module = selectedBox->text(ci); + TQString module = selectedBox->text(ci); ModuleInfo *mi; for(mi = dictList.first(); mi!=0; mi = dictList.next()) @@ -320,7 +320,7 @@ void DictChooser::restoreConfig() { kdDebug( KBABEL_SEARCH ) << "Cleanup" << endl; // cleanup - QDictIterator<KTempFile> it( tempConfig ); // See QDictIterator + TQDictIterator<KTempFile> it( tempConfig ); // See QDictIterator for( ; it.current(); ++it ) { KConfig config( it.current()->name() ); |