[calamares] Remove unused item Role

This commit is contained in:
Adriaan de Groot 2019-04-18 12:40:04 +02:00
parent 3ccbcdc1bd
commit 3e88b408fa
3 changed files with 1 additions and 6 deletions

View File

@ -84,9 +84,7 @@ ProgressTreeRoot::ProgressTreeRoot()
QVariant QVariant
ProgressTreeRoot::data( int role ) const ProgressTreeRoot::data( int ) const
{ {
if ( role == ProgressTreeModel::ProgressTreeItemRole )
return this;
return QVariant(); return QVariant();
} }

View File

@ -35,7 +35,6 @@ class ProgressTreeModel : public QAbstractItemModel
public: public:
enum Role enum Role
{ {
ProgressTreeItemRole = Qt::UserRole + 10,
ProgressTreeItemCurrentRole = Qt::UserRole + 11 ProgressTreeItemCurrentRole = Qt::UserRole + 11
}; };

View File

@ -53,8 +53,6 @@ ViewStepItem::appendChild( ProgressTreeItem* item )
QVariant QVariant
ViewStepItem::data( int role ) const ViewStepItem::data( int role ) const
{ {
if ( role == ProgressTreeModel::ProgressTreeItemRole )
return this;
if ( role == Qt::DisplayRole ) if ( role == Qt::DisplayRole )
{ {
return m_step ? m_step->prettyName() return m_step ? m_step->prettyName()