demos/interview/model.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
--- a/demos/interview/model.cpp	Wed Jun 23 19:07:03 2010 +0300
+++ b/demos/interview/model.cpp	Tue Jul 06 15:10:48 2010 +0300
@@ -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::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)