- Timestamp:
- May 3, 2011, 4:49:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vendor/nokia/qt/current/demos/interview/model.cpp
r649 r844 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 46 46 Model::Model(int rows, int columns, QObject *parent) 47 47 : QAbstractItemModel(parent), 48 48 49 rc(rows), cc(columns), 49 50 tree(new QVector<Node>(rows, Node(0))) … … 106 107 QVariant Model::headerData(int section, Qt::Orientation orientation, int role) const 107 108 { 108 static QIcon services(QPixmap(":/images/services.png"));109 109 if (role == Qt::DisplayRole) 110 110 return QString::number(section);
Note:
See TracChangeset
for help on using the changeset viewer.
