feather/src/dialog/KeysDialog.cpp

26 lines
891 B
C++
Raw Permalink Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2024-01-01 17:07:58 +00:00
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
2021-06-27 11:46:32 +00:00
#include "KeysDialog.h"
#include "ui_KeysDialog.h"
KeysDialog::KeysDialog(Wallet *wallet, QWidget *parent)
2021-10-22 17:19:56 +00:00
: WindowModalDialog(parent)
2021-05-18 15:59:18 +00:00
, ui(new Ui::KeysDialog)
{
ui->setupUi(this);
2021-05-02 18:22:38 +00:00
QString unavailable = "Unavailable: Key is stored on hardware device";
ui->label_restoreHeight->setText(QString::number(wallet->getWalletCreationHeight()));
ui->label_primaryAddress->setText(wallet->address(0, 0));
ui->label_secretSpendKey->setText(wallet->isHwBacked() ? unavailable : wallet->getSecretSpendKey());
ui->label_secretViewKey->setText(wallet->getSecretViewKey());
ui->label_publicSpendKey->setText(wallet->getPublicSpendKey());
ui->label_publicViewKey->setText(wallet->getPublicViewKey());
this->adjustSize();
}
2021-06-27 12:13:05 +00:00
KeysDialog::~KeysDialog() = default;