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:
parent
033d2b3d45
commit
e4a43a77bd
2 changed files with 30 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue