From e44deed73409001e0cd874ebd0998feaf290f3a7 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 10 Feb 2015 18:08:01 -0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/divelistview.cpp') 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()); -- cgit v1.2.3-70-g09d2