KWidgetsAddons

kcursor.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 1998 Kurt Granroth <[email protected]>
4  SPDX-FileCopyrightText: 2000 Carsten Pfeiffer <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-only
7 */
8 
9 #ifndef KCURSOR_H
10 #define KCURSOR_H
11 
12 #include <kwidgetsaddons_export.h>
13 
14 class QEvent;
15 class QObject;
16 class QWidget;
17 
24 class KWIDGETSADDONS_EXPORT KCursor
25 {
26 public:
49  static void setAutoHideCursor(QWidget *w, bool enable,
50  bool customEventFilter = false);
51 
58  static void setHideCursorDelay(int ms);
59 
65  static int hideCursorDelay();
66 
96  static void autoHideEventFilter(QObject *, QEvent *);
97 
98 private:
99  KCursor(); // forbidden
100 };
101 
102 #endif // _KCURSOR_H
The KCursor class provides a set of static convenience methods for auto-hiding cursors on widgets...
Definition: kcursor.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:44:30 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.