mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
32 lines
942 B
C++
32 lines
942 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: The Monero Project
|
|
|
|
#include "AboutDialog.h"
|
|
#include "ui_AboutDialog.h"
|
|
|
|
#include <QMessageBox>
|
|
#include <QDate>
|
|
|
|
#include "utils/Utils.h"
|
|
|
|
AboutDialog::AboutDialog(QWidget *parent)
|
|
: WindowModalDialog(parent)
|
|
, ui(new Ui::AboutDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
QPixmap p(":assets/images/appicons/256x256.png");
|
|
ui->aboutImage->setPixmap(p.scaled(128, 128, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
|
auto about = Utils::fileOpenQRC(":assets/about.txt");
|
|
auto about_text = Utils::barrayToString(about);
|
|
about_text = about_text.replace("<feather_version>", Utils::getVersion());
|
|
ui->copyrightText->setPlainText(about_text);
|
|
|
|
auto ack = Utils::fileOpenQRC(":assets/ack.txt");
|
|
auto ack_text = Utils::barrayToString(ack);
|
|
ui->ackText->setText(ack_text);
|
|
|
|
this->adjustSize();
|
|
}
|
|
|
|
AboutDialog::~AboutDialog() = default; |