Cleanup ComputerModel and remove root Frame from PcView
This commit is contained in:
parent
b0151da455
commit
f83c13ad85
3 changed files with 80 additions and 84 deletions
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
class ComputerModel : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
enum Roles
|
||||
{
|
||||
NameRole = Qt::UserRole,
|
||||
|
|
@ -14,7 +16,7 @@ class ComputerModel : public QAbstractListModel
|
|||
};
|
||||
|
||||
public:
|
||||
ComputerModel(QObject* object = nullptr);
|
||||
explicit ComputerModel(QObject* object = nullptr);
|
||||
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue