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 /ksysv/Properties.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 'ksysv/Properties.cpp')
-rw-r--r-- | ksysv/Properties.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/ksysv/Properties.cpp b/ksysv/Properties.cpp index 7379b74..62f4a65 100644 --- a/ksysv/Properties.cpp +++ b/ksysv/Properties.cpp @@ -1,13 +1,13 @@ // (c) 2000 Peter Putzer -#include <qframe.h> -#include <qlabel.h> -#include <qtextview.h> -#include <qlayout.h> -#include <qhbox.h> -#include <qvbox.h> -#include <qbuttongroup.h> -#include <qpushbutton.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqtextview.h> +#include <tqlayout.h> +#include <tqhbox.h> +#include <tqvbox.h> +#include <tqbuttongroup.h> +#include <tqpushbutton.h> #include <kdebug.h> #include <klocale.h> @@ -21,7 +21,7 @@ #include "Data.h" #include "Properties.h" -KSVServicePropertiesDialog::KSVServicePropertiesDialog (KSVData& data, QWidget* parent) +KSVServicePropertiesDialog::KSVServicePropertiesDialog (KSVData& data, TQWidget* parent) : KPropertiesDialog (KURL(data.filenameAndPath()), parent, "KSVServicePropertiesDialog", true, false), mData (data) @@ -44,31 +44,31 @@ KSVServicesPage::KSVServicesPage (KSVData& data, KPropertiesDialog* props) { mPage->setSpacing (KDialog::spacingHint()); - QVBox* desc = new QVBox (mPage); + TQVBox* desc = new TQVBox (mPage); desc->setSpacing (1); - QLabel* label = new QLabel(i18n("Description:"), desc); + TQLabel* label = new TQLabel(i18n("Description:"), desc); label->setFixedHeight (label->sizeHint().height()); - QString text; + TQString text; ksv::getServiceDescription (data.filename(), text); - mDesc = new QTextView (QString("<p>%1</p>").arg (text), QString::null, desc); + mDesc = new TQTextView (TQString("<p>%1</p>").arg (text), TQString::null, desc); - QButtonGroup* buttons = new QButtonGroup (1, Vertical, i18n ("Actions"), mPage); - QPushButton* b = new QPushButton (i18n ("&Edit"), buttons); - connect (b, SIGNAL (clicked()), props, SLOT (doEdit())); + TQButtonGroup* buttons = new TQButtonGroup (1, Vertical, i18n ("Actions"), mPage); + TQPushButton* b = new TQPushButton (i18n ("&Edit"), buttons); + connect (b, TQT_SIGNAL (clicked()), props, TQT_SLOT (doEdit())); - QFrame* spacer = new QFrame (buttons); + TQFrame* spacer = new TQFrame (buttons); spacer->setMinimumWidth (KDialog::spacingHint()); - b = new QPushButton (i18n ("&Start"), buttons); - connect (b, SIGNAL (clicked()), props, SLOT (doStart())); + b = new TQPushButton (i18n ("&Start"), buttons); + connect (b, TQT_SIGNAL (clicked()), props, TQT_SLOT (doStart())); - b = new QPushButton (i18n ("S&top"), buttons); - connect (b, SIGNAL (clicked()), props, SLOT (doStop())); + b = new TQPushButton (i18n ("S&top"), buttons); + connect (b, TQT_SIGNAL (clicked()), props, TQT_SLOT (doStop())); - b = new QPushButton (i18n ("&Restart"), buttons); - connect (b, SIGNAL (clicked()), props, SLOT (doRestart())); + b = new TQPushButton (i18n ("&Restart"), buttons); + connect (b, TQT_SIGNAL (clicked()), props, TQT_SLOT (doRestart())); } KSVServicesPage::~KSVServicesPage () @@ -100,7 +100,7 @@ void KSVServicePropertiesDialog::doRestart () } -KSVEntryPropertiesDialog::KSVEntryPropertiesDialog (KSVData& data, QWidget* parent) +KSVEntryPropertiesDialog::KSVEntryPropertiesDialog (KSVData& data, TQWidget* parent) : KPropertiesDialog (data.label(), parent, "KSVEntryPropertiesDialog", true), mData (data) { @@ -121,25 +121,25 @@ KSVEntryPage::KSVEntryPage (KSVData& data, KPropertiesDialog* props) mPage (props->addPage (i18n("&Entry"))), mIndex (props->pageIndex (mPage)) { - QGridLayout* top = new QGridLayout (mPage, 4, 2, 0, KDialog::spacingHint()); + TQGridLayout* top = new TQGridLayout (mPage, 4, 2, 0, KDialog::spacingHint()); - QLabel* labelLabel = new QLabel (i18n ("&Name:"), mPage); + TQLabel* labelLabel = new TQLabel (i18n ("&Name:"), mPage); mLabelEdit = new KLineEdit (mPage); mLabelEdit->setText (mData.label()); labelLabel->setBuddy (mLabelEdit); - QLabel* serviceLabel = new QLabel (i18n ("&Points to service:"), mPage); + TQLabel* serviceLabel = new TQLabel (i18n ("&Points to service:"), mPage); mServiceEdit = new KLineEdit (mPage); mServiceEdit->setCompletionObject (ksv::serviceCompletion(), true); mServiceEdit->setText (mData.filename()); serviceLabel->setBuddy (mServiceEdit); - QLabel* numberLabel = new QLabel (i18n ("&Sorting number:"), mPage); + TQLabel* numberLabel = new TQLabel (i18n ("&Sorting number:"), mPage); mNumberEdit = new KSVSpinBox (mPage); mNumberEdit->setValue (mData.number()); numberLabel->setBuddy (mNumberEdit); - QLabel* iconLabel = new QLabel (mPage); + TQLabel* iconLabel = new TQLabel (mPage); iconLabel->setPixmap (DesktopIcon ("ksysv", 48)); top->addWidget (labelLabel, 0, 0); @@ -150,12 +150,12 @@ KSVEntryPage::KSVEntryPage (KSVData& data, KPropertiesDialog* props) top->addWidget (mNumberEdit, 2, 1); top->addWidget (iconLabel, 3, 0); - connect (mServiceEdit, SIGNAL (textChanged (const QString&)), - this, SLOT (emitChanged())); - connect (mLabelEdit, SIGNAL (textChanged (const QString&)), - this, SLOT (emitChanged())); - connect (mNumberEdit, SIGNAL (valueChanged (int)), - this, SLOT (emitChanged())); + connect (mServiceEdit, TQT_SIGNAL (textChanged (const TQString&)), + this, TQT_SLOT (emitChanged())); + connect (mLabelEdit, TQT_SIGNAL (textChanged (const TQString&)), + this, TQT_SLOT (emitChanged())); + connect (mNumberEdit, TQT_SIGNAL (valueChanged (int)), + this, TQT_SLOT (emitChanged())); } KSVEntryPage::~KSVEntryPage () |