You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
635 B
C++
37 lines
635 B
C++
#ifndef QPULPEWIDGET_H
|
|
#define QPULPEWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include "QTimer.h"
|
|
#include "QPoint.h"
|
|
|
|
class QPulpewidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QPulpewidget(QWidget *parent=0);
|
|
~QPulpewidget();
|
|
void showmessage(QString str);
|
|
void setParent(QWidget * pare=NULL);
|
|
private:
|
|
QTimer* m_showTimer;
|
|
QTimer* m_StayTimer;
|
|
QTimer* m_pcloseTimer;
|
|
Q_SLOT void onMove();
|
|
Q_SLOT void onClose();
|
|
Q_SLOT void onStay();
|
|
QPoint m_point;
|
|
int m_nDesktopHeight;
|
|
double m_dTransparent;
|
|
|
|
|
|
class QHBoxLayout *lay;
|
|
class QLabel *label;
|
|
signals:
|
|
void finished();
|
|
void finishshow(QWidget* p);
|
|
};
|
|
|
|
#endif // QPULPEWIDGET_H
|