diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
commit | aa3a1ca934bc541bddd3fa136a85f106f7da266e (patch) | |
tree | 9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /lilo-config/kde-qt-common/EditWidget.cpp | |
parent | b10cf7066791a2f362495890cd50c984e8025412 (diff) | |
download | tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lilo-config/kde-qt-common/EditWidget.cpp')
-rw-r--r-- | lilo-config/kde-qt-common/EditWidget.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lilo-config/kde-qt-common/EditWidget.cpp b/lilo-config/kde-qt-common/EditWidget.cpp index fad957a..292e016 100644 --- a/lilo-config/kde-qt-common/EditWidget.cpp +++ b/lilo-config/kde-qt-common/EditWidget.cpp @@ -28,20 +28,20 @@ */ #include "EditWidget.moc" #include "ui.h" -EditWidget::EditWidget(QString const label, QString const text, bool isFile, QWidget *parent, const char *name, WFlags f, bool allowLines):QHBox(allowLines, parent, name, f) +EditWidget::EditWidget(TQString const label, TQString const text, bool isFile, TQWidget *parent, const char *name, WFlags f, bool allowLines):TQHBox(allowLines, parent, name, f) { setMargin(SPACE_MARGIN); setSpacing(SPACE_INSIDE); - lbl=new QLabel(label, this); + lbl=new TQLabel(label, this); setStretchFactor(lbl, 0); - line=new QLineEdit(text, this); + line=new TQLineEdit(text, this); setStretchFactor(line, 1); - connect(line, SIGNAL(textChanged(const QString &)), SIGNAL(textChanged(const QString &))); - connect(line, SIGNAL(returnPressed()), SIGNAL(returnPressed())); + connect(line, TQT_SIGNAL(textChanged(const TQString &)), TQT_SIGNAL(textChanged(const TQString &))); + connect(line, TQT_SIGNAL(returnPressed()), TQT_SIGNAL(returnPressed())); lbl->setBuddy(line); if(isFile) { - select=new QPushButton(_("Select..."), this); - connect(select, SIGNAL(clicked()), SLOT(selectFileClicked())); + select=new TQPushButton(_("Select..."), this); + connect(select, TQT_SIGNAL(clicked()), TQT_SLOT(selectFileClicked())); select->resize(select->minimumSizeHint()); setStretchFactor(select, 0); } else @@ -49,11 +49,11 @@ EditWidget::EditWidget(QString const label, QString const text, bool isFile, QWi } void EditWidget::selectFileClicked() { - QString filename=FileDlg::getOpenFileName(QString::null, QString::null, this); + TQString filename=FileDlg::getOpenFileName(TQString::null, TQString::null, this); if(!filename.isEmpty()) line->setText(filename); } -QSize EditWidget::sizeHint() const +TQSize EditWidget::sizeHint() const { int w=2*SPACE_MARGIN+lbl->sizeHint().width()+SPACE_INSIDE+line->sizeHint().width(); int h=lbl->sizeHint().height(); @@ -64,9 +64,9 @@ QSize EditWidget::sizeHint() const if(h<select->sizeHint().height()) h=select->sizeHint().height(); } - return QSize(w, h); + return TQSize(w, h); } -QSize EditWidget::minimumSizeHint() const +TQSize EditWidget::minimumSizeHint() const { int w=2*SPACE_MARGIN+lbl->minimumSizeHint().width()+SPACE_INSIDE+line->minimumSizeHint().width(); int h=lbl->minimumSizeHint().height(); @@ -77,5 +77,5 @@ QSize EditWidget::minimumSizeHint() const if(h<select->minimumSizeHint().height()) h=select->minimumSizeHint().height(); } - return QSize(w, h); + return TQSize(w, h); } |