src/gui/itemviews/qabstractproxymodel.cpp
branchRCL_3
changeset 8 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
   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 */