~ubuntu-branches/ubuntu/trusty/minitube/trusty

« back to all changes in this revision

Viewing changes to src/AboutView.cpp

  • Committer: Package Import Robot
  • Author(s): Jakob Haufe
  • Date: 2012-09-29 02:43:53 UTC
  • mfrom: (2.1.10)
  • Revision ID: package-import@ubuntu.com-20120929024353-cvsvqeewq4p93pb4
Tags: 1.9-1
* New upstream version (Closes: #673696).
* Refresh disable-update-check.
* Refresh proper-tempfiles.
* Use hardening-wrapper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "AboutView.h"
2
2
#include "constants.h"
 
3
#ifndef Q_WS_X11
 
4
#include "extra.h"
 
5
#endif
3
6
 
4
7
AboutView::AboutView(QWidget *parent) : QWidget(parent) {
5
8
 
9
12
    aboutlayout->setSpacing(30);
10
13
 
11
14
    QLabel *logo = new QLabel(this);
12
 
    logo->setPixmap(QPixmap(":/images/app.png"));
 
15
    QString resource = "app";
 
16
#ifndef Q_WS_X11
 
17
    resource = Extra::resourceName(resource);
 
18
#endif
 
19
    logo->setPixmap(QPixmap(":/images/" + resource + ".png"));
13
20
    aboutlayout->addWidget(logo, 0, Qt::AlignTop);
14
21
 
15
22
    QBoxLayout *layout = new QVBoxLayout();
53
60
            "<p>" + tr("Released under the <a href='%1'>GNU General Public License</a>")
54
61
            .arg("http://www.gnu.org/licenses/gpl.html") + "</p>"
55
62
        #endif
56
 
            "<p>&copy; 2009-2011 " + Constants::ORG_NAME + "</p>"
 
63
            "<p>&copy; 2009-2012 " + Constants::ORG_NAME + "</p>"
57
64
            "</body></html>";
58
65
    QLabel *infoLabel = new QLabel(info, this);
59
66
    infoLabel->setOpenExternalLinks(true);
62
69
 
63
70
    QLayout *buttonLayout = new QHBoxLayout();
64
71
    buttonLayout->setAlignment(Qt::AlignLeft);
 
72
 
65
73
    QPushButton *closeButton = new QPushButton(tr("&Close"), this);
66
74
    closeButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
67
 
 
68
75
    closeButton->setDefault(true);
69
76
    closeButton->setFocus(Qt::OtherFocusReason);
70
77
    connect(closeButton, SIGNAL(clicked()), parent, SLOT(goBack()));
71
78
    buttonLayout->addWidget(closeButton);
72
79
 
 
80
    /*
 
81
    QPushButton *issueButton = new QPushButton(tr("&Report an issue"), this);
 
82
    issueButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
 
83
    connect(issueButton, SIGNAL(clicked()), window(), SLOT(reportIssue()));
 
84
    buttonLayout->addWidget(issueButton);
 
85
    */
 
86
 
73
87
    layout->addLayout(buttonLayout);
74
88
 
75
89
}