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
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQUICKVALIDATOR_P_H
6
#
define
QQUICKVALIDATOR_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
19
#
include
<
private
/
qtquickglobal_p
.
h
>
20
21
#
include
<
QtQml
/
qqml
.
h
>
22
23
#
include
<
QtGui
/
qvalidator
.
h
>
24
25
QT_BEGIN_NAMESPACE
26
27
#
if
QT_CONFIG
(
validator
)
28
class
Q_QUICK_EXPORT
QQuickIntValidator
:
public
QIntValidator
29
{
30
Q_OBJECT
31
Q_PROPERTY
(
QString
locale
READ
localeName
WRITE
setLocaleName
RESET
resetLocaleName
NOTIFY
localeNameChanged
)
32
QML_NAMED_ELEMENT
(
IntValidator
)
33
QML_ADDED_IN_VERSION
(2, 0)
34
public
:
35
QQuickIntValidator
(
QObject
*
parent
=
nullptr
);
36
37
QString
localeName
()
const
;
38
void
setLocaleName
(
const
QString
&
name
);
39
void
resetLocaleName
();
40
41
Q_SIGNALS
:
42
void
localeNameChanged
();
43
};
44
45
class
Q_QUICK_EXPORT
QQuickDoubleValidator
:
public
QDoubleValidator
46
{
47
Q_OBJECT
48
Q_PROPERTY
(
QString
locale
READ
localeName
WRITE
setLocaleName
RESET
resetLocaleName
NOTIFY
localeNameChanged
)
49
QML_NAMED_ELEMENT
(
DoubleValidator
)
50
QML_ADDED_IN_VERSION
(2, 0)
51
public
:
52
QQuickDoubleValidator
(
QObject
*
parent
=
nullptr
);
53
54
QString
localeName
()
const
;
55
void
setLocaleName
(
const
QString
&
name
);
56
void
resetLocaleName
();
57
58
Q_SIGNALS
:
59
void
localeNameChanged
();
60
};
61
#
endif
62
63
QT_END_NAMESPACE
64
65
#
endif
// QQUICKVALIDATOR_P_H
QSqlRelationalDelegate
\inmodule QtSql
qtdeclarative
src
quick
util
qquickvalidator_p.h
Generated on
for Qt by
1.14.0