summaryrefslogtreecommitdiffstats
path: root/kalarm/specialactions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/specialactions.cpp')
-rw-r--r--kalarm/specialactions.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kalarm/specialactions.cpp b/kalarm/specialactions.cpp
index a92166ee..ed855585 100644
--- a/kalarm/specialactions.cpp
+++ b/kalarm/specialactions.cpp
@@ -20,9 +20,9 @@
#include "kalarm.h"
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
#include <klineedit.h>
#include <kapplication.h>
@@ -40,14 +40,14 @@
= Button to display the Special Alarm Actions dialogue.
=============================================================================*/
-SpecialActionsButton::SpecialActionsButton(const QString& caption, QWidget* parent, const char* name)
- : QPushButton(caption, parent, name),
+SpecialActionsButton::SpecialActionsButton(const TQString& caption, TQWidget* parent, const char* name)
+ : TQPushButton(caption, parent, name),
mReadOnly(false)
{
setToggleButton(true);
setOn(false);
- connect(this, SIGNAL(clicked()), SLOT(slotButtonPressed()));
- QWhatsThis::add(this,
+ connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotButtonPressed()));
+ TQWhatsThis::add(this,
i18n("Specify actions to execute before and after the alarm is displayed."));
}
@@ -55,7 +55,7 @@ SpecialActionsButton::SpecialActionsButton(const QString& caption, QWidget* pare
* Set the pre- and post-alarm actions.
* The button's pressed state is set to reflect whether any actions are set.
*/
-void SpecialActionsButton::setActions(const QString& pre, const QString& post)
+void SpecialActionsButton::setActions(const TQString& pre, const TQString& post)
{
mPreAction = pre;
mPostAction = post;
@@ -71,7 +71,7 @@ void SpecialActionsButton::slotButtonPressed()
SpecialActionsDlg dlg(mPreAction, mPostAction,
i18n("Special Alarm Actions"), this, "actionsDlg");
dlg.setReadOnly(mReadOnly);
- if (dlg.exec() == QDialog::Accepted)
+ if (dlg.exec() == TQDialog::Accepted)
{
mPreAction = dlg.preAction();
mPostAction = dlg.postAction();
@@ -89,20 +89,20 @@ void SpecialActionsButton::slotButtonPressed()
static const char SPEC_ACT_DIALOG_NAME[] = "SpecialActionsDialog";
-SpecialActionsDlg::SpecialActionsDlg(const QString& preAction, const QString& postAction,
- const QString& caption, QWidget* parent, const char* name)
+SpecialActionsDlg::SpecialActionsDlg(const TQString& preAction, const TQString& postAction,
+ const TQString& caption, TQWidget* parent, const char* name)
: KDialogBase(parent, name, true, caption, Ok|Cancel, Ok, false)
{
- QWidget* page = new QWidget(this);
+ TQWidget* page = new TQWidget(this);
setMainWidget(page);
- QVBoxLayout* layout = new QVBoxLayout(page, 0, spacingHint());
+ TQVBoxLayout* layout = new TQVBoxLayout(page, 0, spacingHint());
mActions = new SpecialActions(page);
mActions->setActions(preAction, postAction);
layout->addWidget(mActions);
layout->addSpacing(KDialog::spacingHint());
- QSize s;
+ TQSize s;
if (KAlarm::readConfigWindowSize(SPEC_ACT_DIALOG_NAME, s))
resize(s);
}
@@ -121,7 +121,7 @@ void SpecialActionsDlg::slotOk()
* Called when the dialog's size has changed.
* Records the new size in the config file.
*/
-void SpecialActionsDlg::resizeEvent(QResizeEvent* re)
+void SpecialActionsDlg::resizeEvent(TQResizeEvent* re)
{
if (isVisible())
KAlarm::writeConfigWindowSize(SPEC_ACT_DIALOG_NAME, re->size());
@@ -134,20 +134,20 @@ void SpecialActionsDlg::resizeEvent(QResizeEvent* re)
= Pre- and post-alarm actions widget.
=============================================================================*/
-SpecialActions::SpecialActions(QWidget* parent, const char* name)
- : QWidget(parent, name),
+SpecialActions::SpecialActions(TQWidget* parent, const char* name)
+ : TQWidget(parent, name),
mReadOnly(false)
{
- QBoxLayout* topLayout = new QVBoxLayout(this, 0, KDialog::spacingHint());
+ TQBoxLayout* topLayout = new TQVBoxLayout(this, 0, KDialog::spacingHint());
// Pre-alarm action
- QLabel* label = new QLabel(i18n("Pre-a&larm action:"), this);
+ TQLabel* label = new TQLabel(i18n("Pre-a&larm action:"), this);
label->setFixedSize(label->sizeHint());
topLayout->addWidget(label, 0, Qt::AlignAuto);
mPreAction = new KLineEdit(this);
label->setBuddy(mPreAction);
- QWhatsThis::add(mPreAction,
+ TQWhatsThis::add(mPreAction,
i18n("Enter a shell command to execute before the alarm is displayed.\n"
"Note that it is executed only when the alarm proper is displayed, not when a reminder or deferred alarm is displayed.\n"
"N.B. KAlarm will wait for the command to complete before displaying the alarm."));
@@ -155,31 +155,31 @@ SpecialActions::SpecialActions(QWidget* parent, const char* name)
topLayout->addSpacing(KDialog::spacingHint());
// Post-alarm action
- label = new QLabel(i18n("Post-alar&m action:"), this);
+ label = new TQLabel(i18n("Post-alar&m action:"), this);
label->setFixedSize(label->sizeHint());
topLayout->addWidget(label, 0, Qt::AlignAuto);
mPostAction = new KLineEdit(this);
label->setBuddy(mPostAction);
- QWhatsThis::add(mPostAction,
+ TQWhatsThis::add(mPostAction,
i18n("Enter a shell command to execute after the alarm window is closed.\n"
"Note that it is not executed after closing a reminder window. If you defer "
"the alarm, it is not executed until the alarm is finally acknowledged or closed."));
topLayout->addWidget(mPostAction);
}
-void SpecialActions::setActions(const QString& pre, const QString& post)
+void SpecialActions::setActions(const TQString& pre, const TQString& post)
{
mPreAction->setText(pre);
mPostAction->setText(post);
}
-QString SpecialActions::preAction() const
+TQString SpecialActions::preAction() const
{
return mPreAction->text();
}
-QString SpecialActions::postAction() const
+TQString SpecialActions::postAction() const
{
return mPostAction->text();
}