Disable editing of the description of the connections in the connection ListView.

Also replace the integer literals defining the columns for enum to make more readable.
This commit is contained in:
eelke 2019-08-19 19:26:39 +02:00
parent 033d2b3d45
commit e4a43a77bd
2 changed files with 30 additions and 16 deletions

View file

@ -18,6 +18,18 @@ class ConnectionList;
class ConnectionListModel : public QAbstractListModel {
Q_OBJECT
public:
enum Columns {
Description,
Name,
Host,
Port,
User,
Password,
DbName,
ColCount
};
ConnectionListModel(ConnectionList *conns, QObject *parent);
ConnectionListModel(const ConnectionListModel&) = delete;
~ConnectionListModel() override;