diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:49:40 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:49:40 -0600 |
commit | 808e453c56036211f57482ed847d54aca01bba68 (patch) | |
tree | 75515d5768dea10d4fbe4cd772e0a89c1c4b3aa9 /kdict/sets.cpp | |
parent | cd9b9ed7fd0ac8a75106148254aa58e2e5c04863 (diff) | |
download | tdenetwork-808e453c56036211f57482ed847d54aca01bba68.tar.gz tdenetwork-808e453c56036211f57482ed847d54aca01bba68.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kdict/sets.cpp')
-rw-r--r-- | kdict/sets.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kdict/sets.cpp b/kdict/sets.cpp index fe3f2636..2d98efc5 100644 --- a/kdict/sets.cpp +++ b/kdict/sets.cpp @@ -14,7 +14,7 @@ ------------------------------------------------------------- */ #include <tqpushbutton.h> -#include <tqlayout.h> +#include <layout.h> #include <tqlabel.h> #include <tqcombobox.h> @@ -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->tqsizeHint().height()); + w_set->setFixedHeight(w_set->sizeHint().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->tqsizeHint()); + l->setMinimumSize(l->sizeHint()); 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->tqsizeHint()); + btn->setMinimumSize(btn->sizeHint()); 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->tqsizeHint()); + w_delete->setMinimumSize(w_delete->sizeHint()); 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->tqsizeHint()); + leftLabel->setMinimumSize(leftLabel->sizeHint()); 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->tqsizeHint()); + rightLabel->setMinimumSize(rightLabel->sizeHint()); subLayout2->addWidget(rightLabel,0,2); subLayout2->addMultiCellWidget(w_rightBox,1,6,2,2); @@ -264,8 +264,8 @@ void DbSetsDialog::activateSet(int num) w_set->clearEdit(); w_delete->setEnabled(false); w_save->setEnabled(false); - w_rightBox->tqrepaint(true); // Workaround for tqrepaint-bug - w_leftBox->tqrepaint(true); // Workaround for tqrepaint-bug + w_rightBox->repaint(true); // Workaround for repaint-bug + w_leftBox->repaint(true); // Workaround for repaint-bug } else { w_set->setCurrentItem(num); for (unsigned int i=0;i<global->serverDatabases.count();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->tqrepaint(true); // Workaround for tqrepaint-bug + w_rightBox->repaint(true); // Workaround for repaint-bug if (w_leftBox->count()==0) - w_leftBox->tqrepaint(true); // Workaround for tqrepaint-bug + w_leftBox->repaint(true); // Workaround for repaint-bug w_leftBox->clearSelection(); w_leftBox->centerCurrentItem(); w_rightBox->clearSelection(); |