1 /**************************************************************************
5 Copyright (c) Arto Hyvättinen 2010
7 This file is part of Chess Clock software.
9 Chess Clock is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
14 Chess Clock is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
20 **************************************************************************/
24 #include <QApplication>
25 #include <QHBoxLayout>
27 #include "welcomescreenwidget.h"
29 WelcomeScreenWidget::WelcomeScreenWidget(QWidget *parent) :
32 QLabel* logoLabel = new QLabel;
33 logoLabel->setPixmap( QPixmap(":/rc/pic/logo.png"));
34 QLabel* introLabel = new QLabel(
35 tr("<h1>Chess Clock</h1><br>"
37 "© Arto Hyvättinen 2010<br>"
38 "Chess Clock is free software in terms of GNU General Public Licence v3"
39 "<p>Welcome to Chess Clock!<br>"
40 "Please touch to set up game clock.</p>"
41 ).arg(qApp->applicationVersion())
44 introLabel->setWordWrap(true);
45 QHBoxLayout* layout = new QHBoxLayout;
46 layout->addWidget(logoLabel);
47 layout->addWidget(introLabel);