X-Git-Url: http://git.maemo.org/git/?p=chessclock;a=blobdiff_plain;f=classes%2Fwelcomescreenwidget.cpp;fp=classes%2Fwelcomescreenwidget.cpp;h=29c940901c83e1700fc0a84bff484d2d7be9fbbd;hp=0000000000000000000000000000000000000000;hb=ca6853daf22068621981987588b9d670f03a5264;hpb=a08f83a286b96562233e9753c9fb189cb1126fc0 diff --git a/classes/welcomescreenwidget.cpp b/classes/welcomescreenwidget.cpp new file mode 100644 index 0000000..29c9409 --- /dev/null +++ b/classes/welcomescreenwidget.cpp @@ -0,0 +1,49 @@ + /************************************************************************** + + Chess Clock + + Copyright (c) Arto Hyvättinen 2010 + + This file is part of Chess Clock software. + + Chess Clock 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. + + Chess Clock 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. + + +**************************************************************************/ + +#include +#include +#include +#include + +#include "welcomescreenwidget.h" + +WelcomeScreenWidget::WelcomeScreenWidget(QWidget *parent) : + QWidget(parent) +{ + QLabel* logoLabel = new QLabel; + logoLabel->setPixmap( QPixmap(":/rc/pic/logo.png")); + QLabel* introLabel = new QLabel( + tr("

Chess Clock


" + "Version %1
" + "© Arto Hyvättinen 2010
" + "Chess Clock is free software in terms of GNU General Public Licence v3" + "

Welcome to Chess Clock!
" + "Please touch to set up game clock.

" + ).arg(qApp->applicationVersion()) + + ); + introLabel->setWordWrap(true); + QHBoxLayout* layout = new QHBoxLayout; + layout->addWidget(logoLabel); + layout->addWidget(introLabel); + setLayout( layout ); +}