svn path=/trunk/KDE/kdebase/apps/; revision=744230
m_detailsView(0),
m_columnView(0),
m_fileItemDelegate(0),
m_detailsView(0),
m_columnView(0),
m_fileItemDelegate(0),
m_dolphinModel(dolphinModel),
m_dirLister(dirLister),
m_proxyModel(proxyModel)
m_dolphinModel(dolphinModel),
m_dirLister(dirLister),
m_proxyModel(proxyModel)
view->setItemDelegate(m_fileItemDelegate);
view->setModel(m_proxyModel);
view->setItemDelegate(m_fileItemDelegate);
view->setModel(m_proxyModel);
+ if(m_selectionModel)
+ view->setSelectionModel(m_selectionModel);
+ else
+ m_selectionModel = view->selectionModel();
+
+ m_selectionModel->setParent(this); //Reparent the selection model. We do not want it to be deleted when we delete the model
+
view->setSelectionMode(QAbstractItemView::ExtendedSelection);
new KMimeTypeResolver(view, m_dolphinModel);
view->setSelectionMode(QAbstractItemView::ExtendedSelection);
new KMimeTypeResolver(view, m_dolphinModel);
DolphinDetailsView* m_detailsView;
DolphinColumnView* m_columnView;
KFileItemDelegate* m_fileItemDelegate;
DolphinDetailsView* m_detailsView;
DolphinColumnView* m_columnView;
KFileItemDelegate* m_fileItemDelegate;
+ QItemSelectionModel *m_selectionModel;
DolphinModel* m_dolphinModel;
KDirLister* m_dirLister;
DolphinModel* m_dolphinModel;
KDirLister* m_dirLister;