~dpm/+junk/cam-preview-tests

« back to all changes in this revision

Viewing changes to main.cpp

  • Committer: David Planella
  • Date: 2013-06-03 07:55:58 UTC
  • Revision ID: david.planella@ubuntu.com-20130603075558-mpdlkczwnljai3im
Initial commit. This is experimental, playground code

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <QtGui/QGuiApplication>
 
2
#include "qtquick2applicationviewer.h"
 
3
 
 
4
#include <QQmlEngine>
 
5
#include <QQmlComponent>
 
6
#include "decoder.h"
 
7
 
 
8
 
 
9
 
 
10
int main(int argc, char *argv[])
 
11
{
 
12
    qmlRegisterType<Decoder>("Decoder", 1, 0, "Decoder");
 
13
 
 
14
    QGuiApplication app(argc, argv);
 
15
 
 
16
    QtQuick2ApplicationViewer viewer;
 
17
    viewer.setMainQmlFile(QStringLiteral("qml/plugin-test/main.qml"));
 
18
    viewer.showExpanded();
 
19
 
 
20
    return app.exec();
 
21
}