Commit 1e5af9d5 authored by Thomas McGuire's avatar Thomas McGuire
Browse files

Also compile with Qt < 4.4 (though the class will not do anything in that case)

svn path=/trunk/KDE/kdepimlibs/; revision=789416
parent d7c0abf4
......@@ -18,6 +18,8 @@
*/
#include "collectionstatisticsdelegate.h"
#if QT_VERSION >= 0x040400
#include "collectionstatisticsmodel.h"
#include <kcolorscheme.h>
......@@ -200,3 +202,5 @@ void CollectionStatisticsDelegate::paint( QPainter *painter,
painter->drawText( textRect, option4.displayAlignment, text );
}
#endif
......@@ -21,6 +21,9 @@
#include "akonadi_export.h"
// FIXME: Qt 4.4: Remove this
#if QT_VERSION >= 0x040400
#include <QtGui/QStyledItemDelegate>
class QTreeView;
......@@ -70,7 +73,7 @@ class AKONADI_EXPORT CollectionStatisticsDelegate : public QStyledItemDelegate
//FIXME_API: rename to setUnreadCountShown( bool );
void toggleUnreadAfterFolderName( bool enable );
//FIXME_API: add unreadCountShown()
//FIXME_API: add unreadCountShown(). Also change it in compat class def below
protected:
......@@ -94,4 +97,28 @@ class AKONADI_EXPORT CollectionStatisticsDelegate : public QStyledItemDelegate
}
#else
#include <QtGui/QItemDelegate>
#include <QtGui/QTreeView>
namespace Akonadi {
class AKONADI_EXPORT CollectionStatisticsDelegate : public QItemDelegate
{
Q_OBJECT
public:
CollectionStatisticsDelegate( QTreeView *parent ) : QItemDelegate( parent ) {}
~CollectionStatisticsDelegate() {}
public Q_SLOTS:
void toggleUnreadAfterFolderName( bool ) {}
};
}
#endif
#endif
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