added connectionController and ConnectionButton.qml
This commit is contained in:
parent
dd0de7e8be
commit
35d4222c7a
17 changed files with 233 additions and 60 deletions
|
@ -15,12 +15,13 @@ class ContainersModel : public QAbstractListModel
|
|||
public:
|
||||
ContainersModel(std::shared_ptr<Settings> settings, QObject *parent = nullptr);
|
||||
public:
|
||||
enum SiteRoles {
|
||||
enum ContainersModelRoles {
|
||||
NameRole = Qt::UserRole + 1,
|
||||
DescRole,
|
||||
DefaultRole,
|
||||
ServiceTypeRole,
|
||||
IsInstalledRole
|
||||
ConfigRole,
|
||||
IsInstalledRole,
|
||||
IsDefaultRole
|
||||
};
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
@ -32,6 +33,9 @@ public:
|
|||
|
||||
Q_INVOKABLE QString getCurrentlyInstalledContainerName();
|
||||
|
||||
public slots:
|
||||
DockerContainer getDefaultContainer();
|
||||
|
||||
protected:
|
||||
QHash<int, QByteArray> roleNames() const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue