forked from qt-creator/qt-creator
39 lines
858 B
C
39 lines
858 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.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef WEBTOUCHSCROLLER_H
|
||
|
|
#define WEBTOUCHSCROLLER_H
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
#include <QRectF>
|
||
|
|
#include <QSize>
|
||
|
|
|
||
|
|
class QWebFrame;
|
||
|
|
|
||
|
|
class WebTouchScroller : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
WebTouchScroller(QObject *parent = 0);
|
||
|
|
virtual ~WebTouchScroller();
|
||
|
|
|
||
|
|
signals:
|
||
|
|
void rangeChanged(const QRectF &range);
|
||
|
|
|
||
|
|
public slots:
|
||
|
|
void setFrame(QWebFrame* frame);
|
||
|
|
void scroll(const QPointF &delta, const QPoint &scrollStartPoint);
|
||
|
|
|
||
|
|
private:
|
||
|
|
QWebFrame* m_webFrame;
|
||
|
|
QSize m_range;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // WEBTOUCHSCROLLER_H
|