mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 11:25:36 -04:00
Use currentIndex instead of selection.
This commit is contained in:
parent
99a5ac8e4d
commit
8acb70de5c
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ PartitionBarsView::isIndexHidden( const QModelIndex& index ) const
|
||||||
void
|
void
|
||||||
PartitionBarsView::setSelection( const QRect& rect, QItemSelectionModel::SelectionFlags flags )
|
PartitionBarsView::setSelection( const QRect& rect, QItemSelectionModel::SelectionFlags flags )
|
||||||
{
|
{
|
||||||
selectionModel()->select( indexAt( rect.topLeft() ), flags );
|
selectionModel()->setCurrentIndex( indexAt( rect.topLeft() ), flags );
|
||||||
cDebug() << "selected items count:" << selectedIndexes().count();
|
cDebug() << "selected items count:" << selectedIndexes().count();
|
||||||
QStringList itemstrings;
|
QStringList itemstrings;
|
||||||
foreach( const QModelIndex& ind, selectedIndexes() )
|
foreach( const QModelIndex& ind, selectedIndexes() )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue