diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-02-10 18:08:01 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-10 13:45:06 -0800 |
commit | e44deed73409001e0cd874ebd0998feaf290f3a7 (patch) | |
tree | 01f124cfb26e8801f31a05f3d30fb70ba884768e /qt-ui/divelistview.cpp | |
parent | 81ba72b219cd27a2de1fbcdfd8e92f9e7296ad9b (diff) | |
download | subsurface-e44deed73409001e0cd874ebd0998feaf290f3a7.tar.gz |
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>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r-- | qt-ui/divelistview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index b1c00ec1c..6d8642272 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -34,6 +34,7 @@ DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelec setSortingEnabled(false); setContextMenuPolicy(Qt::DefaultContextMenu); + setSelectionMode(ExtendedSelection); header()->setContextMenuPolicy(Qt::ActionsContextMenu); const QFontMetrics metrics(defaultModelFont()); |