Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
propertydialog.h
Go to the documentation of this file.
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
PropertyDialog
Definition
propertydialog.h:13
PropertyDialog::setInfo
void setInfo(const QString &caption)
Definition
propertydialog.cpp:35
PropertyDialog::exec
int exec() override
Shows the dialog as a \l{QDialog::Modal Dialogs}{modal dialog}, blocking until the user closes it.
Definition
propertydialog.cpp:61
PropertyDialog::values
QList< QVariant > values() const
Definition
propertydialog.cpp:69
PropertyDialog::addProperty
void addProperty(const QString &name, int type)
Definition
propertydialog.cpp:40
qttools
src
qdbus
qdbusviewer
propertydialog.h
Generated on
for Qt by
1.18.0