| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
| 3 | |
| 4 | #ifndef PROPERTYDIALOG_H |
| 5 | #define PROPERTYDIALOG_H |
| 6 | |
| 7 | #include <QLabel> |
| 8 | #include <QDialog> |
| 9 | #include <QTableWidget> |
| 10 | #include <QDialogButtonBox> |
| 11 | |
| 12 | class PropertyDialog: public QDialog |
| 13 | { |
| 14 | Q_OBJECT |
| 15 | public: |
| 16 | explicit PropertyDialog(QWidget *parent = 0, Qt::WindowFlags f = {}); |
| 17 | |
| 18 | void addProperty(const QString &name, int type); |
| 19 | void setInfo(const QString &caption); |
| 20 | |
| 21 | QList<QVariant> values() const; |
| 22 | |
| 23 | int exec() override; |
| 24 | |
| 25 | private: |
| 26 | QLabel *label; |
| 27 | QTableWidget *propertyTable; |
| 28 | QDialogButtonBox *buttonBox; |
| 29 | }; |
| 30 | |
| 31 | #endif |
| 32 | |
| 33 | |