kcursor_private.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KCURSOR_PRIVATE_H
00022 #define KCURSOR_PRIVATE_H
00023
00024 #include <qcursor.h>
00025 #include <qobject.h>
00026
00027 class QPoint;
00028 class QTimer;
00029 class QWidget;
00030
00037 class KCursorPrivate : public QObject
00038 {
00039 friend class KCursor;
00040 Q_OBJECT
00041
00042 public:
00043 static KCursorPrivate *self();
00044 void start();
00045 void stop();
00046 void hideCursor( QWidget * );
00047 void unhideCursor( QWidget * );
00048 virtual bool eventFilter( QObject *o, QEvent *e );
00049
00050 int hideCursorDelay;
00051
00052 private slots:
00053 void slotHideCursor();
00054 void slotWidgetDestroyed();
00055
00056 private:
00057 KCursorPrivate();
00058 ~KCursorPrivate();
00059
00060 bool insideWidget( const QPoint&, QWidget * );
00061
00062 int count;
00063 bool isCursorHidden;
00064 bool isOwnCursor;
00065 bool enabled;
00066 QCursor oldCursor;
00067 QTimer *autoHideTimer;
00068 QWidget *hideWidget;
00069 static KCursorPrivate *s_self;
00070 };
00071
00072
00073
00074 #endif // KCURSOR_PRIVATE_H
This file is part of the documentation for kdelibs Version 3.1.0.