layout->addLayout(buttonLayout);
}
-void AboutView::paintEvent(QPaintEvent * /*event*/) {
-#if defined(APP_MAC) | defined(APP_WIN)
- QBrush brush;
- if (window()->isActiveWindow()) {
- brush = QBrush(QColor(0xdd, 0xe4, 0xeb));
- } else {
- brush = palette().window();
- }
- QPainter painter(this);
- painter.fillRect(0, 0, width(), height(), brush);
-#endif
-}
-
void AboutView::appear() {
#ifdef APP_MAC
mac::uncloseWindow(window()->winId());
QHash<QString, QVariant> metadata() {
QHash<QString, QVariant> metadata;
metadata.insert("title", tr("About"));
- metadata.insert("description",
- tr("What you always wanted to know about %1 and never dared to ask")
- .arg(Constants::NAME));
return metadata;
}
-protected:
- void paintEvent(QPaintEvent *);
-
private:
QPushButton *closeButton;