summaryrefslogtreecommitdiffstats
path: root/kalarm/templatemenuaction.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/templatemenuaction.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/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 dae3bc127..7f61d6f9b 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();