]> git.sur5r.net Git - minitube/blobdiff - src/AboutView.cpp
Imported Upstream version 1.9
[minitube] / src / AboutView.cpp
index 54595d90491b7ff663169d40518ec1c139af5ace..868c018bbadef6a29f62365345d3a2a6e57c3c5d 100644 (file)
@@ -1,5 +1,8 @@
 #include "AboutView.h"
 #include "constants.h"
+#ifndef Q_WS_X11
+#include "extra.h"
+#endif
 
 AboutView::AboutView(QWidget *parent) : QWidget(parent) {
 
@@ -9,7 +12,11 @@ AboutView::AboutView(QWidget *parent) : QWidget(parent) {
     aboutlayout->setSpacing(30);
 
     QLabel *logo = new QLabel(this);
-    logo->setPixmap(QPixmap(":/images/app.png"));
+    QString resource = "app";
+#ifndef Q_WS_X11
+    resource = Extra::resourceName(resource);
+#endif
+    logo->setPixmap(QPixmap(":/images/" + resource + ".png"));
     aboutlayout->addWidget(logo, 0, Qt::AlignTop);
 
     QBoxLayout *layout = new QVBoxLayout();
@@ -53,7 +60,7 @@ AboutView::AboutView(QWidget *parent) : QWidget(parent) {
             "<p>" + tr("Released under the <a href='%1'>GNU General Public License</a>")
             .arg("http://www.gnu.org/licenses/gpl.html") + "</p>"
         #endif
-            "<p>&copy; 2009-2011 " + Constants::ORG_NAME + "</p>"
+            "<p>&copy; 2009-2012 " + Constants::ORG_NAME + "</p>"
             "</body></html>";
     QLabel *infoLabel = new QLabel(info, this);
     infoLabel->setOpenExternalLinks(true);
@@ -62,14 +69,21 @@ AboutView::AboutView(QWidget *parent) : QWidget(parent) {
 
     QLayout *buttonLayout = new QHBoxLayout();
     buttonLayout->setAlignment(Qt::AlignLeft);
+
     QPushButton *closeButton = new QPushButton(tr("&Close"), this);
     closeButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
-
     closeButton->setDefault(true);
     closeButton->setFocus(Qt::OtherFocusReason);
     connect(closeButton, SIGNAL(clicked()), parent, SLOT(goBack()));
     buttonLayout->addWidget(closeButton);
 
+    /*
+    QPushButton *issueButton = new QPushButton(tr("&Report an issue"), this);
+    issueButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
+    connect(issueButton, SIGNAL(clicked()), window(), SLOT(reportIssue()));
+    buttonLayout->addWidget(issueButton);
+    */
+
     layout->addLayout(buttonLayout);
 
 }