Kirigami2

smoothscrollwatcher.h
1/*
2 * SPDX-FileCopyrightText: 2024 Nathan Misner <nathan@infochunk.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KIRIGAMI_SMOOTHSCROLLWATCHER_H
8#define KIRIGAMI_SMOOTHSCROLLWATCHER_H
9
10#include <QObject>
11
12#include "kirigamiplatform_export.h"
13
14namespace Kirigami
15{
16namespace Platform
17{
18/**
19 * @class SmoothScrollWatcher smoothscrollwatcher.h <Kirigami/SmoothScrollWatcher>
20 *
21 * This class reports on the status of the SmoothScroll DBus interface,
22 * which sends a message when the smooth scroll setting gets changed.
23 */
24class KIRIGAMIPLATFORM_EXPORT SmoothScrollWatcher : public QObject
25{
26 Q_OBJECT
27 Q_PROPERTY(bool enabled READ enabled NOTIFY enabledChanged FINAL)
28
29public:
30 SmoothScrollWatcher(QObject *parent = nullptr);
32
33 bool enabled() const;
34
35 static SmoothScrollWatcher *self();
36
37Q_SIGNALS:
38 void enabledChanged(bool value);
39
40private:
41 bool m_enabled;
42
43private Q_SLOTS:
44 void setEnabled(bool value);
45};
46
47}
48}
49
50#endif // KIRIGAMI_SMOOTHSCROLLWATCHER_H
This class reports on the status of the SmoothScroll DBus interface, which sends a message when the s...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.