From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kalarm/templatelistview.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kalarm/templatelistview.h') 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 +#include #include #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 instances() { return mInstanceList; } + virtual TQValueList 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 mInstanceList; - QString mWhatsThisText; // default QWhatsThis text + static TQValueList 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 -- cgit v1.2.1