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