forked from qt-creator/qt-creator
32 lines
845 B
C++
32 lines
845 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 <QWebFrame>
|
||
|
|
#include "webtouchphysicsinterface.h"
|
||
|
|
#include "webtouchphysics.h"
|
||
|
|
|
||
|
|
WebTouchPhysicsInterface* WebTouchPhysicsInterface::s_instance = 0;
|
||
|
|
|
||
|
|
WebTouchPhysicsInterface::WebTouchPhysicsInterface(QObject *parent)
|
||
|
|
: QObject(parent)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
WebTouchPhysicsInterface::~WebTouchPhysicsInterface()
|
||
|
|
{
|
||
|
|
if (s_instance == this)
|
||
|
|
s_instance = 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
WebTouchPhysicsInterface* WebTouchPhysicsInterface::getSingleton()
|
||
|
|
{
|
||
|
|
if (!s_instance)
|
||
|
|
s_instance = new WebTouchPhysics;
|
||
|
|
return s_instance;
|
||
|
|
}
|