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