summaryrefslogtreecommitdiffstats
path: root/kalarm/templatemenuaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/templatemenuaction.cpp')
-rw-r--r--kalarm/templatemenuaction.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kalarm/templatemenuaction.cpp b/kalarm/templatemenuaction.cpp
index dae3bc12..7f61d6f9 100644
--- a/kalarm/templatemenuaction.cpp
+++ b/kalarm/templatemenuaction.cpp
@@ -30,14 +30,14 @@
#include "templatemenuaction.moc"
-TemplateMenuAction::TemplateMenuAction(const QString& label, const QString& icon, QObject* receiver,
+TemplateMenuAction::TemplateMenuAction(const TQString& label, const TQString& icon, TQObject* receiver,
const char* slot, KActionCollection* actions, const char* name)
: KActionMenu(label, icon, actions, name)
{
setDelayed(false);
- connect(popupMenu(), SIGNAL(aboutToShow()), SLOT(slotInitMenu()));
- connect(popupMenu(), SIGNAL(activated(int)), SLOT(slotSelected(int)));
- connect(this, SIGNAL(selected(const KAEvent&)), receiver, slot);
+ connect(popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotInitMenu()));
+ connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_SLOT(slotSelected(int)));
+ connect(this, TQT_SIGNAL(selected(const KAEvent&)), receiver, slot);
}
/******************************************************************************
@@ -49,18 +49,18 @@ void TemplateMenuAction::slotInitMenu()
KPopupMenu* menu = popupMenu();
menu->clear();
mOriginalTexts.clear();
- QValueList<KAEvent> templates = KAlarm::templateList();
- for (QValueList<KAEvent>::ConstIterator it = templates.constBegin(); it != templates.constEnd(); ++it)
+ TQValueList<KAEvent> templates = KAlarm::templateList();
+ for (TQValueList<KAEvent>::ConstIterator it = templates.constBegin(); it != templates.constEnd(); ++it)
{
- QString name = (*it).templateName();
+ TQString name = (*it).templateName();
// Insert the template in sorted order
- QStringList::Iterator tit;
+ TQStringList::Iterator tit;
for (tit = mOriginalTexts.begin();
- tit != mOriginalTexts.end() && QString::localeAwareCompare(name, *tit) > 0;
+ tit != mOriginalTexts.end() && TQString::localeAwareCompare(name, *tit) > 0;
++tit);
mOriginalTexts.insert(tit, name);
}
- for (QStringList::ConstIterator tit = mOriginalTexts.constBegin(); tit != mOriginalTexts.constEnd(); ++tit)
+ for (TQStringList::ConstIterator tit = mOriginalTexts.constBegin(); tit != mOriginalTexts.constEnd(); ++tit)
menu->insertItem(*tit);
}
@@ -71,7 +71,7 @@ void TemplateMenuAction::slotInitMenu()
void TemplateMenuAction::slotSelected(int id)
{
KPopupMenu* menu = popupMenu();
- QString item = mOriginalTexts[menu->indexOf(id)];
+ TQString item = mOriginalTexts[menu->indexOf(id)];
if (!item.isEmpty())
{
AlarmCalendar* cal = AlarmCalendar::templateCalendarOpen();