diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:45:05 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:45:05 -0600 |
commit | d1248617107f659af9d03cf1ef6d783571a0cba8 (patch) | |
tree | 06ce6d250704f2cddca023e81b63f25b19c9aa48 /lilo-config/kde-qt-common/EditWidget.cpp | |
parent | 72fee035e994371467475e062b46287d68fa3f57 (diff) | |
download | tdeadmin-d1248617107f659af9d03cf1ef6d783571a0cba8.tar.gz tdeadmin-d1248617107f659af9d03cf1ef6d783571a0cba8.zip |
Rename a number of old tq methods that are no longer tq specific
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 3c80d2a..3b096cd 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->tqminimumSizeHint()); + select->resize(select->minimumSizeHint()); setStretchFactor(select, 0); } else select=0; @@ -53,29 +53,29 @@ void EditWidget::selectFileClicked() if(!filename.isEmpty()) line->setText(filename); } -TQSize EditWidget::tqsizeHint() const +TQSize EditWidget::sizeHint() const { - 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(); + 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(); if(select!=0) { - w+=SPACE_INSIDE+select->tqsizeHint().width(); - if(h<select->tqsizeHint().height()) - h=select->tqsizeHint().height(); + w+=SPACE_INSIDE+select->sizeHint().width(); + if(h<select->sizeHint().height()) + h=select->sizeHint().height(); } return TQSize(w, h); } -TQSize EditWidget::tqminimumSizeHint() const +TQSize EditWidget::minimumSizeHint() const { - 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(); + 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(); if(select!=0) { - w+=SPACE_INSIDE+select->tqminimumSizeHint().width(); - if(h<select->tqminimumSizeHint().height()) - h=select->tqminimumSizeHint().height(); + w+=SPACE_INSIDE+select->minimumSizeHint().width(); + if(h<select->minimumSizeHint().height()) + h=select->minimumSizeHint().height(); } return TQSize(w, h); } |