Skip to content

Commit

Permalink
Add a stub MythUIWebBrowser for Qt5.
Browse files Browse the repository at this point in the history
It seems libqtwebkit is not quite working yet in the Ubuntu Qt5 packages for Ubuntu 12.04.

This just creates a stub so we can compile without webkit for now under Qt5.
  • Loading branch information
daniel-kristjansson authored and jyavenard committed Mar 8, 2013
1 parent 6d5f416 commit c25b33a
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion mythtv/libs/libmythui/mythuiwebbrowser.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,29 @@
#define MYTHUI_WEBBROWSER_H_

#include <QtGlobal>
#include <QString>
#include <QUrl>

#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include "mythuitype.h"
class QString;
class MUI_PUBLIC MythUIWebBrowser : public MythUIType
{
Q_OBJECT

public:
MythUIWebBrowser(MythUIType *parent, const QString &name) :
MythUIType(parent, name) {}
~MythUIWebBrowser() {}
void SetHtml(const QString &, const QUrl &baseUrl = QUrl()) {}
void SetZoom(float) {}
float GetZoom(void) { return 1.0; }
void ZoomIn(void) {}
void ZoomOut(void) {}
};
#warning MythUIWebBrowser has not yet been ported to Qt5
#else

#include <QString>
#include <QTime>
#include <QColor>
#include <QIcon>
Expand Down Expand Up @@ -233,4 +254,6 @@ class MUI_PUBLIC MythUIWebBrowser : public MythUIType
QPoint m_destinationScrollPos;
};

#endif // QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)

#endif

0 comments on commit c25b33a

Please sign in to comment.