diff options
Diffstat (limited to 'kdict/sets.cpp')
-rw-r--r-- | kdict/sets.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kdict/sets.cpp b/kdict/sets.cpp index 51dd7eb6..a7621b35 100644 --- a/kdict/sets.cpp +++ b/kdict/sets.cpp @@ -29,8 +29,8 @@ //********* DbSetsDialog ****************************************** -DbSetsDialog::DbSetsDialog(TQWidget *parent, const char *name) - : KDialogBase(Plain, i18n("Database Sets"),Close | Help, Close, parent, name, false, true) +DbSetsDialog::DbSetsDialog(TQWidget *tqparent, const char *name) + : KDialogBase(Plain, i18n("Database Sets"),Close | Help, Close, tqparent, name, false, true) { TQFrame* page=plainPage(); @@ -44,12 +44,12 @@ DbSetsDialog::DbSetsDialog(TQWidget *parent, const char *name) topLayout->addLayout(subLayout1,0); w_set = new TQComboBox(true,page); - w_set->setFixedHeight(w_set->sizeHint().height()); + w_set->setFixedHeight(w_set->tqsizeHint().height()); w_set->setInsertionPolicy (TQComboBox::NoInsertion); w_set->insertStringList(sets); 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()); + l->setMinimumSize(l->tqsizeHint()); subLayout1->addWidget(l,0); subLayout1->addWidget(w_set,1); @@ -60,12 +60,12 @@ DbSetsDialog::DbSetsDialog(TQWidget *parent, const char *name) subLayout1->addWidget(w_save,0); TQPushButton *btn = new TQPushButton(i18n("&New"),page); - btn->setMinimumSize(btn->sizeHint()); + btn->setMinimumSize(btn->tqsizeHint()); connect(btn, TQT_SIGNAL(clicked()),this, TQT_SLOT(newPressed())); subLayout1->addWidget(btn,0); w_delete = new TQPushButton(i18n("&Delete"),page); - w_delete->setMinimumSize(w_delete->sizeHint()); + w_delete->setMinimumSize(w_delete->tqsizeHint()); connect(w_delete, TQT_SIGNAL(clicked()),this, TQT_SLOT(deletePressed())); subLayout1->addWidget(w_delete,0); @@ -83,7 +83,7 @@ DbSetsDialog::DbSetsDialog(TQWidget *parent, const char *name) 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()); + leftLabel->setMinimumSize(leftLabel->tqsizeHint()); subLayout2->addWidget(leftLabel,0,0); subLayout2->addMultiCellWidget(w_leftBox,1,6,0,0); @@ -111,7 +111,7 @@ DbSetsDialog::DbSetsDialog(TQWidget *parent, const char *name) 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()); + rightLabel->setMinimumSize(rightLabel->tqsizeHint()); subLayout2->addWidget(rightLabel,0,2); subLayout2->addMultiCellWidget(w_rightBox,1,6,2,2); @@ -264,12 +264,12 @@ void DbSetsDialog::activateSet(int num) w_set->clearEdit(); w_delete->setEnabled(false); w_save->setEnabled(false); - w_rightBox->repaint(true); // Workaround for repaint-bug - w_leftBox->repaint(true); // Workaround for repaint-bug + w_rightBox->tqrepaint(true); // Workaround for tqrepaint-bug + w_leftBox->tqrepaint(true); // Workaround for tqrepaint-bug } else { w_set->setCurrentItem(num); for (unsigned int i=0;i<global->serverDatabases.count();i++) - if (global->databaseSets.at(num)->findIndex(global->serverDatabases[i])>0) + if (global->databaseSets.at(num)->tqfindIndex(global->serverDatabases[i])>0) w_leftBox->insertItem(global->serverDatabases[i]); else w_rightBox->insertItem(global->serverDatabases[i]); @@ -278,9 +278,9 @@ void DbSetsDialog::activateSet(int num) w_delete->setEnabled(true); w_save->setEnabled(true); if (w_rightBox->count()==0) - w_rightBox->repaint(true); // Workaround for repaint-bug + w_rightBox->tqrepaint(true); // Workaround for tqrepaint-bug if (w_leftBox->count()==0) - w_leftBox->repaint(true); // Workaround for repaint-bug + w_leftBox->tqrepaint(true); // Workaround for tqrepaint-bug w_leftBox->clearSelection(); w_leftBox->centerCurrentItem(); w_rightBox->clearSelection(); |