main.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. MeeDocs - A Google Docs / Google Drive client for N9
  3. Copyright 2012 Marcel D. Juhnke <marcel.juhnke@ovi.com>
  4. This file is part of MeeDocs.
  5. MeeDocs is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. MeeDocs is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with MeeDocs. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include <QtGui/QApplication>
  17. #include <QtDeclarative>
  18. #include "qmlapplicationviewer.h"
  19. #include "meedocs.h"
  20. Q_DECL_EXPORT int main(int argc, char *argv[])
  21. {
  22. QScopedPointer<QApplication> app(createApplication(argc, argv));
  23. QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
  24. qmlRegisterType<MeeDocs>("MeeDocs", 1, 0, "MeeDocs");
  25. viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
  26. viewer->setMainQmlFile(QLatin1String("qml/meedocs/main.qml"));
  27. viewer->showExpanded();
  28. return app->exec();
  29. }