mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
32 lines
595 B
C++
32 lines
595 B
C++
#ifndef __TRANSLATOR_H
|
|
#define __TRANSLATOR_H
|
|
|
|
class QUrl;
|
|
class QMouseEvent;
|
|
class QPoint;
|
|
#include<QWidget>
|
|
#include<Phonon/MediaObject>
|
|
|
|
using namespace Phonon;
|
|
|
|
class YACReaderTranslator : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
YACReaderTranslator(QWidget * parent = 0);
|
|
~YACReaderTranslator();
|
|
|
|
public slots:
|
|
void play(const QUrl & url);
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent *event);
|
|
void mouseReleaseEvent(QMouseEvent *event);
|
|
void mouseMoveEvent ( QMouseEvent * event );
|
|
bool drag;
|
|
QPoint click;
|
|
private:
|
|
MediaObject * music;
|
|
};
|
|
|
|
#endif |