Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickvalidator_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKVALIDATOR_P_H
5#define QQUICKVALIDATOR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qtquickglobal_p.h>
19
20#include <QtQml/qqml.h>
21
22#include <QtGui/qvalidator.h>
23
25
26#if QT_CONFIG(validator)
27class Q_QUICK_PRIVATE_EXPORT QQuickIntValidator : public QIntValidator
28{
30 Q_PROPERTY(QString locale READ localeName WRITE setLocaleName RESET resetLocaleName NOTIFY localeNameChanged FINAL)
31 QML_NAMED_ELEMENT(IntValidator)
33public:
34 QQuickIntValidator(QObject *parent = nullptr);
35
36 QString localeName() const;
37 void setLocaleName(const QString &name);
38 void resetLocaleName();
39
41 void localeNameChanged();
42};
43
44class Q_QUICK_PRIVATE_EXPORT QQuickDoubleValidator : public QDoubleValidator
45{
47 Q_PROPERTY(QString locale READ localeName WRITE setLocaleName RESET resetLocaleName NOTIFY localeNameChanged FINAL)
48 QML_NAMED_ELEMENT(DoubleValidator)
50public:
51 QQuickDoubleValidator(QObject *parent = nullptr);
52
53 QString localeName() const;
54 void setLocaleName(const QString &name);
55 void resetLocaleName();
56
58 void localeNameChanged();
59};
60#endif
61
63
64#if QT_CONFIG(validator)
66QML_DECLARE_TYPE(QQuickIntValidator)
67QML_DECLARE_TYPE(QQuickDoubleValidator)
68#if QT_CONFIG(regularexpression)
69QML_DECLARE_TYPE(QRegularExpressionValidator)
70#endif
71#endif
72
73#endif // QQUICKVALIDATOR_P_H
The QDoubleValidator class provides range checking of floating-point numbers.
Definition qvalidator.h:89
The QIntValidator class provides a validator that ensures a string contains a valid integer within a ...
Definition qvalidator.h:56
\inmodule QtCore
Definition qobject.h:90
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
The QValidator class provides validation of input text.
Definition qvalidator.h:24
Combined button and popup list for selecting options.
GLuint name
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent