mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Try to force a repaint on selection changed.
This commit is contained in:
parent
f84fce31a5
commit
55c52e654a
2 changed files with 13 additions and 0 deletions
|
@ -494,6 +494,17 @@ PartitionLabelsView::setCustomNewRootLabel( const QString& text )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
PartitionLabelsView::setSelectionModel( QItemSelectionModel* selectionModel )
|
||||||
|
{
|
||||||
|
connect( selectionModel, &QItemSelectionModel::selectionChanged,
|
||||||
|
this, [=]
|
||||||
|
{
|
||||||
|
viewport()->repaint();
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
QModelIndex
|
QModelIndex
|
||||||
PartitionLabelsView::moveCursor( CursorAction cursorAction, Qt::KeyboardModifiers modifiers )
|
PartitionLabelsView::moveCursor( CursorAction cursorAction, Qt::KeyboardModifiers modifiers )
|
||||||
{
|
{
|
||||||
|
|
|
@ -49,6 +49,8 @@ public:
|
||||||
|
|
||||||
void setCustomNewRootLabel( const QString& text );
|
void setCustomNewRootLabel( const QString& text );
|
||||||
|
|
||||||
|
void setSelectionModel( QItemSelectionModel* selectionModel ) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// QAbstractItemView API
|
// QAbstractItemView API
|
||||||
QRegion visualRegionForSelection( const QItemSelection& selection ) const override;
|
QRegion visualRegionForSelection( const QItemSelection& selection ) const override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue