forked from ciphrex/mSIGNA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscriptdialog.cpp
37 lines (29 loc) · 878 Bytes
/
scriptdialog.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
///////////////////////////////////////////////////////////////////////////////
//
// mSIGNA
//
// scriptdialog.cpp
//
// Copyright (c) 2013 Eric Lombrozo
//
// All Rights Reserved.
#include "settings.h"
#include "scriptdialog.h"
// Models/Views
#include "scriptmodel.h"
#include "scriptview.h"
#include <QVBoxLayout>
ScriptDialog::ScriptDialog(CoinDB::Vault* vault, const QString& accountName, QWidget* parent)
: QDialog(parent)
{
resize(QSize(800, 400));
scriptModel = new ScriptModel(vault, accountName, this);
scriptModel->update();
scriptView = new ScriptView(this);
scriptView->setModel(scriptModel);
scriptView->update();
QVBoxLayout* mainLayout = new QVBoxLayout();
mainLayout->addWidget(scriptView);
setLayout(mainLayout);
setWindowTitle(getDefaultSettings().getAppName() + " - " + accountName + tr(" addresses"));
}