2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2024-01-01 17:07:58 +00:00
|
|
|
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-06-27 11:46:32 +00:00
|
|
|
#include "AboutDialog.h"
|
|
|
|
#include "ui_AboutDialog.h"
|
2021-06-27 14:33:18 +00:00
|
|
|
|
2023-01-13 12:08:48 +00:00
|
|
|
#include <QMessageBox>
|
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
#include "config-feather.h"
|
2021-07-06 19:36:27 +00:00
|
|
|
#include "utils/Utils.h"
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
AboutDialog::AboutDialog(QWidget *parent)
|
2021-10-22 17:19:56 +00:00
|
|
|
: WindowModalDialog(parent)
|
2020-10-07 10:36:04 +00:00
|
|
|
, ui(new Ui::AboutDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2021-10-21 20:47:26 +00:00
|
|
|
|
2023-03-28 17:39:33 +00:00
|
|
|
QPixmap p(":assets/images/appicons/256x256.png");
|
2020-10-07 10:36:04 +00:00
|
|
|
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>", FEATHER_VERSION);
|
2022-08-29 12:11:05 +00:00
|
|
|
about_text = about_text.replace("<feather_git_head>", FEATHER_COMMIT);
|
2020-10-07 10:36:04 +00:00
|
|
|
about_text = about_text.replace("<current_year>", QString::number(QDate::currentDate().year()));
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2021-06-27 14:43:14 +00:00
|
|
|
AboutDialog::~AboutDialog() = default;
|