00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <QLabel>
00023 #include <QPixmap>
00024 #include <QApplication>
00025 #include <QHBoxLayout>
00026
00027 #include "welcomescreenwidget.h"
00028
00029 WelcomeScreenWidget::WelcomeScreenWidget(QWidget *parent) :
00030 QWidget(parent)
00031 {
00032 QLabel* logoLabel = new QLabel;
00033 logoLabel->setPixmap( QPixmap(":/rc/pic/logo.png"));
00034 QLabel* introLabel = new QLabel(
00035 tr("<h1>Chess Clock</h1><br>"
00036 "Version %1<br>"
00037 "© Arto Hyvättinen 2010<br>"
00038 "Chess Clock is free software in terms of GNU General Public Licence v3"
00039 "<p>Welcome to Chess Clock!<br>"
00040 "Please touch to set up game clock.</p>"
00041 ).arg(qApp->applicationVersion())
00042
00043 );
00044 introLabel->setWordWrap(true);
00045 QHBoxLayout* layout = new QHBoxLayout;
00046 layout->addWidget(logoLabel);
00047 layout->addWidget(introLabel);
00048 setLayout( layout );
00049 }