mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
Apply SelectionFilter in Partition{Labels,Bars}View.
This commit is contained in:
parent
f7f19eb617
commit
ddf4878ec7
4 changed files with 31 additions and 2 deletions
|
@ -20,6 +20,8 @@
|
|||
#ifndef PARTITIONLABELSVIEW_H
|
||||
#define PARTITIONLABELSVIEW_H
|
||||
|
||||
#include "PartitionViewSelectionFilter.h"
|
||||
|
||||
#include <QAbstractItemView>
|
||||
|
||||
/**
|
||||
|
@ -51,6 +53,8 @@ public:
|
|||
|
||||
void setSelectionModel( QItemSelectionModel* selectionModel ) override;
|
||||
|
||||
void setSelectionFilter( SelectionFilter canBeSelected );
|
||||
|
||||
protected:
|
||||
// QAbstractItemView API
|
||||
QRegion visualRegionForSelection( const QItemSelection& selection ) const override;
|
||||
|
@ -75,6 +79,9 @@ private:
|
|||
const QPoint& pos , bool selected );
|
||||
QModelIndexList getIndexesToDraw( const QModelIndex& parent ) const;
|
||||
QStringList buildTexts( const QModelIndex& index ) const;
|
||||
|
||||
SelectionFilter canBeSelected;
|
||||
|
||||
QString m_customNewRootLabel;
|
||||
QPersistentModelIndex m_hoveredIndex;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue