equal
deleted
inserted
replaced
14 * You should have received a copy of the GNU General Public License |
14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software |
15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
17 */ |
17 */ |
18 |
18 |
|
19 #include "hats.h" |
|
20 |
19 HatsModel::HatsModel(QObject* parent) : |
21 HatsModel::HatsModel(QObject* parent) : |
20 QAbstractTableModel(parent) |
22 QAbstractTableModel(parent) |
21 { |
23 { |
22 |
24 |
23 } |
25 } |
|
26 |
|
27 QVariant HatsModel::headerData(int section, |
|
28 Qt::Orientation orientation, int role) const |
|
29 { |
|
30 return QVariant(); |
|
31 } |
|
32 |
|
33 int HatsModel::rowCount(const QModelIndex &parent) const |
|
34 { |
|
35 if (parent.isValid()) |
|
36 return 0; |
|
37 else |
|
38 return 60; |
|
39 } |
|
40 |
|
41 int HatsModel::columnCount(const QModelIndex & parent) const |
|
42 { |
|
43 if (parent.isValid()) |
|
44 return 0; |
|
45 else |
|
46 return 2; |
|
47 } |