[libcalamares] Drop superfluous enum
This commit is contained in:
parent
9a5e614172
commit
da277fa7ba
@ -178,7 +178,7 @@ TZRegionModel::rowCount( const QModelIndex& parent ) const
|
|||||||
QVariant
|
QVariant
|
||||||
TZRegionModel::data( const QModelIndex& index, int role ) const
|
TZRegionModel::data( const QModelIndex& index, int role ) const
|
||||||
{
|
{
|
||||||
if ( ( role != LabelRole ) && ( role != Qt::UserRole ) )
|
if ( ( role != Qt::DisplayRole ) && ( role != Qt::UserRole ) )
|
||||||
{
|
{
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
@ -189,7 +189,7 @@ TZRegionModel::data( const QModelIndex& index, int role ) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
const TZRegion* region = m_regions.at( index.row() );
|
const TZRegion* region = m_regions.at( index.row() );
|
||||||
return role == LabelRole ? region->tr() : region->key();
|
return role == Qt::DisplayRole ? region->tr() : region->key();
|
||||||
}
|
}
|
||||||
|
|
||||||
const TZRegion*
|
const TZRegion*
|
||||||
|
@ -84,11 +84,6 @@ public:
|
|||||||
class DLLEXPORT TZRegionModel : public QAbstractListModel
|
class DLLEXPORT TZRegionModel : public QAbstractListModel
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum
|
|
||||||
{
|
|
||||||
LabelRole = Qt::DisplayRole
|
|
||||||
};
|
|
||||||
|
|
||||||
/// @brief Create empty model (useless)
|
/// @brief Create empty model (useless)
|
||||||
TZRegionModel();
|
TZRegionModel();
|
||||||
virtual ~TZRegionModel() override;
|
virtual ~TZRegionModel() override;
|
||||||
|
Loading…
Reference in New Issue
Block a user