Source: kcursor_private.h


Annotated List
Files
Globals
Hierarchy
Index
#ifndef KCURSOR_PRIVATE_H
#define KCURSOR_PRIVATE_H

#include <qcursor.h>
#include <qobject.h>
#include <qpoint.h>

#include <kstaticdeleter.h>

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 <pfeiffer@kde.org>
*/
class KCursorPrivate : public QObject
{
    friend class KCursor; // to shut up the compiler
    friend class KStaticDeleter<KCursorPrivate>;
    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 Tue Feb 27 12:46:33 2001, using kdoc 2.0a50.