1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

59 lines
1.3 KiB
C
Raw Normal View History

2017-11-20 12:32:34 +08:00
/******************************************************************
Copyright (C) 2017 - All Rights Reserved by
: mainwidget.h ---
:
: 2017
:
:
<> <> <> <>
Niyh 2017/7
*******************************************************************/
#ifndef QQTCUSTOMQRDECODEWIDGET_H
#define QQTCUSTOMQRDECODEWIDGET_H
#include <QWidget>
#include <QAction>
#include <QMenu>
typedef enum
{
UNKNOW,
UP,
DOWN,
} E_DIRECTION;
class QQtCustomQrDecodeWidget : public QWidget
{
Q_OBJECT
public:
QQtCustomQrDecodeWidget ( QWidget* parent = 0 );
~QQtCustomQrDecodeWidget();
protected:
QPoint m_startPoint;
int m_nY;
int m_nDirection;
int m_nTimerId;
bool m_bScaned;
QString m_strScanResult;
protected:
void mousePressEvent ( QMouseEvent* e );
void mouseMoveEvent ( QMouseEvent* e );
void mouseReleaseEvent ( QMouseEvent* );
void paintEvent ( QPaintEvent* e );
void timerEvent ( QTimerEvent* event );
private:
QMenu* mainMenu;
private slots:
void SltActionTriggered ( QAction* action );
private:
void ScanRecord();
};
#endif // QQTCUSTOMQRDECODEWIDGET_H