mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[netinstall] It should be easier to get the number 2
This commit is contained in:
parent
497ecda14d
commit
5b67ca315a
3 changed files with 1 additions and 13 deletions
|
@ -106,11 +106,7 @@ PackageModel::rowCount( const QModelIndex& parent ) const
|
|||
int
|
||||
PackageModel::columnCount( const QModelIndex& parent ) const
|
||||
{
|
||||
if ( parent.isValid() )
|
||||
{
|
||||
return static_cast< PackageTreeItem* >( parent.internalPointer() )->columnCount();
|
||||
}
|
||||
return m_rootItem->columnCount();
|
||||
return 2;
|
||||
}
|
||||
|
||||
QVariant
|
||||
|
|
|
@ -105,12 +105,6 @@ PackageTreeItem::row() const
|
|||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
PackageTreeItem::columnCount() const
|
||||
{
|
||||
return m_columns;
|
||||
}
|
||||
|
||||
QVariant
|
||||
PackageTreeItem::data( int column ) const
|
||||
{
|
||||
|
|
|
@ -54,7 +54,6 @@ public:
|
|||
void appendChild( PackageTreeItem* child );
|
||||
PackageTreeItem* child( int row );
|
||||
int childCount() const;
|
||||
int columnCount() const;
|
||||
QVariant data( int column ) const override;
|
||||
int row() const;
|
||||
|
||||
|
@ -90,7 +89,6 @@ private:
|
|||
PackageTreeItem* m_parentItem;
|
||||
QList< PackageTreeItem* > m_childItems;
|
||||
ItemData m_data;
|
||||
const int m_columns = 2; // Name, description
|
||||
};
|
||||
|
||||
#endif // PACKAGETREEITEM_H
|
||||
|
|
Loading…
Add table
Reference in a new issue