Skip to content

Commit

Permalink
Prevent scrollbars on entry drag/drop
Browse files Browse the repository at this point in the history
* Fixes #9746
  • Loading branch information
droidmonkey committed Oct 24, 2023
1 parent 1a81f79 commit ddd2fce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/entry/EntryView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ void EntryView::startDrag(Qt::DropActions supportedActions)
listWidget.addItem(item);
}

listWidget.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
listWidget.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
listWidget.setStyleSheet("QListWidget { background-color: palette(highlight); border: 1px solid palette(dark); "
"padding: 4px; color: palette(highlighted-text); }");
auto width = listWidget.sizeHintForColumn(0) + 2 * listWidget.frameWidth();
Expand Down

0 comments on commit ddd2fce

Please sign in to comment.