Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
newdynamicpropertydialog.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// Qt-Security score:significant reason:default
4
5#ifndef NEWDYNAMICPROPERTYDIALOG_P_H
6#define NEWDYNAMICPROPERTYDIALOG_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20#include <QtWidgets/qdialog.h>
21#include <QtCore/qvariant.h>
22
23QT_BEGIN_NAMESPACE
24
25class QAbstractButton;
26class QDesignerDialogGuiInterface;
27
28namespace qdesigner_internal {
29
30namespace Ui
31{
32 class NewDynamicPropertyDialog;
33}
34
36{
38public:
41
42 void setReservedNames(const QStringList &names);
43 void setPropertyType(int t);
44
45 QString propertyName() const;
46 QVariant propertyValue() const;
47
48private slots:
49
51 void nameChanged(const QString &);
52
53private:
54 bool validatePropertyName(const QString& name);
55 void setOkButtonEnabled(bool e);
56 void information(const QString &message);
57
58 QDesignerDialogGuiInterface *m_dialogGui;
59 Ui::NewDynamicPropertyDialog *m_ui;
60 QStringList m_reservedNames;
61};
62
63} // namespace qdesigner_internal
64
65QT_END_NAMESPACE
66
67#endif // NEWDYNAMICPROPERTYDIALOG_P_H
friend class QWidget
Definition qpainter.h:432
Auxiliary methods to store/retrieve settings.
#define QT_PROPERTYEDITOR_EXPORT