#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();
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);
}
#else
#include "searchlineedit.h"
#endif
+#ifndef Q_WS_X11
+#include "extra.h"
+#endif
+#ifdef APP_MAC
+#include <QtSvg>
+#endif
namespace The {
QMap<QString, QAction*>* globalActions();
mainLayout->addLayout(hLayout);
QLabel *logo = new QLabel(this);
- logo->setPixmap(QPixmap(":/images/app.png"));
+ QString resource = "app";
+#ifndef Q_WS_X11
+ resource = Extra::resourceName(resource);
+ logo->setMaximumSize(128, 128);
+ logo->setScaledContents(true);
+#endif
+ logo->setPixmap(QPixmap(":/images/" + resource + ".png"));
hLayout->addWidget(logo, 0, Qt::AlignTop);
hLayout->addSpacing(PADDING);
#include "refinesearchwidget.h"
#include "fontutils.h"
#include "searchparams.h"
+#ifndef Q_WS_X11
+#include "extra.h"
+#endif
RefineSearchWidget::RefineSearchWidget(QWidget *parent) :
QWidget(parent) {
QLabel *icon = new QLabel(this);
icon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
- // TODO
- QPixmap pixmap = QPixmap(":/images/search-" + paramName + ".png");
+ QString resource = paramName;
+#ifndef Q_WS_X11
+ resource = Extra::resourceName(resource);
+#endif
+ QPixmap pixmap = QPixmap(":/images/search-" + resource + ".png");
QPixmap translucentPixmap(pixmap.size());
translucentPixmap.fill(Qt::transparent);
QPainter painter;