diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/templatepickdlg.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/templatepickdlg.cpp')
-rw-r--r-- | kalarm/templatepickdlg.cpp | 20 |
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()); |