diff options
author | Andras Becsi <andras.becsi@digia.com> | 2014-05-16 14:59:49 +0200 |
---|---|---|
committer | Andras Becsi <andras.becsi@digia.com> | 2014-05-19 18:49:01 +0300 |
commit | 640c78665ffca949ad4c1773df7eddb1bdb9f1a2 (patch) | |
tree | 7d075bdfddd1b49be6feb5c59cf8c252e2fdebf0 /basicsuite/shared/engine.h | |
parent | 79456705728f87be45392f3d87758d84665459fd (diff) |
Add a simple WebEngine demo to the B2Qt basicsuite
Add a simple demo browser which by default loads the local webgl
example. Move the webgl example to the root directory to be deployed.
Change-Id: Icb0442ef37dcb31e6e1d33eee279bf429c566106
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'basicsuite/shared/engine.h')
-rw-r--r-- | basicsuite/shared/engine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/basicsuite/shared/engine.h b/basicsuite/shared/engine.h index 1600fc6..43713c8 100644 --- a/basicsuite/shared/engine.h +++ b/basicsuite/shared/engine.h @@ -20,6 +20,8 @@ #include <QObject> #include <QSize> +#include <QString> +#include <QUrl> class QQmlEngine; class QQuickItem; @@ -36,6 +38,7 @@ class DummyEngine : public QObject public: explicit DummyEngine(QObject *parent = 0); + Q_INVOKABLE QUrl fromUserInput(const QString &userInput) { return QUrl::fromUserInput(userInput); } Q_INVOKABLE int smallFontSize() const { return qMax<int>(m_dpcm * 0.4, 10); } Q_INVOKABLE int fontSize() const { return qMax<int>(m_dpcm * 0.6, 14); } Q_INVOKABLE int titleFontSize() const { return qMax<int>(m_dpcm * 0.9, 20); } |