|
|
@ -36,13 +36,13 @@ class PackageModel : public QAbstractItemModel
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
explicit PackageModel( const YAML::Node& data, QObject* parent = nullptr );
|
|
|
|
explicit PackageModel( const YAML::Node& data, QObject* parent = nullptr );
|
|
|
|
~PackageModel();
|
|
|
|
~PackageModel() override;
|
|
|
|
|
|
|
|
|
|
|
|
QVariant data( const QModelIndex& index, int role ) const override;
|
|
|
|
QVariant data( const QModelIndex& index, int role ) const override;
|
|
|
|
bool setData( const QModelIndex& index, const QVariant& value,
|
|
|
|
bool setData( const QModelIndex& index, const QVariant& value,
|
|
|
|
int role = Qt::EditRole ) override;
|
|
|
|
int role = Qt::EditRole ) override;
|
|
|
|
bool setHeaderData( int section, Qt::Orientation orientation,
|
|
|
|
bool setHeaderData( int section, Qt::Orientation orientation,
|
|
|
|
const QVariant& value, int role = Qt::EditRole );
|
|
|
|
const QVariant& value, int role = Qt::EditRole ) override;
|
|
|
|
Qt::ItemFlags flags( const QModelIndex& index ) const override;
|
|
|
|
Qt::ItemFlags flags( const QModelIndex& index ) const override;
|
|
|
|
QVariant headerData( int section, Qt::Orientation orientation,
|
|
|
|
QVariant headerData( int section, Qt::Orientation orientation,
|
|
|
|
int role = Qt::DisplayRole ) const override;
|
|
|
|
int role = Qt::DisplayRole ) const override;
|
|
|
|