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
qquickioscursorflashtimer_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QQUICKIOSCURSORFLASHTIMER_P_H
5#define QQUICKIOSCURSORFLASHTIMER_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 <QtQml/qqml.h>
19#include <QtCore/qobject.h>
20
22
24{
26 Q_PROPERTY(bool visible READ visible WRITE setVisible NOTIFY visibleChanged FINAL)
28 Q_PROPERTY(bool running READ running WRITE setRunning NOTIFY runningChanged FINAL)
29 QML_NAMED_ELEMENT(CursorFlashTimer)
30
31public:
33
34 bool visible() const;
35 void setVisible(bool visible);
36
37 int cursorPosition() const;
39
40 bool running() const;
41 void setRunning(bool running);
42
43 void start();
44 void stop();
45
46 void timerEvent(QTimerEvent *event) override;
47
52
54 bool m_visible = false;
55 int m_cursorPosition = 0;
56 int m_timer = 0;
57 bool m_running = false;
58};
59
61
62#endif // QQUICKIOSCURSORFLASHTIMER_P_H
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
void runningChanged(bool running)
void setCursorPosition(int cursorPosition)
void timerEvent(QTimerEvent *event) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
\inmodule QtCore
Definition qcoreevent.h:366
Combined button and popup list for selecting options.
GLuint start
struct _cl_event * event
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
#define explicit