source: SMSSender/frontend/gui/ui/about.cpp @ 424:21b6e6fc22ab

Last change on this file since 424:21b6e6fc22ab was 424:21b6e6fc22ab, checked in by Sämy Zehnder <saemy.zehnder@…>, 6 years ago
  • Changes the way we handle version strings (no more numeric representations of alpha, beta, ...).
  • Updates the ubuntu deployment script to follow the version changes.
  • Changes the version to 3.2.1
File size: 2.2 KB
Line 
1/*
2 smssender - A frontend for fast and easy SMS sending over different gateways.
3 Copyright (C) 2007-2014, gorrión. See http://smssender.gorrion.ch
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18#include "about.h"
19
20#include <QGraphicsScene>
21
22#include "common/business/ilibrary.h"
23#include "common/domain/sversion.h"
24
25namespace UI {
26
27About::About(QWidget *parent, const QSet<ILibrary *> &libraries)
28    : QDialog(parent)
29{
30        ui.setupUi(this);
31
32    ui.lblVersion->setText(tr("version %1")
33                               .arg(SVersion(qApp->applicationVersion())
34                                        .toMinimumString()));
35
36        ui.txtAbout->setHtml(trUtf8(
37                                "Copyright &copy;2007-2014 gorri&oacute;n.<br/><br/>"
38                                "You are allowed to share and spread this software for free.<br/><br/>"
39                                "Please use <a href='http://smssender.gorrion.ch'>http://smssender.gorrion.ch</a> to report bugs."));
40
41    ui.txtAuthors->document()->setDefaultStyleSheet("p {margin:0 0 0 20px;}");
42    ui.txtAuthors->setHtml(trUtf8(
43                                "<b>Developers:</b><br/>"
44                                "Sämy Zehnder<p>Core Developer</p>"
45                                "<br/>"
46                                "<b>Special thanks to:</b><br/>"
47                                "Sandro Düblin<p>French translation</p>"));
48
49    foreach(ILibrary *lib, libraries) {
50        ui.lstPlugins->addItem(QString("%1 (%2)")
51                                   .arg(lib->identificationKey())
52                                   .arg(lib->version().toMinimumString()));
53    }
54    ui.lstPlugins->sortItems();
55
56    setMinimumSize(sizeHint());
57}
58
59} // namespace UI
Note: See TracBrowser for help on using the repository browser.