loadhelper.cpp 556 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Copyright (c) 2011 Nokia Corporation.
  3. */
  4. // Class header
  5. #include "loadhelper.h"
  6. // Internal includes
  7. #include "qmlapplicationviewer.h"
  8. /*!
  9. \class LoadHelper
  10. \brief LoadHelper is a utility class for loading the main.qml file after splash.
  11. */
  12. LoadHelper::LoadHelper(QmlApplicationViewer *viewer, QObject *parent)
  13. : QObject(parent),
  14. m_viewer(viewer)
  15. {}
  16. void LoadHelper::loadMainQML()
  17. {
  18. if (m_viewer) {
  19. m_viewer->setMainQmlFile(QLatin1String("qml/RestaurantAppComponents/main.qml"));
  20. }
  21. }