summaryrefslogtreecommitdiffstats
path: root/lilo-config/kde-qt-common/EditWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lilo-config/kde-qt-common/EditWidget.cpp')
-rw-r--r--lilo-config/kde-qt-common/EditWidget.cpp34
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);
}