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
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef QXTSCHEDULEVIEWHEADERMODEL_P_H_INCLUDED
00039 #define QXTSCHEDULEVIEWHEADERMODEL_P_H_INCLUDED
00040
00041 #include <QAbstractTableModel>
00042 #include <QtGlobal>
00043 #include <QPointer>
00044
00050 class QxtScheduleView;
00051
00052 class QxtScheduleViewHeaderModel : public QAbstractTableModel
00053 {
00054 Q_OBJECT
00055
00056 public:
00057 QxtScheduleViewHeaderModel(QObject *parent = 0);
00058
00059 void setDataSource(QxtScheduleView *dataSource);
00060
00061 virtual QModelIndex parent(const QModelIndex & index) const;
00062 virtual int rowCount(const QModelIndex & parent = QModelIndex()) const;
00063 virtual int columnCount(const QModelIndex & parent = QModelIndex()) const;
00064 virtual QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
00065 virtual bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
00066 virtual bool insertRow(int row, const QModelIndex & parent = QModelIndex());
00067 virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
00068 virtual Qt::ItemFlags flags(const QModelIndex &index) const;
00069 virtual bool hasChildren(const QModelIndex & parent = QModelIndex()) const;
00070
00071 public Q_SLOTS:
00072 void newZoomDepth(const int zoomDepth);
00073 void viewModeChanged(const int viewMode);
00074
00075 private:
00076 QPointer<QxtScheduleView> m_dataSource;
00077 int m_rowCountBuffer;
00078 int m_colCountBuffer;
00079 };
00080
00081 #endif // SPLITVIEWHEADERMODEL_H