summaryrefslogtreecommitdiffstats
path: root/kalarm/eventlistviewbase.h
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/eventlistviewbase.h
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/eventlistviewbase.h')
-rw-r--r--kalarm/eventlistviewbase.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/kalarm/eventlistviewbase.h b/kalarm/eventlistviewbase.h
index 23831c71d..8da8d2c7f 100644
--- a/kalarm/eventlistviewbase.h
+++ b/kalarm/eventlistviewbase.h
@@ -23,7 +23,7 @@
#include "kalarm.h"
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <klistview.h>
#include "alarmevent.h"
@@ -37,25 +37,25 @@ class EventListViewBase : public KListView
{
Q_OBJECT
public:
- typedef QValueList<EventListViewBase*> InstanceList;
- typedef QValueListIterator<EventListViewBase*> InstanceListIterator;
- typedef QValueListConstIterator<EventListViewBase*> InstanceListConstIterator;
+ typedef TQValueList<EventListViewBase*> InstanceList;
+ typedef TQValueListIterator<EventListViewBase*> InstanceListIterator;
+ typedef TQValueListConstIterator<EventListViewBase*> InstanceListConstIterator;
- EventListViewBase(QWidget* parent = 0, const char* name = 0);
+ EventListViewBase(TQWidget* parent = 0, const char* name = 0);
virtual ~EventListViewBase() { }
- EventListViewItemBase* getEntry(const QString& eventID) const;
+ EventListViewItemBase* getEntry(const TQString& eventID) const;
void addEvent(const KAEvent& e) { addEvent(e, instances(), this); }
void modifyEvent(const KAEvent& e)
{ modifyEvent(e.id(), e, instances(), this); }
- void modifyEvent(const QString& oldEventID, const KAEvent& newEvent)
+ void modifyEvent(const TQString& oldEventID, const KAEvent& newEvent)
{ modifyEvent(oldEventID, newEvent, instances(), this); }
- void deleteEvent(const QString& eventID) { deleteEvent(eventID, instances()); }
+ void deleteEvent(const TQString& eventID) { deleteEvent(eventID, instances()); }
static void addEvent(const KAEvent&, const InstanceList&, EventListViewBase* selectionView);
static void modifyEvent(const KAEvent& e, const InstanceList& list, EventListViewBase* selectionView)
{ modifyEvent(e.id(), e, list, selectionView); }
- static void modifyEvent(const QString& oldEventID, const KAEvent& newEvent, const InstanceList&, EventListViewBase* selectionView);
- static void deleteEvent(const QString& eventID, const InstanceList&);
- static void undeleteEvent(const QString& oldEventID, const KAEvent& event, const InstanceList& list, EventListViewBase* selectionView)
+ static void modifyEvent(const TQString& oldEventID, const KAEvent& newEvent, const InstanceList&, EventListViewBase* selectionView);
+ static void deleteEvent(const TQString& eventID, const InstanceList&);
+ static void undeleteEvent(const TQString& oldEventID, const KAEvent& event, const InstanceList& list, EventListViewBase* selectionView)
{ modifyEvent(oldEventID, event, list, selectionView); }
void resizeLastColumn();
int itemHeight();
@@ -64,10 +64,10 @@ class EventListViewBase : public KListView
bool anySelected() const; // are any items selected?
const KAEvent* selectedEvent() const;
EventListViewItemBase* selectedItem() const;
- QValueList<EventListViewItemBase*> selectedItems() const;
+ TQValueList<EventListViewItemBase*> selectedItems() const;
int selectedCount() const;
int lastColumn() const { return mLastColumn; }
- virtual QString whatsThisText(int column) const = 0;
+ virtual TQString whatsThisText(int column) const = 0;
virtual InstanceList instances() = 0; // return all instances
public slots:
@@ -89,9 +89,9 @@ class EventListViewBase : public KListView
EventListViewItemBase* addEntry(const KAEvent&, bool setSize = false, bool reselect = false);
EventListViewItemBase* addEntry(EventListViewItemBase*, bool setSize, bool reselect);
EventListViewItemBase* updateEntry(EventListViewItemBase*, const KAEvent& newEvent, bool setSize = false, bool reselect = false);
- void addLastColumn(const QString& title);
- virtual void showEvent(QShowEvent*);
- virtual void resizeEvent(QResizeEvent*);
+ void addLastColumn(const TQString& title);
+ virtual void showEvent(TQShowEvent*);
+ virtual void resizeEvent(TQResizeEvent*);
private:
void deleteEntry(EventListViewItemBase*, bool setSize = false);
@@ -108,20 +108,20 @@ class EventListViewItemBase : public QListViewItem
public:
EventListViewItemBase(EventListViewBase* parent, const KAEvent&);
const KAEvent& event() const { return mEvent; }
- QPixmap* eventIcon() const;
+ TQPixmap* eventIcon() const;
int lastColumnWidth() const { return mLastColumnWidth; }
- EventListViewItemBase* nextSibling() const { return (EventListViewItemBase*)QListViewItem::nextSibling(); }
+ EventListViewItemBase* nextSibling() const { return (EventListViewItemBase*)TQListViewItem::nextSibling(); }
static int iconWidth();
protected:
void setLastColumnText();
- virtual QString lastColumnText() const = 0; // get the text to display in the last column
+ virtual TQString lastColumnText() const = 0; // get the text to display in the last column
private:
- static QPixmap* mTextIcon;
- static QPixmap* mFileIcon;
- static QPixmap* mCommandIcon;
- static QPixmap* mEmailIcon;
+ static TQPixmap* mTextIcon;
+ static TQPixmap* mFileIcon;
+ static TQPixmap* mCommandIcon;
+ static TQPixmap* mEmailIcon;
static int mIconWidth; // maximum width of any icon
KAEvent mEvent; // the event for this item