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
qlonglongvalidator.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 QLONGLONGVALIDATOR_H
5#define QLONGLONGVALIDATOR_H
6
7#include <QtGui/qvalidator.h>
8
10
11namespace qdesigner_internal {
12
14{
15 Q_OBJECT
16 Q_PROPERTY(qlonglong bottom READ bottom WRITE setBottom)
18
19public:
21 QLongLongValidator(qlonglong bottom, qlonglong top, QObject * parent);
23
24 QValidator::State validate(QString &, int &) const override;
25
26 void setBottom(qlonglong);
27 void setTop(qlonglong);
28 void setRange(qlonglong bottom, qlonglong top);
29
30 qlonglong bottom() const { return b; }
31 qlonglong top() const { return t; }
32
33private:
35
37 qlonglong t;
38};
39
40// ----------------------------------------------------------------------------
42{
43 Q_OBJECT
44 Q_PROPERTY(qulonglong bottom READ bottom WRITE setBottom)
46
47public:
49 QULongLongValidator(qulonglong bottom, qulonglong top, QObject * parent);
51
52 QValidator::State validate(QString &, int &) const override;
53
55 void setTop(qulonglong);
56 void setRange(qulonglong bottom, qulonglong top);
57
58 qulonglong bottom() const { return b; }
59 qulonglong top() const { return t; }
60
61private:
63
65 qulonglong t;
66};
67
68} // namespace qdesigner_internal
69
70QT_END_NAMESPACE
71
72#endif // QLONGLONGVALIDATOR_H
The QDesignerFormEditorInterface class allows you to access Qt Widgets Designer's various components.
friend class QWidget
Definition qpainter.h:421
void setSuperPalette(const QPalette &palette)
static QString msgMissingThemeIcon(const QString &t)
void setTheme(const QString &theme)
void setDefaultPixmap(const QPixmap &pixmap)
static QString displayText(const PropertySheetIconValue &icon)
void setPixmapCache(DesignerPixmapCache *cache)
static QString msgThemeIcon(const QString &t)
void setDefaultPixmapIcon(const QIcon &icon)
void setIconThemeModeEnabled(bool enabled)
void contextMenuEvent(QContextMenuEvent *event) override
This event handler, for event event, can be reimplemented in a subclass to receive widget context men...
void themeEnumChanged(int themeEnum)
void themeChanged(const QString &theme)
void setRange(qlonglong bottom, qlonglong top)
QLongLongValidator(qlonglong bottom, qlonglong top, QObject *parent)
QULongLongValidator(qulonglong bottom, qulonglong top, QObject *parent)
void setRange(qulonglong bottom, qulonglong top)
static constexpr auto defaultResourceAttributeC
static constexpr auto themeEnumAttributeC
static constexpr auto flagsAttributeC
static constexpr auto validationModesAttributeC
static constexpr auto resettableAttributeC
static constexpr auto themeAttributeC
static constexpr auto superPaletteAttributeC
static constexpr auto fontAttributeC
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QT_PROPERTYEDITOR_EXPORT