src/gui/itemviews/qabstractproxymodel.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
   125         d->model = sourceModel;
   125         d->model = sourceModel;
   126         connect(d->model, SIGNAL(destroyed()), this, SLOT(_q_sourceModelDestroyed()));
   126         connect(d->model, SIGNAL(destroyed()), this, SLOT(_q_sourceModelDestroyed()));
   127     } else {
   127     } else {
   128         d->model = QAbstractItemModelPrivate::staticEmptyModel();
   128         d->model = QAbstractItemModelPrivate::staticEmptyModel();
   129     }
   129     }
       
   130     d->roleNames = d->model->roleNames();
   130 }
   131 }
   131 
   132 
   132 /*!
   133 /*!
   133     Returns the model that contains the data that is available through the proxy model.
   134     Returns the model that contains the data that is available through the proxy model.
   134 */
   135 */