First test with QDataWidgetMapper to connect controls to the items in the connection list is working.
This commit is contained in:
parent
f5eab84c24
commit
c235169304
6 changed files with 256 additions and 84 deletions
|
|
@ -8,6 +8,9 @@ class ConnectionManagerWindow;
|
|||
}
|
||||
|
||||
class ConnectionListModel;
|
||||
class ConnectionConfig;
|
||||
class QDataWidgetMapper;
|
||||
class QStandardItemModel;
|
||||
|
||||
class ConnectionManagerWindow : public QMainWindow
|
||||
{
|
||||
|
|
@ -25,6 +28,9 @@ private slots:
|
|||
private:
|
||||
Ui::ConnectionManagerWindow *ui;
|
||||
ConnectionListModel *m_listModel = nullptr;
|
||||
QDataWidgetMapper *m_mapper = nullptr;
|
||||
|
||||
void controlsToConfig(ConnectionConfig &cfg);
|
||||
};
|
||||
|
||||
#endif // CONNECTIONMANAGERWINDOW_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue