Prevent scrollbars on entry drag/drop

* Fixes #9746
This commit is contained in:
Jonathan White 2023-08-16 07:38:16 -04:00
parent 1a81f79df7
commit ddd2fcecea

View File

@ -559,6 +559,8 @@ void EntryView::startDrag(Qt::DropActions supportedActions)
listWidget.addItem(item); listWidget.addItem(item);
} }
listWidget.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
listWidget.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
listWidget.setStyleSheet("QListWidget { background-color: palette(highlight); border: 1px solid palette(dark); " listWidget.setStyleSheet("QListWidget { background-color: palette(highlight); border: 1px solid palette(dark); "
"padding: 4px; color: palette(highlighted-text); }"); "padding: 4px; color: palette(highlighted-text); }");
auto width = listWidget.sizeHintForColumn(0) + 2 * listWidget.frameWidth(); auto width = listWidget.sizeHintForColumn(0) + 2 * listWidget.frameWidth();