mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 10:55:37 -04:00
[packagechooser] Add selection modes
- Introduce different selection modes (most don't work yet) - Use model data in the main widget
This commit is contained in:
parent
86e2e6242f
commit
2272d2ab43
4 changed files with 42 additions and 25 deletions
|
@ -83,10 +83,18 @@ PackageListModel::data( const QModelIndex& index, int role ) const
|
|||
return QVariant();
|
||||
}
|
||||
|
||||
if ( role == Qt::DisplayRole )
|
||||
if ( role == Qt::DisplayRole /* Also PackageNameRole */ )
|
||||
{
|
||||
return m_packages[ row ].name;
|
||||
}
|
||||
else if ( role == DescriptionRole )
|
||||
{
|
||||
return m_packages[ row ].description;
|
||||
}
|
||||
else if ( role == ScreenshotRole )
|
||||
{
|
||||
return m_packages[ row ].screenshot;
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue