diff options
Diffstat (limited to 'kvoctrain/kvoctrain/common-dialogs/pasteoptions.cpp')
-rw-r--r-- | kvoctrain/kvoctrain/common-dialogs/pasteoptions.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kvoctrain/kvoctrain/common-dialogs/pasteoptions.cpp b/kvoctrain/kvoctrain/common-dialogs/pasteoptions.cpp index cbfcadf4..ca79f2d5 100644 --- a/kvoctrain/kvoctrain/common-dialogs/pasteoptions.cpp +++ b/kvoctrain/kvoctrain/common-dialogs/pasteoptions.cpp @@ -23,10 +23,10 @@ * * ***************************************************************************/ -#include <qpushbutton.h> -#include <qlistbox.h> -#include <qcheckbox.h> -#include <qstringlist.h> +#include <tqpushbutton.h> +#include <tqlistbox.h> +#include <tqcheckbox.h> +#include <tqstringlist.h> #include <kcombobox.h> #include <klocale.h> @@ -50,7 +50,7 @@ static const char *separator_id[] = 0 }; -PasteOptions::PasteOptions(LangSet & langset, kvoctrainDoc * doc, QWidget* parent, const char* name, WFlags fl) +PasteOptions::PasteOptions(LangSet & langset, kvoctrainDoc * doc, TQWidget* parent, const char* name, WFlags fl) : PasteOptionsBase(parent,name,fl), m_langSet(langset) { OrderList->setEnabled(!kcfg_UseCurrent->isChecked()); @@ -58,13 +58,13 @@ PasteOptions::PasteOptions(LangSet & langset, kvoctrainDoc * doc, QWidget* paren SkipButton->setEnabled(!kcfg_UseCurrent->isChecked()); DownButton->setEnabled(!kcfg_UseCurrent->isChecked()); - connect(OrderList, SIGNAL(selectionChanged()), this, SLOT(syncButtons())); - connect(DownButton, SIGNAL(clicked()), this, SLOT(slotDownButtonClicked())); - connect(SkipButton, SIGNAL(clicked()), this, SLOT(slotSkipButtonClicked())); - connect(UpButton, SIGNAL(clicked()), this, SLOT(slotUpButtonClicked())); + connect(OrderList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(syncButtons())); + connect(DownButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDownButtonClicked())); + connect(SkipButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSkipButtonClicked())); + connect(UpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotUpButtonClicked())); - connect(SeparatorCombo, SIGNAL(activated(int)), this, SLOT(slotSeparatorComboActivated(int))); - connect(kcfg_UseCurrent, SIGNAL(toggled(bool)), this, SLOT(slotUseCurrentDocToggled(bool))); + connect(SeparatorCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSeparatorComboActivated(int))); + connect(kcfg_UseCurrent, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotUseCurrentDocToggled(bool))); m_doc = doc; fillWidgets(); @@ -83,11 +83,11 @@ void PasteOptions::fillWidgets() SeparatorCombo->insertItem(i18n(" : ")); SeparatorCombo->insertItem(i18n(" :: ")); - QStringList sl = Prefs::pasteOrder(); + TQStringList sl = Prefs::pasteOrder(); OrderList->clear(); for (int i = 0; i < (int) sl.count(); i++) { - QString codename = m_langSet.findLongId(sl[i]); + TQString codename = m_langSet.findLongId(sl[i]); if (codename.isEmpty()) codename = sl[i]; OrderList->insertItem(codename); @@ -141,7 +141,7 @@ void PasteOptions::slotUpButtonClicked() if (OrderList->currentItem() > 0 && (int) OrderList->count() > 1) { int pos = OrderList->currentItem(); - QString item = OrderList->text(pos); + TQString item = OrderList->text(pos); OrderList->removeItem(pos); OrderList->insertItem(item, pos-1); OrderList->setCurrentItem(pos-1); @@ -164,7 +164,7 @@ void PasteOptions::slotDownButtonClicked() if ((int)OrderList->currentItem() < (int) OrderList->count()-1 && (int) OrderList->count() > 1) { int pos = OrderList->currentItem(); - QString item = OrderList->text(pos); + TQString item = OrderList->text(pos); OrderList->removeItem(pos); OrderList->insertItem(item, pos+1); OrderList->setCurrentItem(pos+1); @@ -206,7 +206,7 @@ bool PasteOptions::hasChanged() result = ((separator_id[SeparatorCombo->currentItem()] != Prefs::separator())); if (result) return true; - QStringList ol, pl; + TQStringList ol, pl; pl = Prefs::pasteOrder(); ol = preparePasteOrderList(); result = (pl.count() != ol.count()); @@ -237,7 +237,7 @@ void PasteOptions::slotSyncPasteOrderList() { for (int j = (int) OrderList->count()-1; j > 1; j--) { - QString comp = OrderList->text(j); + TQString comp = OrderList->text(j); for (int i = (int) j-1; i >=0; i--) { if (OrderList->text(i) == comp && !OrderList->text(i).isEmpty()) @@ -287,10 +287,10 @@ void PasteOptions::slotSyncPasteOrderList() } } -QStringList PasteOptions::preparePasteOrderList() +TQStringList PasteOptions::preparePasteOrderList() { slotSyncPasteOrderList(); - QStringList sl; + TQStringList sl; // skip "skip" elements at tail int i; for (i = (int) OrderList->count()-1; i >= 0 && OrderList->text(i).isEmpty(); i--); @@ -298,7 +298,7 @@ QStringList PasteOptions::preparePasteOrderList() // insert language codes and "skips" between them for ( /**/; i >= 0; i--) { - QString code = m_langSet.findShortId(OrderList->text(i)); + TQString code = m_langSet.findShortId(OrderList->text(i)); if (code.isEmpty()) code = OrderList->text(i); // no longId previously available if (OrderList->text(i).isEmpty()) |