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
qquickdelaybutton_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QQUICKDELAYBUTTON_P_H
6#define QQUICKDELAYBUTTON_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 <QtQuickTemplates2/private/qquickabstractbutton_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class QQuickTransition;
25
26class Q_QUICKTEMPLATES2_EXPORT QQuickDelayButton : public QQuickAbstractButton
27{
28 Q_OBJECT
29 Q_PROPERTY(int delay READ delay WRITE setDelay NOTIFY delayChanged FINAL)
30 Q_PROPERTY(qreal progress READ progress WRITE setProgress NOTIFY progressChanged FINAL)
31 Q_PROPERTY(QQuickTransition *transition READ transition WRITE setTransition NOTIFY transitionChanged FINAL)
32 QML_NAMED_ELEMENT(DelayButton)
33 QML_ADDED_IN_VERSION(2, 2)
34
35public:
36 explicit QQuickDelayButton(QQuickItem *parent = nullptr);
37
38 int delay() const;
39 void setDelay(int delay);
40
41 qreal progress() const;
42 void setProgress(qreal progress);
43
44 QQuickTransition *transition() const;
45 void setTransition(QQuickTransition *transition);
46
47Q_SIGNALS:
48 void activated();
49 void delayChanged();
50 void progressChanged();
51 void transitionChanged();
52
53protected:
54 void buttonChange(ButtonChange change) override;
55 void nextCheckState() override;
56
57 QFont defaultFont() const override;
58
59private:
60 Q_DISABLE_COPY(QQuickDelayButton)
61 Q_DECLARE_PRIVATE(QQuickDelayButton)
62};
63
64QT_END_NAMESPACE
65
66#endif // QQUICKDELAYBUTTON_P_H
QScopedPointer< QQuickDelayTransitionManager > transitionManager
QPalette defaultPalette() const override
QQuickTransition * transition
void transition(QQuickTransition *transition, qreal progress)
QQuickDelayTransitionManager(QQuickDelayButton *button)