diff options
Diffstat (limited to 'kbabel/kbabeldict/kbabeldictview.cpp')
-rw-r--r-- | kbabel/kbabeldict/kbabeldictview.cpp | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/kbabel/kbabeldict/kbabeldictview.cpp b/kbabel/kbabeldict/kbabeldictview.cpp index 26afd981..b5be8399 100644 --- a/kbabel/kbabeldict/kbabeldictview.cpp +++ b/kbabel/kbabeldict/kbabeldictview.cpp @@ -37,17 +37,17 @@ #include "searchengine.h" -#include <qcheckbox.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qptrlist.h> -#include <qpushbutton.h> -#include <qstringlist.h> -#include <qwidgetstack.h> -#include <qsplitter.h> -#include <qvbox.h> +#include <tqcheckbox.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqptrlist.h> +#include <tqpushbutton.h> +#include <tqstringlist.h> +#include <tqwidgetstack.h> +#include <tqsplitter.h> +#include <tqvbox.h> #include <kcombobox.h> #include <kconfig.h> @@ -64,37 +64,37 @@ * Constructs a KBabelDictView which is a child of 'parent', with the * name 'name' and widget flags set to 'f' */ -KBabelDictView::KBabelDictView( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +KBabelDictView::KBabelDictView( TQWidget* parent, const char* name, WFlags fl ) + : TQWidget( parent, name, fl ) { - QVBoxLayout *mainLayout = new QVBoxLayout(this); + TQVBoxLayout *mainLayout = new TQVBoxLayout(this); mainLayout->setSpacing(KDialog::spacingHint()); mainLayout->setMargin(KDialog::marginHint()); - splitter = new QSplitter(this); + splitter = new TQSplitter(this); mainLayout->addWidget(splitter); - QWidget *w = new QWidget(splitter); - QVBoxLayout *wLayout= new QVBoxLayout(w); + TQWidget *w = new TQWidget(splitter); + TQVBoxLayout *wLayout= new TQVBoxLayout(w); wLayout->setSpacing(KDialog::spacingHint()); wLayout->setMargin(KDialog::marginHint()); - QHBoxLayout *hbox = new QHBoxLayout(wLayout); - QLabel *label = new QLabel(i18n("Search in module:"), w); + TQHBoxLayout *hbox = new TQHBoxLayout(wLayout); + TQLabel *label = new TQLabel(i18n("Search in module:"), w); hbox->addWidget(label); moduleCombo = new KComboBox(w); hbox->addWidget(moduleCombo); - QWidget *temp = new QWidget(w); + TQWidget *temp = new TQWidget(w); hbox->addWidget(temp); hbox->setStretchFactor(temp,2); - editButton = new QPushButton(i18n("&Edit"),w); + editButton = new TQPushButton(i18n("&Edit"),w); editButton->setEnabled(false); hbox->addWidget(editButton); // added a button "clear search" here - hbox = new QHBoxLayout(wLayout); - QPushButton* clearButton = new QPushButton(w); + hbox = new TQHBoxLayout(wLayout); + TQPushButton* clearButton = new TQPushButton(w); clearButton->setFlat(true); clearButton->setPixmap(SmallIcon("locationbar_erase")); hbox->addWidget(clearButton); @@ -102,13 +102,13 @@ KBabelDictView::KBabelDictView( QWidget* parent, const char* name, WFlags fl ) textEdit->setFocus(); hbox->addWidget(textEdit); - hbox = new QHBoxLayout(wLayout); - startButton = new QPushButton(i18n("&Start Search"),w); + hbox = new TQHBoxLayout(wLayout); + startButton = new TQPushButton(i18n("&Start Search"),w); hbox->addWidget(startButton); - inTransButton = new QCheckBox(i18n("Sea&rch in translations"),w); + inTransButton = new TQCheckBox(i18n("Sea&rch in translations"),w); hbox->addWidget(inTransButton); hbox->addStretch(1); - stopButton = new QPushButton(i18n("S&top"),w); + stopButton = new TQPushButton(i18n("S&top"),w); stopButton->setEnabled(false); hbox->addWidget(stopButton); @@ -117,15 +117,15 @@ KBabelDictView::KBabelDictView( QWidget* parent, const char* name, WFlags fl ) dictBox = new KBabelDictBox(w,"kbabeldictbox"); wLayout->addWidget(dictBox); - prefWidget = new QWidget(splitter); - QVBoxLayout *tempLayout= new QVBoxLayout(prefWidget); + prefWidget = new TQWidget(splitter); + TQVBoxLayout *tempLayout= new TQVBoxLayout(prefWidget); tempLayout->setSpacing(KDialog::spacingHint()); tempLayout->setMargin(KDialog::marginHint()); - label = new QLabel(i18n("Settings:"),prefWidget); + label = new TQLabel(i18n("Settings:"),prefWidget); tempLayout->addWidget(label); - prefStack = new QWidgetStack(prefWidget); + prefStack = new TQWidgetStack(prefWidget); tempLayout->addWidget(prefStack); tempLayout->addStretch(1); @@ -133,10 +133,10 @@ KBabelDictView::KBabelDictView( QWidget* parent, const char* name, WFlags fl ) dictBox->readSettings(config); dictBox->setAutoUpdateOptions(true); - QStringList modules = dictBox->moduleNames(); + TQStringList modules = dictBox->moduleNames(); moduleCombo->insertStringList(modules); - QPtrList<PrefWidget> prefs = dictBox->modPrefWidgets(prefStack); + TQPtrList<PrefWidget> prefs = dictBox->modPrefWidgets(prefStack); prefs.setAutoDelete(false); PrefWidget *p; @@ -152,31 +152,31 @@ KBabelDictView::KBabelDictView( QWidget* parent, const char* name, WFlags fl ) moduleCombo->setCurrentItem(active); - QHBox *h = new QHBox(this); + TQHBox *h = new TQHBox(this); h->setSpacing(KDialog::spacingHint()); mainLayout->addWidget(h); - progressLabel = new QLabel(h); + progressLabel = new TQLabel(h); progressBar = new KProgress(h); - connect(textEdit,SIGNAL(returnPressed()),startButton,SLOT(animateClick())); - connect(startButton,SIGNAL(clicked()),this, SLOT(startSearch())); - connect(stopButton, SIGNAL(clicked()), dictBox,SLOT(slotStopSearch())); - connect(editButton, SIGNAL(clicked()), dictBox, SLOT(edit())); - connect(dictBox, SIGNAL(searchStarted()), this, SLOT(searchStarted())); - connect(dictBox, SIGNAL(searchStopped()), this, SLOT(searchStopped())); - connect(dictBox, SIGNAL(progressed(int)), progressBar, SLOT(setProgress(int))); - connect(dictBox, SIGNAL(activeModuleChanged(bool)) - , editButton, SLOT(setEnabled(bool))); + connect(textEdit,TQT_SIGNAL(returnPressed()),startButton,TQT_SLOT(animateClick())); + connect(startButton,TQT_SIGNAL(clicked()),this, TQT_SLOT(startSearch())); + connect(stopButton, TQT_SIGNAL(clicked()), dictBox,TQT_SLOT(slotStopSearch())); + connect(editButton, TQT_SIGNAL(clicked()), dictBox, TQT_SLOT(edit())); + connect(dictBox, TQT_SIGNAL(searchStarted()), this, TQT_SLOT(searchStarted())); + connect(dictBox, TQT_SIGNAL(searchStopped()), this, TQT_SLOT(searchStopped())); + connect(dictBox, TQT_SIGNAL(progressed(int)), progressBar, TQT_SLOT(setProgress(int))); + connect(dictBox, TQT_SIGNAL(activeModuleChanged(bool)) + , editButton, TQT_SLOT(setEnabled(bool))); - connect(dictBox, SIGNAL(progressStarts(const QString&)) - , this, SLOT(progressStarted(const QString&))); - connect(dictBox, SIGNAL(progressEnds()), this, SLOT(progressStopped())); + connect(dictBox, TQT_SIGNAL(progressStarts(const TQString&)) + , this, TQT_SLOT(progressStarted(const TQString&))); + connect(dictBox, TQT_SIGNAL(progressEnds()), this, TQT_SLOT(progressStopped())); - connect(moduleCombo, SIGNAL(activated(int)), - dictBox, SLOT(setActiveModule(int))); - connect(dictBox, SIGNAL(activeModuleChanged(int)) - , this, SLOT(switchModule(int))); - connect(clearButton, SIGNAL(clicked()), this, SLOT(slotClearSearch())); + connect(moduleCombo, TQT_SIGNAL(activated(int)), + dictBox, TQT_SLOT(setActiveModule(int))); + connect(dictBox, TQT_SIGNAL(activeModuleChanged(int)) + , this, TQT_SLOT(switchModule(int))); + connect(clearButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClearSearch())); } /* @@ -194,7 +194,7 @@ KBabelDictView::~KBabelDictView() */ void KBabelDictView::startSearch() { - QString text = textEdit->text(); + TQString text = textEdit->text(); if(!text.isEmpty()) { @@ -219,7 +219,7 @@ void KBabelDictView::progressStopped() stopButton->setEnabled(false); } -void KBabelDictView::progressStarted(const QString& msg) +void KBabelDictView::progressStarted(const TQString& msg) { progressLabel->setText(msg); startButton->setEnabled(false); |