Source: kcursor_private.h
|
|
|
|
#ifndef KCURSOR_PRIVATE_H
#define KCURSOR_PRIVATE_H
#include
#include
class QPoint;
class QTimer;
class QWidget;
/**
* I don't want the eventFilter to be in KCursor, so we have another class
* for that stuff
* @internal
* @author Carsten Pfeiffer
*/
class KCursorPrivate : public QObject
{
friend class KCursor; // to shut up the compiler
Q_OBJECT
public:
static KCursorPrivate *self();
void start();
void stop();
void hideCursor( QWidget * );
void unhideCursor( QWidget * );
virtual bool eventFilter( QObject *o, QEvent *e );
int hideCursorDelay;
private slots:
void slotHideCursor();
void slotWidgetDestroyed();
private:
KCursorPrivate();
~KCursorPrivate();
bool insideWidget( const QPoint&, QWidget * );
int count;
bool isCursorHidden;
bool isOwnCursor;
bool enabled;
QCursor oldCursor;
QTimer *autoHideTimer;
QWidget *hideWidget;
static KCursorPrivate *s_self;
};
#endif // KCURSOR_PRIVATE_H
Generated by: dfaure on faure on Tue Apr 16 08:49:25 2002, using kdoc 2.0a53. |