mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Fix a regression on selection caused by the new interface code
In the designer we set the selection type to extendedSelection but since I removed the widget from the designer, I also had to set it in the code. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
81ba72b219
commit
e44deed734
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelec
|
||||||
|
|
||||||
setSortingEnabled(false);
|
setSortingEnabled(false);
|
||||||
setContextMenuPolicy(Qt::DefaultContextMenu);
|
setContextMenuPolicy(Qt::DefaultContextMenu);
|
||||||
|
setSelectionMode(ExtendedSelection);
|
||||||
header()->setContextMenuPolicy(Qt::ActionsContextMenu);
|
header()->setContextMenuPolicy(Qt::ActionsContextMenu);
|
||||||
|
|
||||||
const QFontMetrics metrics(defaultModelFont());
|
const QFontMetrics metrics(defaultModelFont());
|
||||||
|
|
Loading…
Reference in a new issue