summaryrefslogtreecommitdiffstats
path: root/ksysv/ServiceDlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /ksysv/ServiceDlg.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-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 'ksysv/ServiceDlg.cpp')
-rw-r--r--ksysv/ServiceDlg.cpp32
1 files changed, 16 insertions, 16 deletions
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 <qlayout.h>
-#include <qlabel.h>
-#include <qfileinfo.h>
-#include <qcombobox.h>
-#include <qstring.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqfileinfo.h>
+#include <tqcombobox.h>
+#include <tqstring.h>
#include <kapplication.h>
#include <klocale.h>
@@ -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<KSVItem*> (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);
}