Fixed YACReader compilation under Qt5 (YACReader-YACReaderLibrary communication is broken at runtime)

This commit is contained in:
Luis Ángel San Martín
2013-10-09 18:44:46 +02:00
parent d5a35de96c
commit b1d3bbb584
11 changed files with 83 additions and 35 deletions

View File

@ -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