mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
[calamares] Remove unused item Role
This commit is contained in:
parent
3ccbcdc1bd
commit
3e88b408fa
3 changed files with 1 additions and 6 deletions
|
@ -84,9 +84,7 @@ ProgressTreeRoot::ProgressTreeRoot()
|
|||
|
||||
|
||||
QVariant
|
||||
ProgressTreeRoot::data( int role ) const
|
||||
ProgressTreeRoot::data( int ) const
|
||||
{
|
||||
if ( role == ProgressTreeModel::ProgressTreeItemRole )
|
||||
return this;
|
||||
return QVariant();
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ class ProgressTreeModel : public QAbstractItemModel
|
|||
public:
|
||||
enum Role
|
||||
{
|
||||
ProgressTreeItemRole = Qt::UserRole + 10,
|
||||
ProgressTreeItemCurrentRole = Qt::UserRole + 11
|
||||
};
|
||||
|
||||
|
|
|
@ -53,8 +53,6 @@ ViewStepItem::appendChild( ProgressTreeItem* item )
|
|||
QVariant
|
||||
ViewStepItem::data( int role ) const
|
||||
{
|
||||
if ( role == ProgressTreeModel::ProgressTreeItemRole )
|
||||
return this;
|
||||
if ( role == Qt::DisplayRole )
|
||||
{
|
||||
return m_step ? m_step->prettyName()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue