summaryrefslogtreecommitdiffstats
path: root/kalarm/templatedlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/templatedlg.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/templatedlg.cpp')
-rw-r--r--kalarm/templatedlg.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kalarm/templatedlg.cpp b/kalarm/templatedlg.cpp
index dab8b45d2..6e493b91e 100644
--- a/kalarm/templatedlg.cpp
+++ b/kalarm/templatedlg.cpp
@@ -43,8 +43,8 @@ static const char TMPL_DIALOG_NAME[] = "TemplateDialog";
TemplateDlg* TemplateDlg::mInstance = 0;
-TemplateDlg::TemplateDlg(TQWidget* parent, const char* name)
- : KDialogBase(KDialogBase::Plain, i18n("Alarm Templates"), Close, Ok, parent, name, false, true)
+TemplateDlg::TemplateDlg(TQWidget* tqparent, const char* name)
+ : KDialogBase(KDialogBase::Plain, i18n("Alarm Templates"), Close, Ok, tqparent, name, false, true)
{
TQWidget* topWidget = plainPage();
TQBoxLayout* topLayout = new TQHBoxLayout(topWidget);
@@ -103,11 +103,11 @@ TemplateDlg::~TemplateDlg()
/******************************************************************************
* Create an instance, if none already exists.
*/
-TemplateDlg* TemplateDlg::create(TQWidget* parent, const char* name)
+TemplateDlg* TemplateDlg::create(TQWidget* tqparent, const char* name)
{
if (mInstance)
return 0;
- mInstance = new TemplateDlg(parent, name);
+ mInstance = new TemplateDlg(tqparent, name);
return mInstance;
}
@@ -138,9 +138,9 @@ void TemplateDlg::slotCopy()
* Create a new template.
* If 'event' is non-zero, base the new template on an existing event or template.
*/
-void TemplateDlg::createTemplate(const KAEvent* event, TQWidget* parent, TemplateListView* view)
+void TemplateDlg::createTemplate(const KAEvent* event, TQWidget* tqparent, TemplateListView* view)
{
- EditAlarmDlg editDlg(true, i18n("New Alarm Template"), parent, 0, event);
+ EditAlarmDlg editDlg(true, i18n("New Alarm Template"), tqparent, 0, event);
if (editDlg.exec() == TQDialog::Accepted)
{
KAEvent event;
@@ -192,14 +192,14 @@ void TemplateDlg::slotDelete()
return;
int warnErr = 0;
- KAlarm::UpdateStatus status = KAlarm::UPDATE_OK;
+ KAlarm::UpdatetqStatus status = KAlarm::UPDATE_OK;
TQValueList<KAEvent> events;
AlarmCalendar::templateCalendar()->startUpdate(); // prevent multiple saves of the calendar until we're finished
for (TQValueList<EventListViewItemBase*>::Iterator it = items.begin(); it != items.end(); ++it)
{
TemplateListViewItem* item = (TemplateListViewItem*)(*it);
events.append(item->event());
- KAlarm::UpdateStatus st = KAlarm::deleteTemplate(item->event());
+ KAlarm::UpdatetqStatus st = KAlarm::deleteTemplate(item->event());
if (st != KAlarm::UPDATE_OK)
{
status = st;