summaryrefslogtreecommitdiffstats
path: root/kshutdown/mactioneditdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kshutdown/mactioneditdialog.cpp')
-rw-r--r--kshutdown/mactioneditdialog.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kshutdown/mactioneditdialog.cpp b/kshutdown/mactioneditdialog.cpp
index 555ad0a..000fc96 100644
--- a/kshutdown/mactioneditdialog.cpp
+++ b/kshutdown/mactioneditdialog.cpp
@@ -22,21 +22,21 @@
#include "miscutils.h"
#include "mtip.h"
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qvbox.h>
-#include <qvgroupbox.h>
-#include <qwhatsthis.h>
+#include <ntqcheckbox.h>
+#include <ntqcombobox.h>
+#include <ntqhbox.h>
+#include <ntqlabel.h>
+#include <ntqlayout.h>
+#include <ntqvbox.h>
+#include <ntqvgroupbox.h>
+#include <ntqwhatsthis.h>
#include <klineedit.h>
#include <klocale.h>
#include <knuminput.h>
#include <kpushbutton.h>
-MActionEditDialog::MActionEditDialog(QWidget *parent, Action::Type action)
+MActionEditDialog::MActionEditDialog(TQWidget *parent, Action::Type action)
: KDialogBase(
parent,
"MActionEditDialog",
@@ -49,42 +49,42 @@ MActionEditDialog::MActionEditDialog(QWidget *parent, Action::Type action)
_action(action),
_userCommand("")
{
- QVBox *main = new QVBox(this);
+ TQVBox *main = new TQVBox(this);
setMainWidget(main);
// title
- l_title = new QLabel(main);
- QFont f = QFont(l_title->font());
+ l_title = new TQLabel(main);
+ TQFont f = TQFont(l_title->font());
f.setPointSize(16);
l_title->setFont(f);
l_title->setMargin(10);
- QHBox *gb_south = new QHBox(main);
+ TQHBox *gb_south = new TQHBox(main);
gb_south->setSpacing(5);
- QVBox *gb_widgets = new QVBox(gb_south);
+ TQVBox *gb_widgets = new TQVBox(gb_south);
- QVGroupBox *gb_method = new QVGroupBox(i18n("Method"), gb_widgets);
+ TQVGroupBox *gb_method = new TQVGroupBox(i18n("Method"), gb_widgets);
// method label
- QLabel *l_method = new QLabel(i18n("Select a method:"), gb_method);
+ TQLabel *l_method = new TQLabel(i18n("Select a method:"), gb_method);
// method combo box
- _methods = new QComboBox(gb_method, "QComboBox::_methods");
+ _methods = new TQComboBox(gb_method, "TQComboBox::_methods");
_methods->setFocusPolicy(StrongFocus);
_methods->insertItem(i18n("KDE (default)"));
l_method->setBuddy(_methods);
connect(_methods, SIGNAL(activated(int)), SLOT(slotMethodChange(int)));
// command label
- l_command = new QLabel(i18n("Enter a custom command:"), gb_method);
+ l_command = new TQLabel(i18n("Enter a custom command:"), gb_method);
// command edit line
in_command = new KLineEdit(gb_method, "KLineEdit::in_command");
l_command->setBuddy(in_command);
- QVGroupBox *gb_commandBeforeAction = new QVGroupBox(i18n("Command before action"), gb_widgets);
- c_runCommandBeforeAction = new QCheckBox(i18n("Run command"), gb_commandBeforeAction);
+ TQVGroupBox *gb_commandBeforeAction = new TQVGroupBox(i18n("Command before action"), gb_widgets);
+ c_runCommandBeforeAction = new TQCheckBox(i18n("Run command"), gb_commandBeforeAction);
i_commandBeforeAction = new KLineEdit(gb_commandBeforeAction, "KLineEdit::i_commandBeforeAction");
i_commandBeforeActionPause = new KIntNumInput(gb_commandBeforeAction, "KIntNumInput::i_commandBeforeActionPause");
i_commandBeforeActionPause->setLabel(i18n("Pause after run command:"));
@@ -124,11 +124,11 @@ MActionEditDialog::MActionEditDialog(QWidget *parent, Action::Type action)
connect(this, SIGNAL(okClicked()), SLOT(slotOKClicked()));
Action::Method m = Action::Method_KDE;
- QString c;
- QString group = ks_actions->actionToConfigGroup(_action);
+ TQString c;
+ TQString group = ks_actions->actionToConfigGroup(_action);
_methods->insertItem(ks_actions->getMethod(_action, m, c));
- QString s = ks_actions->getName(_action);
+ TQString s = ks_actions->getName(_action);
l_title->setText(s);
setCaption(s);
@@ -196,8 +196,8 @@ void MActionEditDialog::slotMethodChange(int index)
void MActionEditDialog::slotOKClicked()
{
Action::Method m;
- QString c;
- QString group = ks_actions->actionToConfigGroup(_action);
+ TQString c;
+ TQString group = ks_actions->actionToConfigGroup(_action);
// method
m = (Action::Method)_methods->currentItem();