akonadi
statisticsproxymodel.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_STATISTICSPROXYMODEL_H
00021 #define AKONADI_STATISTICSPROXYMODEL_H
00022
00023 #include "akonadi_export.h"
00024
00025 #include <QtGui/QSortFilterProxyModel>
00026
00027 namespace Akonadi {
00028
00050 class AKONADI_EXPORT StatisticsProxyModel : public QSortFilterProxyModel
00051 {
00052 Q_OBJECT
00053
00054 public:
00060 explicit StatisticsProxyModel( QObject *parent = 0 );
00061
00065 virtual ~StatisticsProxyModel();
00066
00070 void setToolTipEnabled( bool enable);
00071
00075 bool isToolTipEnabled() const;
00076
00080 void setExtraColumnsEnabled( bool enable);
00081
00085 bool isExtraColumnsEnabled() const;
00086
00087
00088 virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const;
00089 virtual QVariant data( const QModelIndex & index, int role = Qt::DisplayRole ) const;
00090 virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
00091 virtual Qt::ItemFlags flags ( const QModelIndex & index ) const;
00092 virtual int columnCount( const QModelIndex & parent = QModelIndex() ) const;
00093
00094 virtual QModelIndexList match(const QModelIndex& start, int role, const QVariant& value, int hits = 1,
00095 Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const;
00096
00097 private:
00098
00099 class Private;
00100 Private* const d;
00101
00102 };
00103
00104 }
00105
00106 #endif