Updated the web pages
[chessclock] / classes / welcomescreenwidget.cpp
1  /**************************************************************************
2
3     Chess Clock
4
5     Copyright (c) Arto Hyvättinen 2010
6
7     This file is part of Chess Clock software.
8
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.
13
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.
18
19
20 **************************************************************************/
21
22 #include <QLabel>
23 #include <QPixmap>
24 #include <QApplication>
25 #include <QHBoxLayout>
26
27 #include "welcomescreenwidget.h"
28
29 WelcomeScreenWidget::WelcomeScreenWidget(QWidget *parent) :
30     QWidget(parent)
31 {
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>"
36                "Version %1<br>"
37                "&copy; Arto Hyv&auml;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())
42
43             );
44     introLabel->setWordWrap(true);
45     QHBoxLayout* layout = new QHBoxLayout;
46     layout->addWidget(logoLabel);
47     layout->addWidget(introLabel);
48     setLayout( layout );
49 }