diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-03-01 14:52:15 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-03-01 14:52:42 (GMT) |
commit | e24247b07c6450881094200e729390b676f911aa (patch) | |
tree | 79f1432dc78bc1778f7886f7e2d6f3bb8b7f1d06 /demos/interview/model.cpp | |
parent | d628a467159b79c85885acb21510cb1e646a968b (diff) | |
download | Qt-e24247b07c6450881094200e729390b676f911aa.zip Qt-e24247b07c6450881094200e729390b676f911aa.tar.gz Qt-e24247b07c6450881094200e729390b676f911aa.tar.bz2 |
Interview Demo: Fix warning about pixmap leak on X11.
Reviewed-by: Trond Kjernåsen <trond.kjernasen@nokia.com>
Diffstat (limited to 'demos/interview/model.cpp')
-rw-r--r-- | demos/interview/model.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/interview/model.cpp b/demos/interview/model.cpp index 3f9548a..840bc60 100644 --- a/demos/interview/model.cpp +++ b/demos/interview/model.cpp @@ -45,6 +45,7 @@ Model::Model(int rows, int columns, QObject *parent) : QAbstractItemModel(parent), + services(QPixmap(":/images/services.png")), rc(rows), cc(columns), tree(new QVector<Node>(rows, Node(0))) { @@ -105,7 +106,6 @@ QVariant Model::data(const QModelIndex &index, int role) const QVariant Model::headerData(int section, Qt::Orientation orientation, int role) const { - static QIcon services(QPixmap(":/images/services.png")); if (role == Qt::DisplayRole) return QString::number(section); if (role == Qt::DecorationRole) |