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