cards/qmlapplicationviewer/qmlapplicationviewer.h
author Wesley Thierry <wesleyt@symbian.org>
Tue, 26 Oct 2010 09:48:36 -0700
changeset 6 4c7de3e5789a
parent 3 2e16639599b7
permissions -rwxr-xr-x
update the code to elimninate the jumping

// checksum 0x39ee version 0x10008
#ifndef QMLAPPLICATIONVIEWER_H
#define QMLAPPLICATIONVIEWER_H

#include <QtDeclarative/QDeclarativeView>

class QmlApplicationViewer : public QDeclarativeView
{
public:
    enum Orientation {
        LockPortrait,
        LockLandscape,
        Auto
    };

    QmlApplicationViewer(QWidget *parent = 0);
    virtual ~QmlApplicationViewer();

    void setMainQmlFile(const QString &file);
    void addImportPath(const QString &path);
    void setOrientation(Orientation orientation);
    void show();

private:
    class QmlApplicationViewerPrivate *m_d;
};

#endif // QMLAPPLICATIONVIEWER_H