kdgantt
kdganttsummaryhandlingproxymodel.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KDGANTTSUMMARYHANDLINGPROXYMODEL_H
00024 #define KDGANTTSUMMARYHANDLINGPROXYMODEL_H
00025
00026 #include "kdganttforwardingproxymodel.h"
00027
00028 namespace KDGantt {
00029 class KDGANTT_EXPORT SummaryHandlingProxyModel : public ForwardingProxyModel {
00030 Q_OBJECT
00031 KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC( SummaryHandlingProxyModel )
00032 public:
00033 explicit SummaryHandlingProxyModel( QObject* parent=0 );
00034 virtual ~SummaryHandlingProxyModel();
00035
00036 void setSourceModel( QAbstractItemModel* model );
00037
00038 QVariant data( const QModelIndex& proxyIndex, int role = Qt::DisplayRole) const;
00039 bool setData( const QModelIndex& index, const QVariant& value, int role = Qt::EditRole );
00040
00041 Qt::ItemFlags flags( const QModelIndex& idx ) const;
00042
00043 protected:
00044 void sourceModelReset();
00045 void sourceLayoutChanged();
00046 void sourceDataChanged( const QModelIndex& from, const QModelIndex& to );
00047 void sourceColumnsAboutToBeInserted( const QModelIndex& idx, int start, int end );
00048 void sourceColumnsAboutToBeRemoved( const QModelIndex& idx, int start, int end );
00049 void sourceRowsAboutToBeInserted( const QModelIndex& idx, int start, int end );
00050 void sourceRowsAboutToBeRemoved( const QModelIndex&, int start, int end );
00051 };
00052 }
00053
00054 #endif
00055