forked from qt-creator/qt-creator
26 lines
761 B
C++
26 lines
761 B
C++
|
|
/*
|
||
|
|
This file was generated by the Html5 Application wizard of Qt Creator.
|
||
|
|
Html5ApplicationViewer is a convenience class containing mobile device specific
|
||
|
|
code such as screen orientation handling.
|
||
|
|
It is recommended not to modify this file, since newer versions of Qt Creator
|
||
|
|
may offer an updated version of it.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <QWebPage>
|
||
|
|
#include "webnavigation.h"
|
||
|
|
#include "webtouchnavigation.h"
|
||
|
|
|
||
|
|
WebNavigation::WebNavigation(QObject *parent, QWebPage *webPage)
|
||
|
|
: m_viewObject(parent)
|
||
|
|
, m_webPage(webPage)
|
||
|
|
, m_webTouchNavigation(0)
|
||
|
|
{
|
||
|
|
m_webTouchNavigation = new WebTouchNavigation(m_viewObject, m_webPage);
|
||
|
|
m_viewObject->installEventFilter(m_webTouchNavigation);
|
||
|
|
}
|
||
|
|
|
||
|
|
WebNavigation::~WebNavigation()
|
||
|
|
{
|
||
|
|
delete m_webTouchNavigation;
|
||
|
|
}
|