| 1293 | } |
| 1294 | |
| 1295 | void UBFeaturesController::assignFeaturesListView(UBFeaturesListView *pList) |
| 1296 | { |
| 1297 | pList->setDragDropMode( QAbstractItemView::DragDrop ); |
| 1298 | pList->setSelectionMode( QAbstractItemView::ContiguousSelection ); |
| 1299 | |
| 1300 | pList->setResizeMode( QListView::Adjust ); |
| 1301 | pList->setViewMode( QListView::IconMode ); |
| 1302 | |
| 1303 | pList->setIconSize(QSize(UBFeaturesWidget::defaultThumbnailSize, UBFeaturesWidget::defaultThumbnailSize)); |
| 1304 | pList->setGridSize(QSize(UBFeaturesWidget::defaultThumbnailSize + 20, UBFeaturesWidget::defaultThumbnailSize + 20)); |
| 1305 | |
| 1306 | itemDelegate = new UBFeaturesItemDelegate(this, pList); |
| 1307 | pList->setItemDelegate(itemDelegate); |
| 1308 | |
| 1309 | pList->setModel(featuresProxyModel); |
| 1310 | curListModel = featuresProxyModel; |
| 1311 | } |
| 1312 | |
| 1313 | void UBFeaturesController::assignPathListView(UBFeaturesListView *pList) |
| 1314 | { |
no test coverage detected