danicoinwallet/src/gui/PasswordDialog.cpp
2015-04-30 15:11:48 +03:00

28 lines
621 B
C++

// Copyright (c) 2011-2015 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "PasswordDialog.h"
#include "ui_passworddialog.h"
namespace WalletGui {
PasswordDialog::PasswordDialog(bool _error, QWidget* _parent) : QDialog(_parent), m_ui(new Ui::PasswordDialog) {
m_ui->setupUi(this);
if (!_error) {
m_ui->m_errorLabel->hide();
}
adjustSize();
}
PasswordDialog::~PasswordDialog() {
}
QString PasswordDialog::getPassword() const {
return m_ui->m_passwordEdit->text();
}
}