Changeset 846 for trunk/demos/interview
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/demos/interview/main.cpp
r651 r846 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]) -
trunk/demos/interview/model.cpp
r651 r846 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); -
trunk/demos/interview/model.h
r651 r846 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]) … … 45 45 #include <QAbstractItemModel> 46 46 #include <QFileIconProvider> 47 47 48 #include <QVector> 48 49 … … 81 82 int row(Node *node) const; 82 83 84 83 85 int rc, cc; 84 86 QVector<Node> *tree;
Note:
See TracChangeset
for help on using the changeset viewer.