main.cpp 963 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
  3. * All rights reserved.
  4. * This component and the accompanying materials are made available
  5. * under the terms of "Eclipse Public License v1.0"
  6. * which accompanies this distribution, and is available
  7. * at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8. *
  9. * Initial Contributors:
  10. * Nokia Corporation - initial contribution.
  11. *
  12. * Contributors:
  13. *
  14. * Description: NfcNppExample.
  15. */
  16. #include <QtGui/QApplication>
  17. #include <QtDeclarative>
  18. #include "qmlapplicationviewer.h"
  19. #include "nfcnppexample.h"
  20. #include "main.h"
  21. int main(int argc, char *argv[])
  22. {
  23. QApplication app(argc, argv);
  24. qmlRegisterType<NfcNppExample>("NfcNppExample", 1, 0, "NfcNppExample");
  25. QmlApplicationViewer viewer;
  26. viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
  27. viewer.setMainQmlFile(QLatin1String("qml/nfcnppexample/main.qml"));
  28. viewer.showExpanded();
  29. return app.exec();
  30. }