Line data Source code
1 : // Copyright (c) 2011-2013 The Bitcoin Core developers
2 : // Distributed under the MIT software license, see the accompanying
3 : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 :
5 : #include "transactiondescdialog.h"
6 : #include "ui_transactiondescdialog.h"
7 :
8 : #include "transactiontablemodel.h"
9 :
10 : #include <QModelIndex>
11 :
12 0 : TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
13 : QDialog(parent),
14 0 : ui(new Ui::TransactionDescDialog)
15 : {
16 0 : ui->setupUi(this);
17 0 : QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
18 0 : ui->detailText->setHtml(desc);
19 0 : }
20 :
21 0 : TransactionDescDialog::~TransactionDescDialog()
22 : {
23 0 : delete ui;
24 0 : }
|