summaryrefslogtreecommitdiffstats
path: root/korganizer/koeventpopupmenu.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 /korganizer/koeventpopupmenu.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 'korganizer/koeventpopupmenu.cpp')
-rw-r--r--korganizer/koeventpopupmenu.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/korganizer/koeventpopupmenu.cpp b/korganizer/koeventpopupmenu.cpp
index 54272fd54..75c96d205 100644
--- a/korganizer/koeventpopupmenu.cpp
+++ b/korganizer/koeventpopupmenu.cpp
@@ -22,7 +22,7 @@
without including the source code for Qt in the source distribution.
*/
-#include <qcursor.h>
+#include <tqcursor.h>
#include <kactioncollection.h>
#include <klocale.h>
@@ -46,71 +46,71 @@
KOEventPopupMenu::KOEventPopupMenu()
{
mCurrentIncidence = 0;
- mCurrentDate = QDate();
+ mCurrentDate = TQDate();
mHasAdditionalItems = false;
- insertItem( i18n("&Show"), this, SLOT( popupShow() ) );
+ insertItem( i18n("&Show"), this, TQT_SLOT( popupShow() ) );
mEditOnlyItems.append(
- insertItem(i18n("&Edit..."), this, SLOT( popupEdit() ) ) );
+ insertItem(i18n("&Edit..."), this, TQT_SLOT( popupEdit() ) ) );
#ifndef KORG_NOPRINTER
insertItem( KOGlobals::self()->smallIcon("printer1"), i18n("&Print..."),
- this, SLOT( print() ) );
+ this, TQT_SLOT( print() ) );
#endif
//------------------------------------------------------------------------
mEditOnlyItems.append( insertSeparator() );
mEditOnlyItems.append(
insertItem( KOGlobals::self()->smallIcon("editcut"), i18n("&Cut"),
- this, SLOT( popupCut() ) ) );
+ this, TQT_SLOT( popupCut() ) ) );
mEditOnlyItems.append(
insertItem( KOGlobals::self()->smallIcon("editcopy"), i18n("&Copy"),
- this, SLOT( popupCopy() ) ) );
+ this, TQT_SLOT( popupCopy() ) ) );
// paste is always possible
insertItem( KOGlobals::self()->smallIcon("editpaste"), i18n("&Paste"),
- this, SLOT( popupPaste() ) );
+ this, TQT_SLOT( popupPaste() ) );
mEditOnlyItems.append(
insertItem( KOGlobals::self()->smallIcon("editdelete"), i18n("&Delete"),
- this, SLOT( popupDelete() ) ) );
+ this, TQT_SLOT( popupDelete() ) ) );
//------------------------------------------------------------------------
mEditOnlyItems.append( insertSeparator() );
mEditOnlyItems.append(
insertItem( KOGlobals::self()->smallIcon("bell"), i18n("&Toggle Reminder"),
- this, SLOT( popupAlarm() ) ) );
+ this, TQT_SLOT( popupAlarm() ) ) );
//------------------------------------------------------------------------
mRecurrenceItems.append( insertSeparator() );
mRecurrenceItems.append(
insertItem( i18n("&Dissociate This Occurrence"),
- this, SLOT( dissociateOccurrence() ) ) );
+ this, TQT_SLOT( dissociateOccurrence() ) ) );
mRecurrenceItems.append(
insertItem( i18n("&Dissociate Future Occurrences"),
- this, SLOT( dissociateFutureOccurrence() ) ) );
+ this, TQT_SLOT( dissociateFutureOccurrence() ) ) );
insertSeparator();
insertItem( KOGlobals::self()->smallIcon("mail_forward"), i18n( "Send as iCalendar..."),
- this, SLOT(forward()) );
+ this, TQT_SLOT(forward()) );
}
-void KOEventPopupMenu::showIncidencePopup( Incidence *incidence, const QDate &qd )
+void KOEventPopupMenu::showIncidencePopup( Incidence *incidence, const TQDate &qd )
{
mCurrentIncidence = incidence;
mCurrentDate = qd;
if (mCurrentIncidence) {
// Enable/Disabled menu items only valid for editable events.
- QValueList<int>::Iterator it;
+ TQValueList<int>::Iterator it;
for( it = mEditOnlyItems.begin(); it != mEditOnlyItems.end(); ++it ) {
setItemEnabled(*it,!mCurrentIncidence->isReadOnly());
}
for ( it = mRecurrenceItems.begin(); it != mRecurrenceItems.end(); ++it ) {
setItemVisible( *it, mCurrentIncidence->doesRecur() );
}
- popup(QCursor::pos());
+ popup(TQCursor::pos());
} else {
kdDebug(5850) << "KOEventPopupMenu::showEventPopup(): No event selected" << endl;
}
}
-void KOEventPopupMenu::addAdditionalItem(const QIconSet &icon,const QString &text,
- const QObject *receiver, const char *member,
+void KOEventPopupMenu::addAdditionalItem(const TQIconSet &icon,const TQString &text,
+ const TQObject *receiver, const char *member,
bool editOnly)
{
if (!mHasAdditionalItems) {
@@ -136,7 +136,7 @@ void KOEventPopupMenu::print()
#ifndef KORG_NOPRINTER
KOCoreHelper helper;
CalPrinter printer( this, 0, &helper );
- connect( this, SIGNAL(configChanged()), &printer, SLOT(updateConfig()) );
+ connect( this, TQT_SIGNAL(configChanged()), &printer, TQT_SLOT(updateConfig()) );
Incidence::List selectedIncidences;
selectedIncidences.append( mCurrentIncidence );