Commit af3bf6df authored by Stephen Kelly's avatar Stephen Kelly
Browse files

Restore BC. The result is a new ctor taking a QAbstractItemView.

svn path=/trunk/KDE/kdepimlibs/; revision=1180267
parent bbd59d62
......@@ -94,6 +94,13 @@ CollectionStatisticsDelegate::CollectionStatisticsDelegate( QAbstractItemView *p
}
CollectionStatisticsDelegate::CollectionStatisticsDelegate( QTreeView *parent )
: QStyledItemDelegate( parent ),
d_ptr( new CollectionStatisticsDelegatePrivate( parent ) )
{
}
CollectionStatisticsDelegate::~CollectionStatisticsDelegate()
{
delete d_ptr;
......
......@@ -24,6 +24,7 @@
#include <QtGui/QStyledItemDelegate>
class QAbstractItemView;
class QTreeView;
namespace Akonadi {
......@@ -69,10 +70,19 @@ class AKONADI_EXPORT CollectionStatisticsDelegate : public QStyledItemDelegate
/**
* Creates a new collection statistics delegate.
*
* @param parent The parent tree view, which will also take ownership.
* @param parent The parent item view, which will also take ownership.
*
* @since 4.6
*/
explicit CollectionStatisticsDelegate( QAbstractItemView *parent );
/**
* Creates a new collection statistics delegate.
*
* @param parent The parent tree view, which will also take ownership.
*/
explicit CollectionStatisticsDelegate( QTreeView *parent );
/**
* Destroys the collection statistics delegate.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment