UBMousePressFilter.h 564 Bytes
Newer Older
Claudio Valerio's avatar
Claudio Valerio committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
/*
 * UBMousePressFilter.h
 *
 *  Created on: Jan 12, 2009
 *      Author: luc
 */

#ifndef UBMOUSEPRESSFILTER_H_
#define UBMOUSEPRESSFILTER_H_

#include <QtGui>

class UBMousePressFilter : public QObject
{
    Q_OBJECT;

    public:
        UBMousePressFilter(QObject* parent = 0);
        virtual ~UBMousePressFilter();

    protected:
        bool eventFilter(QObject *obj, QEvent *event);

    protected slots:
        void mouseDownElapsed();

    private:

        QObject* mObject;
        QMouseEvent* mPendingEvent;
};

#endif /* UBMOUSEPRESSFILTER_H_ */