summaryrefslogtreecommitdiffstats
path: root/kalarm/templatepickdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/templatepickdlg.cpp')
-rw-r--r--kalarm/templatepickdlg.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kalarm/templatepickdlg.cpp b/kalarm/templatepickdlg.cpp
index 50ec2b6e9..3df2d8dd7 100644
--- a/kalarm/templatepickdlg.cpp
+++ b/kalarm/templatepickdlg.cpp
@@ -20,8 +20,8 @@
#include "kalarm.h"
-#include <qlayout.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
#include <kdebug.h>
@@ -34,26 +34,26 @@
static const char TMPL_PICK_DIALOG_NAME[] = "TemplatePickDialog";
-TemplatePickDlg::TemplatePickDlg(QWidget* parent, const char* name)
+TemplatePickDlg::TemplatePickDlg(TQWidget* parent, const char* name)
: KDialogBase(KDialogBase::Plain, i18n("Choose Alarm Template"), Ok|Cancel, Ok, parent, name)
{
- QWidget* topWidget = plainPage();
- QBoxLayout* topLayout = new QVBoxLayout(topWidget);
+ TQWidget* topWidget = plainPage();
+ TQBoxLayout* topLayout = new TQVBoxLayout(topWidget);
topLayout->setSpacing(spacingHint());
// Display the list of templates, but exclude command alarms if in kiosk mode.
bool includeCmdAlarms = ShellProcess::authorised();
mTemplateList = new TemplateListView(includeCmdAlarms, i18n("Select a template to base the new alarm on."), topWidget, "list");
- mTemplateList->setSelectionMode(QListView::Single);
+ mTemplateList->setSelectionMode(TQListView::Single);
mTemplateList->refresh(); // populate the template list
- connect(mTemplateList, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged()));
+ connect(mTemplateList, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelectionChanged()));
// Require a real double click (even if KDE is in single-click mode) to accept the selection
- connect(mTemplateList, SIGNAL(doubleClicked(QListViewItem*, const QPoint&, int)), SLOT(slotOk()));
+ connect(mTemplateList, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)), TQT_SLOT(slotOk()));
topLayout->addWidget(mTemplateList);
slotSelectionChanged(); // enable or disable the OK button
- QSize s;
+ TQSize s;
if (KAlarm::readConfigWindowSize(TMPL_PICK_DIALOG_NAME, s))
resize(s);
}
@@ -79,7 +79,7 @@ void TemplatePickDlg::slotSelectionChanged()
* Called when the dialog's size has changed.
* Records the new size in the config file.
*/
-void TemplatePickDlg::resizeEvent(QResizeEvent* re)
+void TemplatePickDlg::resizeEvent(TQResizeEvent* re)
{
if (isVisible())
KAlarm::writeConfigWindowSize(TMPL_PICK_DIALOG_NAME, re->size());