From aa3a1ca934bc541bddd3fa136a85f106f7da266e Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:25:18 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksysv/ServiceDlg.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'ksysv/ServiceDlg.cpp') diff --git a/ksysv/ServiceDlg.cpp b/ksysv/ServiceDlg.cpp index 0564028..4b7d4ef 100644 --- a/ksysv/ServiceDlg.cpp +++ b/ksysv/ServiceDlg.cpp @@ -12,11 +12,11 @@ * * ***************************************************************************/ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -27,22 +27,22 @@ #define MIN_SIZE(A) A->setMinimumSize(A->sizeHint()) -ServiceDlg::ServiceDlg (const QString& action, const QString& label, - QWidget* parent, const char* name) +ServiceDlg::ServiceDlg (const TQString& action, const TQString& label, + TQWidget* parent, const char* name) : KDialogBase (parent, name, false, action, Apply|Close, Apply, true) { - QWidget* page = new QWidget (this); + TQWidget* page = new TQWidget (this); - QBoxLayout* top = new QVBoxLayout (page, 0, spacingHint()); + TQBoxLayout* top = new TQVBoxLayout (page, 0, spacingHint()); - mServices = new QComboBox (false, page); - QLabel* desc = new QLabel(label, page); + mServices = new TQComboBox (false, page); + TQLabel* desc = new TQLabel(label, page); MIN_SIZE(desc); desc->setBuddy(mServices); MIN_SIZE(mServices); mServices->setMinimumWidth(mServices->minimumSize().width() * 2); - QBoxLayout* serv_layout = new QHBoxLayout(); + TQBoxLayout* serv_layout = new TQHBoxLayout(); top->addLayout (serv_layout); serv_layout->addWidget(desc); serv_layout->addWidget(mServices); @@ -73,13 +73,13 @@ void ServiceDlg::resetChooser(KSVDragList* list, bool edit) return; // initialize the combobox - for (QListViewItemIterator it (list); + for (TQListViewItemIterator it (list); it.current(); ++it) { const KSVItem* item = static_cast (it.current()); - QFileInfo info (item->filenameAndPath()); + TQFileInfo info (item->filenameAndPath()); if (edit) { @@ -100,14 +100,14 @@ void ServiceDlg::resetChooser(KSVDragList* list, bool edit) void ServiceDlg::show () { - QDialog::show (); + TQDialog::show (); emit display (true); } void ServiceDlg::hide () { - QDialog::hide (); + TQDialog::hide (); emit display (false); } -- cgit v1.2.1