Most of functionality for connections in tree works now. Old list largely removed.
This commit is contained in:
parent
8840d3bcbb
commit
b3a98f6dc0
10 changed files with 399 additions and 158 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <QWidget>
|
||||
#include <QUuid>
|
||||
#include <tuple>
|
||||
|
||||
class ConnectionController;
|
||||
class ConnectionConfig;
|
||||
|
|
@ -13,6 +14,7 @@ class QSpinBox;
|
|||
class QComboBox;
|
||||
class QDataWidgetMapper;
|
||||
|
||||
class ConnectionTreeModel;
|
||||
|
||||
class ConnectionConfigurationWidget : public QWidget
|
||||
{
|
||||
|
|
@ -20,17 +22,18 @@ class ConnectionConfigurationWidget : public QWidget
|
|||
public:
|
||||
static void editExistingInWindow(ConnectionController *ctrl, const ConnectionConfig &cfg);
|
||||
|
||||
explicit ConnectionConfigurationWidget(QWidget *parent = nullptr);
|
||||
explicit ConnectionConfigurationWidget(ConnectionTreeModel *connection_model, QWidget *parent = nullptr);
|
||||
|
||||
void retranslateUi();
|
||||
void setData(const ConnectionConfig &cfg);
|
||||
ConnectionConfig data() const;
|
||||
std::tuple<QString, ConnectionConfig> data() const;
|
||||
signals:
|
||||
|
||||
private:
|
||||
QUuid m_uuid;
|
||||
|
||||
QFormLayout *formLayout;
|
||||
QLabel *lblGroup;
|
||||
QComboBox *cmbbxGroup;
|
||||
QLabel *lblName;
|
||||
QLineEdit *edtName;
|
||||
QLabel *lblHost;
|
||||
|
|
@ -51,6 +54,7 @@ private:
|
|||
QLineEdit *edtRootCert;
|
||||
QLabel *lblCrl;
|
||||
QLineEdit *edtCrl;
|
||||
QFormLayout *formLayout;
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue