ConnectionManager overhaul

- connection settings are now changed by seperate component currently called in a seperate window
- old settings pane on the right of the connections had been removed
- new edit config button added between new connection and remove connection
This commit is contained in:
eelke 2019-08-24 20:47:32 +02:00
parent 78247c7abe
commit b09e8a6d4b
20 changed files with 836 additions and 733 deletions

20
pglab/SslModeModel.h Normal file
View file

@ -0,0 +1,20 @@
#ifndef SSLMODEMODEL_H
#define SSLMODEMODEL_H
#include <QAbstractListModel>
class SslModeModel : public QAbstractListModel
{
Q_OBJECT
public:
enum Column { Name, Description, ColCount };
SslModeModel(QObject *parent = nullptr);
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
};
#endif // SSLMODEMODEL_H