#include "AboutView.h"
#include "constants.h"
+#ifndef Q_WS_X11
+#include "extra.h"
+#endif
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();
"<p>" + tr("Released under the <a href='%1'>GNU General Public License</a>")
.arg("http://www.gnu.org/licenses/gpl.html") + "</p>"
#endif
- "<p>© 2009-2011 " + Constants::ORG_NAME + "</p>"
+ "<p>© 2009-2012 " + Constants::ORG_NAME + "</p>"
"</body></html>";
QLabel *infoLabel = new QLabel(info, this);
infoLabel->setOpenExternalLinks(true);
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);
}