Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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_EXPORT QQuickIntValidator : public QIntValidator
28{
30 Q_PROPERTY(QString locale READ localeName WRITE setLocaleName RESET resetLocaleName NOTIFY localeNameChanged)
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_EXPORT QQuickDoubleValidator : public QDoubleValidator
45{
47 Q_PROPERTY(QString locale READ localeName WRITE setLocaleName RESET resetLocaleName NOTIFY localeNameChanged)
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#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:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLuint name
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS