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/alarmlistview.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/alarmlistview.h')
-rw-r--r-- | kalarm/alarmlistview.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kalarm/alarmlistview.h b/kalarm/alarmlistview.h index 63d5bf0b0..f2ad5b2c2 100644 --- a/kalarm/alarmlistview.h +++ b/kalarm/alarmlistview.h @@ -31,30 +31,30 @@ class AlarmListTooltip; class AlarmListViewItem : public EventListViewItemBase { public: - AlarmListViewItem(AlarmListView* parent, const KAEvent&, const QDateTime& now); - QTime showTimeToAlarm(bool show); - void updateTimeToAlarm(const QDateTime& now, bool forceDisplay = false); - virtual void paintCell(QPainter*, const QColorGroup&, int column, int width, int align); + AlarmListViewItem(AlarmListView* parent, const KAEvent&, const TQDateTime& now); + TQTime showTimeToAlarm(bool show); + void updateTimeToAlarm(const TQDateTime& now, bool forceDisplay = false); + virtual void paintCell(TQPainter*, const TQColorGroup&, int column, int width, int align); AlarmListView* alarmListView() const { return (AlarmListView*)listView(); } bool messageTruncated() const { return mMessageTruncated; } int messageColWidthNeeded() const { return mMessageColWidth; } static int typeIconWidth(AlarmListView*); // Overridden base class methods - AlarmListViewItem* nextSibling() const { return (AlarmListViewItem*)QListViewItem::nextSibling(); } - virtual QString key(int column, bool ascending) const; + AlarmListViewItem* nextSibling() const { return (AlarmListViewItem*)TQListViewItem::nextSibling(); } + virtual TQString key(int column, bool ascending) const; protected: - virtual QString lastColumnText() const { return alarmText(event()); } + virtual TQString lastColumnText() const { return alarmText(event()); } private: - QString alarmText(const KAEvent&) const; - QString alarmTimeText(const DateTime&) const; - QString timeToAlarmText(const QDateTime& now) const; + TQString alarmText(const KAEvent&) const; + TQString alarmTimeText(const DateTime&) const; + TQString timeToAlarmText(const TQDateTime& now) const; static int mTimeHourPos; // position of hour within time string, or -1 if leading zeroes included static int mDigitWidth; // display width of a digit - QString mDateTimeOrder; // controls ordering of date/time column - QString mRepeatOrder; // controls ordering of repeat column - QString mColourOrder; // controls ordering of colour column - QString mTypeOrder; // controls ordering of alarm type column + TQString mDateTimeOrder; // controls ordering of date/time column + TQString mRepeatOrder; // controls ordering of repeat column + TQString mColourOrder; // controls ordering of colour column + TQString mTypeOrder; // controls ordering of alarm type column mutable int mMessageColWidth; // width needed to display complete message text mutable bool mMessageTruncated; // multi-line message text has been truncated for the display bool mTimeToAlarmShown; // relative alarm time is displayed @@ -63,14 +63,14 @@ class AlarmListViewItem : public EventListViewItemBase class AlarmListView : public EventListViewBase { - Q_OBJECT // needed by QObject::isA() calls + Q_OBJECT // needed by TQObject::isA() calls public: enum ColumnIndex { // default column order TIME_COLUMN, TIME_TO_COLUMN, REPEAT_COLUMN, COLOUR_COLUMN, TYPE_COLUMN, MESSAGE_COLUMN, COLUMN_COUNT }; - AlarmListView(const QValueList<int>& order, QWidget* parent = 0, const char* name = 0); + AlarmListView(const TQValueList<int>& order, TQWidget* parent = 0, const char* name = 0); ~AlarmListView(); void showExpired(bool show) { mShowExpired = show; } bool showingExpired() const { return mShowExpired; } @@ -80,42 +80,42 @@ class AlarmListView : public EventListViewBase bool expired(AlarmListViewItem*) const; bool drawMessageInColour() const { return mDrawMessageInColour; } void setDrawMessageInColour(bool inColour) { mDrawMessageInColour = inColour; } - QValueList<int> columnOrder() const; + TQValueList<int> columnOrder() const; int column(ColumnIndex i) const { return mColumn[i]; } static bool dragging() { return mDragging; } // Overridden base class methods static void addEvent(const KAEvent&, EventListViewBase*); static void modifyEvent(const KAEvent& e, EventListViewBase* selectionView) { EventListViewBase::modifyEvent(e.id(), e, mInstanceList, selectionView); } - static void modifyEvent(const QString& oldEventID, const KAEvent& newEvent, EventListViewBase* selectionView) + static void modifyEvent(const TQString& oldEventID, const KAEvent& newEvent, EventListViewBase* selectionView) { EventListViewBase::modifyEvent(oldEventID, newEvent, mInstanceList, selectionView); } - static void deleteEvent(const QString& eventID) + static void deleteEvent(const TQString& eventID) { EventListViewBase::deleteEvent(eventID, mInstanceList); } - static void undeleteEvent(const QString& oldEventID, const KAEvent& event, EventListViewBase* selectionView) + static void undeleteEvent(const TQString& oldEventID, const KAEvent& event, EventListViewBase* selectionView) { EventListViewBase::modifyEvent(oldEventID, event, mInstanceList, selectionView); } - AlarmListViewItem* getEntry(const QString& eventID) { return (AlarmListViewItem*)EventListViewBase::getEntry(eventID); } + AlarmListViewItem* getEntry(const TQString& eventID) { return (AlarmListViewItem*)EventListViewBase::getEntry(eventID); } AlarmListViewItem* currentItem() const { return (AlarmListViewItem*)EventListViewBase::currentItem(); } AlarmListViewItem* firstChild() const { return (AlarmListViewItem*)EventListViewBase::firstChild(); } AlarmListViewItem* selectedItem() const { return (AlarmListViewItem*)EventListViewBase::selectedItem(); } - 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(AlarmListViewItem* item, bool selected) { EventListViewBase::setSelected(item, selected); } virtual InstanceList instances() { return mInstanceList; } protected: virtual void populate(); EventListViewItemBase* createItem(const KAEvent&); - virtual QString whatsThisText(int column) const; + virtual TQString whatsThisText(int column) const; virtual bool shouldShowEvent(const KAEvent& e) const { return mShowExpired || !e.expired(); } AlarmListViewItem* addEntry(const KAEvent& e, bool setSize = false) - { return addEntry(e, QDateTime::currentDateTime(), setSize); } + { return addEntry(e, TQDateTime::currentDateTime(), setSize); } AlarmListViewItem* updateEntry(AlarmListViewItem* item, const KAEvent& newEvent, bool setSize = false) { return (AlarmListViewItem*)EventListViewBase::updateEntry(item, newEvent, setSize); } - virtual void contentsMousePressEvent(QMouseEvent*); - virtual void contentsMouseMoveEvent(QMouseEvent*); - virtual void contentsMouseReleaseEvent(QMouseEvent*); + virtual void contentsMousePressEvent(TQMouseEvent*); + virtual void contentsMouseMoveEvent(TQMouseEvent*); + virtual void contentsMouseReleaseEvent(TQMouseEvent*); private: - AlarmListViewItem* addEntry(const KAEvent&, const QDateTime& now, bool setSize = false, bool reselect = false); + AlarmListViewItem* addEntry(const KAEvent&, const TQDateTime& now, bool setSize = false, bool reselect = false); static InstanceList mInstanceList; // all current instances of this class static bool mDragging; @@ -123,7 +123,7 @@ class AlarmListView : public EventListViewBase int mTimeColumnHeaderWidth; int mTimeToColumnHeaderWidth; AlarmListTooltip* mTooltip; // tooltip for showing full text of alarm messages - QPoint mMousePressPos; // where the mouse left button was last pressed + TQPoint mMousePressPos; // where the mouse left button was last pressed bool mMousePressed; // true while the mouse left button is pressed bool mDrawMessageInColour; bool mShowExpired; // true to show expired alarms |