1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/main.cpp Fri Jul 08 21:05:20 2011 +0200 1.3 @@ -0,0 +1,37 @@ 1.4 +// 1.5 +// Schachuhr - Chess clock graphical user interface client 1.6 +// Copyright © 2011 Michael Schloh von Bennewitz <michael@schloh.com> 1.7 +// 1.8 +// Schachuhr is free software: you can redistribute it and/or modify 1.9 +// it under the terms of the GNU General Public License as published 1.10 +// by the Free Software Foundation, either version 3 of the License, 1.11 +// or (at your option) any later version. 1.12 +// 1.13 +// Schachuhr is distributed in the hope that it will be useful, 1.14 +// but WITHOUT ANY WARRANTY; without even the implied warranty 1.15 +// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 1.16 +// the GNU General Public License for more details. 1.17 +// 1.18 +// You should have received a copy of the GNU General Public License 1.19 +// along with Schachuhr. If not, see <http://www.gnu.org/licenses/>. 1.20 +// 1.21 +// This file is part of project Schachuhr, a chess clock graphical 1.22 +// user interface client and is found at http://schachuhr.europalab.com/ 1.23 +// 1.24 +// main.cpp: ISO C++ implementation 1.25 +// 1.26 + 1.27 +#include <QtGui/QApplication> 1.28 +#include "qmlapplicationviewer.h" 1.29 + 1.30 +int main(int argc, char *argv[]) 1.31 +{ 1.32 + QApplication app(argc, argv); 1.33 + 1.34 + QmlApplicationViewer viewer; 1.35 + viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); 1.36 + viewer.setMainQmlFile(QLatin1String("/usr/share/schachuhr/qml/main.qml")); 1.37 + viewer.showExpanded(); 1.38 + 1.39 + return app.exec(); 1.40 +}