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/templatelistview.h | |
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/templatelistview.h')
-rw-r--r-- | kalarm/templatelistview.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kalarm/templatelistview.h b/kalarm/templatelistview.h index f420641b9..0a629eb36 100644 --- a/kalarm/templatelistview.h +++ b/kalarm/templatelistview.h @@ -23,7 +23,7 @@ #include "kalarm.h" -#include <qmap.h> +#include <tqmap.h> #include <klistview.h> #include "eventlistviewbase.h" @@ -37,12 +37,12 @@ class TemplateListViewItem : public EventListViewItemBase TemplateListViewItem(TemplateListView* parent, const KAEvent&); TemplateListView* templateListView() const { return (TemplateListView*)listView(); } // Overridden base class methods - TemplateListViewItem* nextSibling() const { return (TemplateListViewItem*)QListViewItem::nextSibling(); } - virtual QString key(int column, bool ascending) const; + TemplateListViewItem* nextSibling() const { return (TemplateListViewItem*)TQListViewItem::nextSibling(); } + virtual TQString key(int column, bool ascending) const; protected: - virtual QString lastColumnText() const; + virtual TQString lastColumnText() const; private: - QString mIconOrder; // controls ordering of icon column + TQString mIconOrder; // controls ordering of icon column }; @@ -50,7 +50,7 @@ class TemplateListView : public EventListViewBase { Q_OBJECT public: - explicit TemplateListView(bool includeCmdAlarms, const QString& whatsThisText, QWidget* parent = 0, const char* name = 0); + explicit TemplateListView(bool includeCmdAlarms, const TQString& whatsThisText, TQWidget* parent = 0, const char* name = 0); ~TemplateListView(); int iconColumn() const { return mIconColumn; } int nameColumn() const { return mNameColumn; } @@ -59,26 +59,26 @@ class TemplateListView : public EventListViewBase { EventListViewBase::addEvent(e, mInstanceList, v); } static void modifyEvent(const KAEvent& e, EventListViewBase* v) { EventListViewBase::modifyEvent(e.id(), e, mInstanceList, v); } - static void modifyEvent(const QString& oldEventID, const KAEvent& newEvent, EventListViewBase* v) + static void modifyEvent(const TQString& oldEventID, const KAEvent& newEvent, EventListViewBase* v) { EventListViewBase::modifyEvent(oldEventID, newEvent, mInstanceList, v); } - static void deleteEvent(const QString& eventID) + static void deleteEvent(const TQString& eventID) { EventListViewBase::deleteEvent(eventID, mInstanceList); } - TemplateListViewItem* getEntry(const QString& eventID) { return (TemplateListViewItem*)EventListViewBase::getEntry(eventID); } + TemplateListViewItem* getEntry(const TQString& eventID) { return (TemplateListViewItem*)EventListViewBase::getEntry(eventID); } TemplateListViewItem* selectedItem() const { return (TemplateListViewItem*)EventListViewBase::selectedItem(); } TemplateListViewItem* currentItem() const { return (TemplateListViewItem*)EventListViewBase::currentItem(); } TemplateListViewItem* firstChild() const { return (TemplateListViewItem*)EventListViewBase::firstChild(); } - virtual void setSelected(QListViewItem* item, bool selected) { EventListViewBase::setSelected(item, selected); } + virtual void setSelected(TQListViewItem* item, bool selected) { EventListViewBase::setSelected(item, selected); } virtual void setSelected(TemplateListViewItem* item, bool selected) { EventListViewBase::setSelected(item, selected); } - virtual QValueList<EventListViewBase*> instances() { return mInstanceList; } + virtual TQValueList<EventListViewBase*> instances() { return mInstanceList; } protected: virtual void populate(); EventListViewItemBase* createItem(const KAEvent&); - virtual QString whatsThisText(int column) const; + virtual TQString whatsThisText(int column) const; private: - static QValueList<EventListViewBase*> mInstanceList; - QString mWhatsThisText; // default QWhatsThis text + static TQValueList<EventListViewBase*> mInstanceList; + TQString mWhatsThisText; // default TQWhatsThis text int mIconColumn; // index to icon column int mNameColumn; // index to template name column bool mExcludeCmdAlarms; // omit command alarms from the list |