X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2FAboutView.cpp;h=961c867594b0e4db3e3e0294f93b754e35765c75;hb=99d6f2c2311595b46876fdaafb190bfff9e9cd55;hp=a94ecbf34e793096eb48c79cba4f9ece57cce40e;hpb=5292732687187d91db89a2220b190f9e6b8024c8;p=minitube diff --git a/src/AboutView.cpp b/src/AboutView.cpp index a94ecbf..961c867 100644 --- a/src/AboutView.cpp +++ b/src/AboutView.cpp @@ -1,10 +1,11 @@ #include "AboutView.h" -#include "Constants.h" +#include "constants.h" AboutView::AboutView(QWidget *parent) : QWidget(parent) { QBoxLayout *aboutlayout = new QHBoxLayout(this); aboutlayout->setAlignment(Qt::AlignCenter); + aboutlayout->setMargin(30); aboutlayout->setSpacing(30); QLabel *logo = new QLabel(this); @@ -16,34 +17,64 @@ AboutView::AboutView(QWidget *parent) : QWidget(parent) { layout->setSpacing(30); aboutlayout->addLayout(layout); - QString info = "

" + QString(Constants::APP_NAME) + "

" + QString info = "

" + QString(Constants::APP_NAME) + "

" "

" + tr("There's life outside the browser!") + "

" "

" + tr("Version %1").arg(Constants::VERSION) + "

" + QString("

%1

").arg(Constants::WEBSITE) + - - "

" + tr("This is a \"Technology Preview\" release, do not expect it to be perfect.") + "
" - + tr("Report bugs and send in your ideas to %1") - .arg(QString("%1").arg(Constants::EMAIL)) + "

" - +#if !defined(APP_MAC) && !defined(Q_WS_WIN) "

" + tr("%1 is Free Software but its development takes precious time.").arg(Constants::APP_NAME) + "
" - + tr("Please donate via PayPal to support the continued development of %2.") + + tr("Please donate to support the continued development of %2.") .arg(QString(Constants::WEBSITE).append("#donate"), Constants::APP_NAME) + "

" +#endif + "

" + tr("Report bugs and send in your ideas to %1") + .arg(QString("%1").arg(Constants::EMAIL)) + "

" - "

" + tr("Icon designed by %1.").arg("Sebastian Kraft") + "

" - - "

" + tr("Translated by %1").arg("Nikita Lyalin (ru_RU), Márcio Moraes (pt_BR)") + "

" - + "

" + + tr("Icon designed by %1.").arg("Sebastian Kraft") + + "
" + tr("Compact mode contributed by %1.").arg("Stefan Brück") + + "
" + tr("HTTP proxy support contributed by %1.").arg("Kiwamu Okabe") + + "

" + + "

" + tr("Translated by %1").arg("Nikita Lyalin (ru_RU), " + "Márcio Moraes (pt_BR), " + // "Sergio Tocalini Joerg (es_AR), " + "Stefan Brück (de_DE), " + "Grzegorz Gibas (pl_PL), " + "Kiwamu Okabe (ja_JP), " + "Dan Vrátil (cs_CZ), " + // "Rafa (es_ES), " + "Yaron Shahrabani (he_IL), " + "Oleksandr Korneta (uk), " + "Inga Muste (lat), " + "Srecko Belaic & Zvonimir Đeri (hr_HR), " + "Miguel Anxo Bouzada (es, gl), " + "Guillaume Betous & Mathieu Dimanche (fr_FR), " + "Krisztián Horváth (hu_HU), " + "Ali E. İmrek (tr_TR), " + "Jan W. Skjoldal & Halvor Lyche Strandvoll (nb_NO), " + "Ovidiu Niţan (ro_RO), " + "Giorgos Skettos (el_GR), " + "Brian Keetman (nl_NL), " + "Sderawi (ar), " + "Daniel Rodrigues (pt_PT), " + "Jesse Jaara (fi_FI), " + "Tsvyatko Makazchiev (bg_BG), " + "Changtai Liang (zh_CN)" + ) + "

" +#if !defined(APP_MAC) && !defined(Q_WS_WIN) "

" + tr("Released under the GNU General Public License") .arg("http://www.gnu.org/licenses/gpl.html") + "

" - - "

© 2009 " + Constants::ORG_NAME + "

"; +#endif + "

© 2009-2010 " + Constants::ORG_NAME + "

" + "";; QLabel *infoLabel = new QLabel(info, this); infoLabel->setOpenExternalLinks(true); + infoLabel->setWordWrap(true); layout->addWidget(infoLabel); QLayout *buttonLayout = new QHBoxLayout(); buttonLayout->setAlignment(Qt::AlignLeft); - QPushButton *closeButton = new QPushButton("&Close", this); + QPushButton *closeButton = new QPushButton(tr("&Close"), this); closeButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); closeButton->setDefault(true); @@ -54,17 +85,3 @@ AboutView::AboutView(QWidget *parent) : QWidget(parent) { layout->addLayout(buttonLayout); } - -void AboutView::paintEvent(QPaintEvent * /*event*/) { - - QPainter painter(this); - -#ifdef Q_WS_MAC - QLinearGradient linearGrad(0, 0, 0, height()); - QPalette palette; - linearGrad.setColorAt(0, palette.color(QPalette::Light)); - linearGrad.setColorAt(1, palette.color(QPalette::Midlight)); - painter.fillRect(0, 0, width(), height(), QBrush(linearGrad)); -#endif - -}