MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / assignPathListView

Method assignPathListView

src/board/UBFeaturesController.cpp:1313–1330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1311}
1312
1313void UBFeaturesController::assignPathListView(UBFeaturesListView *pList)
1314{
1315 pList->setViewMode(QListView::IconMode );
1316 pList->setIconSize(QSize(UBFeaturesWidget::defaultThumbnailSize - 10, UBFeaturesWidget::defaultThumbnailSize - 10));
1317 pList->setGridSize(QSize(UBFeaturesWidget::defaultThumbnailSize + 10, UBFeaturesWidget::defaultThumbnailSize - 10));
1318 pList->setFixedHeight(60);
1319 pList->setSelectionMode(QAbstractItemView::NoSelection);
1320 pList->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
1321 pList->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
1322 pList->setFlow(QListView::LeftToRight);
1323 pList->setWrapping(false);
1324 pList->setDragDropMode(QAbstractItemView::DropOnly);
1325
1326 pList->setModel( featuresPathModel);
1327
1328 pathItemDelegate = new UBFeaturesPathItemDelegate(this);
1329 pList->setItemDelegate(pathItemDelegate);
1330}
1331
1332

Callers 1

UBFeaturesWidgetMethod · 0.80

Calls 1

setModelMethod · 0.80

Tested by

no test coverage detected