diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/eventlistviewbase.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/eventlistviewbase.cpp')
-rw-r--r-- | kalarm/eventlistviewbase.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kalarm/eventlistviewbase.cpp b/kalarm/eventlistviewbase.cpp index 23af4aafc..ce0257301 100644 --- a/kalarm/eventlistviewbase.cpp +++ b/kalarm/eventlistviewbase.cpp @@ -30,7 +30,7 @@ #include "eventlistviewbase.moc" -class EventListWhatsThisBase : public QWhatsThis +class EventListWhatsThisBase : public TQWhatsThis { public: EventListWhatsThisBase(EventListViewBase* lv) : TQWhatsThis(lv), mListView(lv) { } @@ -45,8 +45,8 @@ class EventListWhatsThisBase : public QWhatsThis = Base class for displaying a list of events. =============================================================================*/ -EventListViewBase::EventListViewBase(TQWidget* parent, const char* name) - : KListView(parent, name), +EventListViewBase::EventListViewBase(TQWidget* tqparent, const char* name) + : KListView(tqparent, name), mFind(0), mLastColumn(-1), mLastColumnHeaderWidth(0) @@ -370,7 +370,7 @@ int EventListViewBase::itemHeight() if (!item) { // The list is empty, so create a temporary item to find its height - TQListViewItem* item = new TQListViewItem(this, TQString::null); + TQListViewItem* item = new TQListViewItem(this, TQString()); int height = item->height(); delete item; return height; @@ -392,8 +392,8 @@ TQPixmap* EventListViewItemBase::mEmailIcon; int EventListViewItemBase::mIconWidth = 0; -EventListViewItemBase::EventListViewItemBase(EventListViewBase* parent, const KAEvent& event) - : TQListViewItem(parent), +EventListViewItemBase::EventListViewItemBase(EventListViewBase* tqparent, const KAEvent& event) + : TQListViewItem(tqparent), mEvent(event) { iconWidth(); // load the icons @@ -404,9 +404,9 @@ EventListViewItemBase::EventListViewItemBase(EventListViewBase* parent, const KA */ void EventListViewItemBase::setLastColumnText() { - EventListViewBase* parent = (EventListViewBase*)listView(); - setText(parent->lastColumn(), lastColumnText()); - mLastColumnWidth = width(parent->fontMetrics(), parent, parent->lastColumn()); + EventListViewBase* tqparent = (EventListViewBase*)listView(); + setText(tqparent->lastColumn(), lastColumnText()); + mLastColumnWidth = width(tqparent->fontMetrics(), tqparent, tqparent->lastColumn()); } /****************************************************************************** |