[libcalamares] Deal with Qt5/6 differences in count()
This commit is contained in:
parent
8c66a558d5
commit
6dc83fb277
@ -66,7 +66,7 @@ RequirementsModel::reCheckList()
|
|||||||
int
|
int
|
||||||
RequirementsModel::rowCount( const QModelIndex& ) const
|
RequirementsModel::rowCount( const QModelIndex& ) const
|
||||||
{
|
{
|
||||||
return m_requirements.count();
|
return static_cast< int >( m_requirements.count() ); // TODO 3.4 use qsizetype
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant
|
QVariant
|
||||||
|
@ -61,8 +61,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
QVariant data( const QModelIndex& index, int role ) const override;
|
QVariant data( const QModelIndex& index, int role ) const override;
|
||||||
int rowCount( const QModelIndex& ) const override;
|
int rowCount( const QModelIndex& ) const override; // TODO 3.4 use qsizetype
|
||||||
int count() const { return m_requirements.count(); }
|
int count() const { return static_cast< int >( m_requirements.count() ); } // TODO 3.4 use qsizetype
|
||||||
|
|
||||||
///@brief Debugging tool, describe the checking-state
|
///@brief Debugging tool, describe the checking-state
|
||||||
void describe() const;
|
void describe() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user