##// END OF EJS Templates
const fix
sauimone -
r777:25614395a437
parent child
Show More
@@ -32,7 +32,7 public:
32 // TODO
32 // TODO
33 virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
33 virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
34 void setName(QString name) { m_name = name; }
34 void setName(QString name) { m_name = name; }
35 QString name() { return m_name; }
35 QString name() const { return m_name; }
36
36
37 protected:
37 protected:
38 QAbstractItemModel* m_model;
38 QAbstractItemModel* m_model;
@@ -40,7 +40,7 public:
40 QBrush brush() const {return m_brush;}
40 QBrush brush() const {return m_brush;}
41
41
42 bool setModel(QAbstractItemModel *model);
42 bool setModel(QAbstractItemModel *model);
43 QAbstractItemModel* model() { return m_model; }
43 QAbstractItemModel* model() const { return m_model; }
44
44
45 virtual void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical);
45 virtual void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical);
46 virtual void setModelMappingShift(int first, int count = 0);
46 virtual void setModelMappingShift(int first, int count = 0);
General Comments 0
You need to be logged in to leave comments. Login now