mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
Fixed YACReader compilation under Qt5 (YACReader-YACReaderLibrary communication is broken at runtime)
This commit is contained in:
@ -14,9 +14,13 @@ class YACReaderBusyWidget;
|
||||
#include <QThread>
|
||||
#include <QUrl>
|
||||
|
||||
#include<Phonon/MediaObject>
|
||||
#if QT_VERSION >= 0x050000
|
||||
#else
|
||||
#include<Phonon/MediaObject>
|
||||
using namespace Phonon;
|
||||
#endif
|
||||
|
||||
|
||||
using namespace Phonon;
|
||||
|
||||
class YACReaderTranslator : public QWidget
|
||||
{
|
||||
@ -45,7 +49,13 @@ protected:
|
||||
bool drag;
|
||||
QPoint click;
|
||||
private:
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
|
||||
#else
|
||||
MediaObject * music;
|
||||
#endif
|
||||
|
||||
QTextEdit * text;
|
||||
QComboBox * from;
|
||||
QComboBox * to;
|
||||
@ -88,4 +98,4 @@ private:
|
||||
QString language;
|
||||
void run();
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user