forked from ciphrex/mSIGNA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtxdialog.cpp
49 lines (39 loc) · 996 Bytes
/
txdialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
///////////////////////////////////////////////////////////////////////////////
//
// mSIGNA
//
// txdialog.cpp
//
// Copyright (c) 2013 Eric Lombrozo
//
// All Rights Reserved.
#include "txdialog.h"
// Models/Views
#include "txoutmodel.h"
#include "txoutview.h"
#include <QVBoxLayout>
#include <QMessageBox>
TxDialog::TxDialog(CoinDB::Vault* vault, const QString& accountName, QWidget* parent)
: QDialog(parent)
{
resize(QSize(800, 400));
txOutModel = new TxOutModel();
txOutModel->setVault(vault);
txOutModel->setAccount(accountName);
txOutView = new TxOutView();
txOutView->setModel(txOutModel);
txOutView->update();
QVBoxLayout* mainLayout = new QVBoxLayout();
mainLayout->addWidget(txOutView);
setLayout(mainLayout);
}
void TxDialog::showError(const QString& errorMsg)
{
QMessageBox::critical(this, tr("Error"), errorMsg);
}
void TxDialog::setVault(CoinDB::Vault* vault)
{
}
void TxDialog::setAccount(const QString& accountName)
{
}