diff -r 000000000000 -r ff1b43f833a9 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jul 08 21:05:20 2011 +0200 @@ -0,0 +1,37 @@ +// +// Schachuhr - Chess clock graphical user interface client +// Copyright © 2011 Michael Schloh von Bennewitz +// +// Schachuhr 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 3 of the License, +// or (at your option) any later version. +// +// Schachuhr 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 Schachuhr. If not, see . +// +// This file is part of project Schachuhr, a chess clock graphical +// user interface client and is found at http://schachuhr.europalab.com/ +// +// main.cpp: ISO C++ implementation +// + +#include +#include "qmlapplicationviewer.h" + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + + QmlApplicationViewer viewer; + viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); + viewer.setMainQmlFile(QLatin1String("/usr/share/schachuhr/qml/main.qml")); + viewer.showExpanded(); + + return app.exec(); +}