diff --git a/src/calamares/progresstree/ProgressTreeItem.cpp b/src/calamares/progresstree/ProgressTreeItem.cpp index 769ffaf90..0445962ab 100644 --- a/src/calamares/progresstree/ProgressTreeItem.cpp +++ b/src/calamares/progresstree/ProgressTreeItem.cpp @@ -84,9 +84,7 @@ ProgressTreeRoot::ProgressTreeRoot() QVariant -ProgressTreeRoot::data( int role ) const +ProgressTreeRoot::data( int ) const { - if ( role == ProgressTreeModel::ProgressTreeItemRole ) - return this; return QVariant(); } diff --git a/src/calamares/progresstree/ProgressTreeModel.h b/src/calamares/progresstree/ProgressTreeModel.h index d89707183..0e9574516 100644 --- a/src/calamares/progresstree/ProgressTreeModel.h +++ b/src/calamares/progresstree/ProgressTreeModel.h @@ -35,7 +35,6 @@ class ProgressTreeModel : public QAbstractItemModel public: enum Role { - ProgressTreeItemRole = Qt::UserRole + 10, ProgressTreeItemCurrentRole = Qt::UserRole + 11 }; diff --git a/src/calamares/progresstree/ViewStepItem.cpp b/src/calamares/progresstree/ViewStepItem.cpp index 7c17ff5ae..fe2fe6034 100644 --- a/src/calamares/progresstree/ViewStepItem.cpp +++ b/src/calamares/progresstree/ViewStepItem.cpp @@ -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()