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.cpp | |
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.cpp')
-rw-r--r-- | kalarm/templatelistview.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kalarm/templatelistview.cpp b/kalarm/templatelistview.cpp index bf1e00850..1c0dd504b 100644 --- a/kalarm/templatelistview.cpp +++ b/kalarm/templatelistview.cpp @@ -32,21 +32,21 @@ = Class: TemplateListView = Displays the list of outstanding alarms. =============================================================================*/ -QValueList<EventListViewBase*> TemplateListView::mInstanceList; +TQValueList<EventListViewBase*> TemplateListView::mInstanceList; -TemplateListView::TemplateListView(bool includeCmdAlarms, const QString& whatsThisText, QWidget* parent, const char* name) +TemplateListView::TemplateListView(bool includeCmdAlarms, const TQString& whatsThisText, TQWidget* parent, const char* name) : EventListViewBase(parent, name), mWhatsThisText(whatsThisText), mIconColumn(0), mNameColumn(1), mExcludeCmdAlarms(!includeCmdAlarms) { - addColumn(QString::null); // icon column + addColumn(TQString::null); // icon column addLastColumn(i18n("Name")); setSorting(mNameColumn); // sort initially by name setColumnAlignment(mIconColumn, Qt::AlignHCenter); - setColumnWidthMode(mIconColumn, QListView::Maximum); + setColumnWidthMode(mIconColumn, TQListView::Maximum); mInstanceList.append(this); } @@ -61,8 +61,8 @@ TemplateListView::~TemplateListView() */ void TemplateListView::populate() { - QValueList<KAEvent> templates = KAlarm::templateList(); - for (QValueList<KAEvent>::Iterator it = templates.begin(); it != templates.end(); ++it) + TQValueList<KAEvent> templates = KAlarm::templateList(); + for (TQValueList<KAEvent>::Iterator it = templates.begin(); it != templates.end(); ++it) addEntry(*it); } @@ -75,9 +75,9 @@ EventListViewItemBase* TemplateListView::createItem(const KAEvent& event) } /****************************************************************************** -* Returns the QWhatsThis text for a specified column. +* Returns the TQWhatsThis text for a specified column. */ -QString TemplateListView::whatsThisText(int column) const +TQString TemplateListView::whatsThisText(int column) const { if (column == mIconColumn) return i18n("Alarm type"); @@ -113,7 +113,7 @@ TemplateListViewItem::TemplateListViewItem(TemplateListView* parent, const KAEve /****************************************************************************** * Return the alarm summary text. */ -QString TemplateListViewItem::lastColumnText() const +TQString TemplateListViewItem::lastColumnText() const { return event().templateName(); } @@ -121,7 +121,7 @@ QString TemplateListViewItem::lastColumnText() const /****************************************************************************** * Return the column sort order for one item in the list. */ -QString TemplateListViewItem::key(int column, bool) const +TQString TemplateListViewItem::key(int column, bool) const { TemplateListView* listView = templateListView(); if (column == listView->iconColumn()) |