summaryrefslogtreecommitdiffstats
path: root/kdict/sets.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kdict/sets.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdict/sets.cpp')
-rw-r--r--kdict/sets.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/kdict/sets.cpp b/kdict/sets.cpp
index 0a252cec..513106da 100644
--- a/kdict/sets.cpp
+++ b/kdict/sets.cpp
@@ -13,10 +13,10 @@
------------------------------------------------------------- */
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcombobox.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
#include <kiconloader.h>
#include <kseparator.h>
@@ -29,44 +29,44 @@
//********* DbSetsDialog ******************************************
-DbSetsDialog::DbSetsDialog(QWidget *parent, const char *name)
+DbSetsDialog::DbSetsDialog(TQWidget *parent, const char *name)
: KDialogBase(Plain, i18n("Database Sets"),Close | Help, Close, parent, name, false, true)
{
- QFrame* page=plainPage();
+ TQFrame* page=plainPage();
- QStringList sets;
+ TQStringList sets;
for(unsigned int i=1;i<global->databaseSets.count()+1;i++)
sets.append(global->databases[i]);
- QVBoxLayout * topLayout = new QVBoxLayout(page, 0, 0);
+ TQVBoxLayout * topLayout = new TQVBoxLayout(page, 0, 0);
- QHBoxLayout * subLayout1 = new QHBoxLayout(5);
+ TQHBoxLayout * subLayout1 = new TQHBoxLayout(5);
topLayout->addLayout(subLayout1,0);
- w_set = new QComboBox(true,page);
+ w_set = new TQComboBox(true,page);
w_set->setFixedHeight(w_set->sizeHint().height());
- w_set->setInsertionPolicy (QComboBox::NoInsertion);
+ w_set->setInsertionPolicy (TQComboBox::NoInsertion);
w_set->insertStringList(sets);
- connect(w_set, SIGNAL(activated(int)),this, SLOT(activateSet(int)));
- QLabel *l = new QLabel(w_set, i18n("&Set:"),page);
+ connect(w_set, TQT_SIGNAL(activated(int)),this, TQT_SLOT(activateSet(int)));
+ TQLabel *l = new TQLabel(w_set, i18n("&Set:"),page);
l->setMinimumSize(l->sizeHint());
subLayout1->addWidget(l,0);
subLayout1->addWidget(w_set,1);
subLayout1->addSpacing(8);
- w_save = new QPushButton(i18n("S&ave"),page);
- connect(w_save,SIGNAL(clicked()),this, SLOT(transferSet()));
+ w_save = new TQPushButton(i18n("S&ave"),page);
+ connect(w_save,TQT_SIGNAL(clicked()),this, TQT_SLOT(transferSet()));
subLayout1->addWidget(w_save,0);
- QPushButton *btn = new QPushButton(i18n("&New"),page);
+ TQPushButton *btn = new TQPushButton(i18n("&New"),page);
btn->setMinimumSize(btn->sizeHint());
- connect(btn, SIGNAL(clicked()),this, SLOT(newPressed()));
+ connect(btn, TQT_SIGNAL(clicked()),this, TQT_SLOT(newPressed()));
subLayout1->addWidget(btn,0);
- w_delete = new QPushButton(i18n("&Delete"),page);
+ w_delete = new TQPushButton(i18n("&Delete"),page);
w_delete->setMinimumSize(w_delete->sizeHint());
- connect(w_delete, SIGNAL(clicked()),this, SLOT(deletePressed()));
+ connect(w_delete, TQT_SIGNAL(clicked()),this, TQT_SLOT(deletePressed()));
subLayout1->addWidget(w_delete,0);
topLayout->addSpacing(8);
@@ -76,41 +76,41 @@ DbSetsDialog::DbSetsDialog(QWidget *parent, const char *name)
topLayout->addSpacing(8);
- QGridLayout * subLayout2 = new QGridLayout(7,3,6);
+ TQGridLayout * subLayout2 = new TQGridLayout(7,3,6);
topLayout->addLayout(subLayout2,1);
- w_leftBox = new QListBox(page);
- connect(w_leftBox, SIGNAL(selected(int)),this, SLOT(leftSelected(int)));
- connect(w_leftBox, SIGNAL(highlighted(int)),this, SLOT(leftHighlighted(int)));
- QLabel *leftLabel = new QLabel(w_leftBox, i18n("S&elected databases:"),page);
+ w_leftBox = new TQListBox(page);
+ connect(w_leftBox, TQT_SIGNAL(selected(int)),this, TQT_SLOT(leftSelected(int)));
+ connect(w_leftBox, TQT_SIGNAL(highlighted(int)),this, TQT_SLOT(leftHighlighted(int)));
+ TQLabel *leftLabel = new TQLabel(w_leftBox, i18n("S&elected databases:"),page);
leftLabel->setMinimumSize(leftLabel->sizeHint());
subLayout2->addWidget(leftLabel,0,0);
subLayout2->addMultiCellWidget(w_leftBox,1,6,0,0);
- w_allLeft = new QPushButton(page);
+ w_allLeft = new TQPushButton(page);
w_allLeft->setIconSet(BarIconSet("2leftarrow"));
- connect(w_allLeft, SIGNAL(clicked()),this, SLOT(allLeftPressed()));
+ connect(w_allLeft, TQT_SIGNAL(clicked()),this, TQT_SLOT(allLeftPressed()));
subLayout2->addWidget(w_allLeft,2,1);
- w_left = new QPushButton(page);
+ w_left = new TQPushButton(page);
w_left->setIconSet(BarIconSet("1leftarrow"));
- connect(w_left, SIGNAL(clicked()),this, SLOT(leftPressed()));
+ connect(w_left, TQT_SIGNAL(clicked()),this, TQT_SLOT(leftPressed()));
subLayout2->addWidget(w_left,3,1);
- w_right = new QPushButton(page);
+ w_right = new TQPushButton(page);
w_right->setIconSet(BarIconSet("1rightarrow"));
- connect(w_right, SIGNAL(clicked()),this, SLOT(rightPressed()));
+ connect(w_right, TQT_SIGNAL(clicked()),this, TQT_SLOT(rightPressed()));
subLayout2->addWidget(w_right,4,1);
- w_allRight = new QPushButton(page);
+ w_allRight = new TQPushButton(page);
w_allRight->setIconSet(BarIconSet("2rightarrow"));
- connect(w_allRight, SIGNAL(clicked()),this, SLOT(allRightPressed()));
+ connect(w_allRight, TQT_SIGNAL(clicked()),this, TQT_SLOT(allRightPressed()));
subLayout2->addWidget(w_allRight,5,1);
- w_rightBox = new QListBox(page);
- connect(w_rightBox, SIGNAL(selected(int)),this, SLOT(rightSelected(int)));
- connect(w_rightBox, SIGNAL(highlighted(int)),this, SLOT(rightHighlighted(int)));
- QLabel *rightLabel = new QLabel(w_rightBox, i18n("A&vailable databases:"),page);
+ w_rightBox = new TQListBox(page);
+ connect(w_rightBox, TQT_SIGNAL(selected(int)),this, TQT_SLOT(rightSelected(int)));
+ connect(w_rightBox, TQT_SIGNAL(highlighted(int)),this, TQT_SLOT(rightHighlighted(int)));
+ TQLabel *rightLabel = new TQLabel(w_rightBox, i18n("A&vailable databases:"),page);
rightLabel->setMinimumSize(rightLabel->sizeHint());
subLayout2->addWidget(rightLabel,0,2);
subLayout2->addMultiCellWidget(w_rightBox,1,6,2,2);
@@ -135,7 +135,7 @@ DbSetsDialog::DbSetsDialog(QWidget *parent, const char *name)
}
-void DbSetsDialog::hideEvent(QHideEvent *)
+void DbSetsDialog::hideEvent(TQHideEvent *)
{
global->setsSize = size();
emit(dialogClosed());
@@ -144,14 +144,14 @@ void DbSetsDialog::hideEvent(QHideEvent *)
void DbSetsDialog::newPressed()
{
- QStringList *temp = new QStringList;
+ TQStringList *temp = new QStringList;
temp->append(i18n("New Set"));
global->databaseSets.append(temp);
global->databases.insert(global->databases.at(global->databaseSets.count()),i18n("New Set"));
if (global->currentDatabase >= global->databaseSets.count())
global->currentDatabase++;
- QStringList sets; // reread sets, because w_sets internal list is not correct in all cases
+ TQStringList sets; // reread sets, because w_sets internal list is not correct in all cases
for(unsigned int i=1;i<global->databaseSets.count()+1;i++)
sets.append(global->databases[i]);
w_set->clear();