diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/entryitem.cpp | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/entryitem.cpp')
-rw-r--r-- | src/entryitem.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/entryitem.cpp b/src/entryitem.cpp index 0079d44..b2f4f14 100644 --- a/src/entryitem.cpp +++ b/src/entryitem.cpp @@ -21,12 +21,12 @@ using Tellico::EntryItem; -EntryItem::EntryItem(GUI::ListView* parent, Data::EntryPtr entry) - : GUI::ListViewItem(parent), m_entry(entry), m_isDetailedList(true) { +EntryItem::EntryItem(GUI::ListView* tqparent, Data::EntryPtr entry) + : GUI::ListViewItem(tqparent), m_entry(entry), m_isDetailedList(true) { } -EntryItem::EntryItem(GUI::CountedItem* parent_, Data::EntryPtr entry_) - : GUI::ListViewItem(parent_), m_entry(entry_), m_isDetailedList(false) { +EntryItem::EntryItem(GUI::CountedItem* tqparent_, Data::EntryPtr entry_) + : GUI::ListViewItem(tqparent_), m_entry(entry_), m_isDetailedList(false) { setText(0, m_entry->title()); setPixmap(0, UserIcon(entry_->collection()->typeName())); } @@ -35,15 +35,15 @@ Tellico::Data::EntryPtr const EntryItem::entry() const { return m_entry; } -QString EntryItem::key(int col_, bool) const { +TQString EntryItem::key(int col_, bool) const { // first column is always title unless it's a detailed list // detailed list takes care of things on its own bool checkArticles = (!m_isDetailedList && col_ == 0); // there's some sort of painting bug if the key is identical for multiple entries // probably a null string in the group view. TODO // don't add the entry id if it's a detailed view cause that messes up secondary sorting - QString key = (checkArticles ? Data::Field::sortKeyTitle(text(col_)) : text(col_)); - return (m_isDetailedList ? key : key + QString::number(m_entry->id())); + TQString key = (checkArticles ? Data::Field::sortKeyTitle(text(col_)) : text(col_)); + return (m_isDetailedList ? key : key + TQString::number(m_entry->id())); } void EntryItem::doubleClicked() { |