You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
895 B
44 lines
895 B
#ifndef FBALLWIDGET_H
|
|
#define FBALLWIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
class FBallWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FBallWidget(QWidget *parent = 0);
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent *event);
|
|
void mouseReleaseEvent(QMouseEvent *event);
|
|
void mouseMoveEvent(QMouseEvent *event);
|
|
void mouseDoubleClickEvent(QMouseEvent * event);
|
|
void enterEvent(QEvent *event);
|
|
void leaveEvent(QEvent *event);
|
|
void contextMenuEvent(QContextMenuEvent * e);
|
|
void paintEvent(QPaintEvent *event);
|
|
|
|
signals:
|
|
void notifyExitSoftSig();
|
|
|
|
public slots:
|
|
void OnBallHideSlot();
|
|
void OnCloseSlot();
|
|
void OnCountSlot();
|
|
|
|
private:
|
|
QCursor* m_handle;
|
|
QCursor* m_handlePress;
|
|
private:
|
|
QPoint m_point;
|
|
QPixmap m_bg;
|
|
bool m_press;
|
|
bool m_over;
|
|
bool isHide;
|
|
QTimer* m_timer;
|
|
int m_nMemOcc;
|
|
};
|
|
|
|
#endif // FBALLWIDGET_H
|