diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:58:15 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:58:15 -0600 |
commit | 377fa3a2775cdb3194315bb83e21744dc7c97bbf (patch) | |
tree | b6f515484589d67271adb168a1ead39f1c98493d /lilo-config/kde-qt-common/EditWidget.cpp | |
parent | d1248617107f659af9d03cf1ef6d783571a0cba8 (diff) | |
download | tdeadmin-377fa3a2775cdb3194315bb83e21744dc7c97bbf.tar.gz tdeadmin-377fa3a2775cdb3194315bb83e21744dc7c97bbf.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit d1248617107f659af9d03cf1ef6d783571a0cba8.
Diffstat (limited to 'lilo-config/kde-qt-common/EditWidget.cpp')
-rw-r--r-- | lilo-config/kde-qt-common/EditWidget.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lilo-config/kde-qt-common/EditWidget.cpp b/lilo-config/kde-qt-common/EditWidget.cpp index 3b096cd..3c80d2a 100644 --- a/lilo-config/kde-qt-common/EditWidget.cpp +++ b/lilo-config/kde-qt-common/EditWidget.cpp @@ -42,7 +42,7 @@ EditWidget::EditWidget(TQString const label, TQString const text, bool isFile, T if(isFile) { select=new TQPushButton(_("Select..."), this); connect(select, TQT_SIGNAL(clicked()), TQT_SLOT(selectFileClicked())); - select->resize(select->minimumSizeHint()); + select->resize(select->tqminimumSizeHint()); setStretchFactor(select, 0); } else select=0; @@ -53,29 +53,29 @@ void EditWidget::selectFileClicked() if(!filename.isEmpty()) line->setText(filename); } -TQSize EditWidget::sizeHint() const +TQSize EditWidget::tqsizeHint() const { - int w=2*SPACE_MARGIN+lbl->sizeHint().width()+SPACE_INSIDE+line->sizeHint().width(); - int h=lbl->sizeHint().height(); - if(h<line->sizeHint().height()) - h=line->sizeHint().height(); + int w=2*SPACE_MARGIN+lbl->tqsizeHint().width()+SPACE_INSIDE+line->tqsizeHint().width(); + int h=lbl->tqsizeHint().height(); + if(h<line->tqsizeHint().height()) + h=line->tqsizeHint().height(); if(select!=0) { - w+=SPACE_INSIDE+select->sizeHint().width(); - if(h<select->sizeHint().height()) - h=select->sizeHint().height(); + w+=SPACE_INSIDE+select->tqsizeHint().width(); + if(h<select->tqsizeHint().height()) + h=select->tqsizeHint().height(); } return TQSize(w, h); } -TQSize EditWidget::minimumSizeHint() const +TQSize EditWidget::tqminimumSizeHint() const { - int w=2*SPACE_MARGIN+lbl->minimumSizeHint().width()+SPACE_INSIDE+line->minimumSizeHint().width(); - int h=lbl->minimumSizeHint().height(); - if(h<line->minimumSizeHint().height()) - h=line->minimumSizeHint().height(); + int w=2*SPACE_MARGIN+lbl->tqminimumSizeHint().width()+SPACE_INSIDE+line->tqminimumSizeHint().width(); + int h=lbl->tqminimumSizeHint().height(); + if(h<line->tqminimumSizeHint().height()) + h=line->tqminimumSizeHint().height(); if(select!=0) { - w+=SPACE_INSIDE+select->minimumSizeHint().width(); - if(h<select->minimumSizeHint().height()) - h=select->minimumSizeHint().height(); + w+=SPACE_INSIDE+select->tqminimumSizeHint().width(); + if(h<select->tqminimumSizeHint().height()) + h=select->tqminimumSizeHint().height(); } return TQSize(w, h); } |