[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepimlibs/akregator_port] krss: adapt to new API
From: Frank Osterfeld <frank.osterfeld () kdemail ! net>
Date: 2012-03-31 15:16:22
Message-ID: 20120331151622.7BEF8A6105 () git ! kde ! org
[Download RAW message or body]
Git commit 172a3a9013e3615d824d2ac987c8962d711f89ce by Frank Osterfeld.
Committed on 23/10/2009 at 10:11.
Pushed by osterfeld into branch 'akregator_port'.
adapt to new API
svn path=/branches/work/akonadi-ports/kdepim/; revision=1039252
M +2 -2 krss/feeditemmodel.cpp
M +2 -2 krss/feeditemmodel.h
http://commits.kde.org/kdepimlibs/172a3a9013e3615d824d2ac987c8962d711f89ce
diff --git a/krss/feeditemmodel.cpp b/krss/feeditemmodel.cpp
index 5ebc080..aab7f26 100644
--- a/krss/feeditemmodel.cpp
+++ b/krss/feeditemmodel.cpp
@@ -132,14 +132,14 @@ QVariant FeedItemModel::entityData( const Collection \
&collection, int column, in return EntityTreeModel::entityData( collection, column, \
role ); }
-int FeedItemModel::entityColumnCount( int headerSet ) const {
+int FeedItemModel::entityColumnCount( EntityTreeModel::HeaderGroup headerSet ) const \
{ if ( headerSet == ItemListHeaders )
return ItemColumnCount;
else
return FeedColumnCount;
}
-QVariant FeedItemModel::entityHeaderData( int section, Qt::Orientation orientation, \
int role, int headerSet ) const { +QVariant FeedItemModel::entityHeaderData( int \
section, Qt::Orientation orientation, int role, EntityTreeModel::HeaderGroup \
headerSet ) const { Q_ASSERT( section >= 0 );
if ( orientation != Qt::Horizontal )
return QVariant();
diff --git a/krss/feeditemmodel.h b/krss/feeditemmodel.h
index b9011eb..92fc46b 100644
--- a/krss/feeditemmodel.h
+++ b/krss/feeditemmodel.h
@@ -70,9 +70,9 @@ public:
/* reimp */ QVariant entityData( const Akonadi::Collection& collection, int \
column, int role=Qt::DisplayRole ) const;
- /* reimp */ int entityColumnCount( int headerSet ) const;
+ /* reimp */ int entityColumnCount( EntityTreeModel::HeaderGroup headerSet ) \
const;
- /* reimp */ QVariant entityHeaderData( int section, Qt::Orientation orientation, \
int role, int headerSet ) const; + /* reimp */ QVariant entityHeaderData( int \
section, Qt::Orientation orientation, int role, EntityTreeModel::HeaderGroup \
headerSet ) const;
private:
friend class ::KRss::FeedItemModelPrivate;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic