From ba01022d4216e0092e8ff13ad37241d76856299c Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 15 Jan 2016 18:03:48 +0100 Subject: [PATCH] Set the filter function in Labels view. --- src/modules/partition/gui/PartitionLabelsView.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/partition/gui/PartitionLabelsView.cpp b/src/modules/partition/gui/PartitionLabelsView.cpp index 6bb90c4e6..e2c9e09e3 100644 --- a/src/modules/partition/gui/PartitionLabelsView.cpp +++ b/src/modules/partition/gui/PartitionLabelsView.cpp @@ -507,6 +507,13 @@ PartitionLabelsView::setSelectionModel( QItemSelectionModel* selectionModel ) } +void +PartitionLabelsView::setSelectionFilter( SelectionFilter canBeSelected ) +{ + this->canBeSelected = canBeSelected; +} + + QModelIndex PartitionLabelsView::moveCursor( CursorAction cursorAction, Qt::KeyboardModifiers modifiers ) {