mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-24 18:48:33 +02:00
Rename dialogs
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "SplashDialog.h"
|
||||
#include "ui_SplashDialog.h"
|
||||
#include "utils/Icons.h"
|
||||
|
||||
SplashDialog::SplashDialog(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
, ui(new Ui::SplashDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
this->setWindowIcon(icons()->icon("appicon/64x64"));
|
||||
|
||||
QPixmap pixmap = QPixmap(":/assets/images/key.png");
|
||||
ui->icon->setPixmap(pixmap.scaledToWidth(32, Qt::SmoothTransformation));
|
||||
|
||||
this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
|
||||
|
||||
this->adjustSize();
|
||||
}
|
||||
|
||||
void SplashDialog::setMessage(const QString &message) {
|
||||
ui->label_message->setText(message);
|
||||
}
|
||||
|
||||
void SplashDialog::setIcon(const QPixmap &icon) {
|
||||
ui->icon->setPixmap(icon.scaledToWidth(32, Qt::SmoothTransformation));
|
||||
}
|
||||
|
||||
SplashDialog::~SplashDialog() {
|
||||
delete ui;
|
||||
}
|
||||
Reference in New Issue
Block a user