[calamares] Remove unused item Role
This commit is contained in:
parent
3ccbcdc1bd
commit
3e88b408fa
@ -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…
Reference in New Issue
Block a user