Files
qt-creator/share/qtcreator/templates/html5app/html5applicationviewer/touchnavigation/webtouchscroller.h
Keith Kyzivat 28843faa1c Split out touch navigation into separate files.
Make the html5applicationviewer class much less cluttered by splitting out all
the touch navigation classes into separate files in a subdirectory.

This should make it much more maintainable.
2011-04-16 21:13:06 +02:00

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