1 // Copyright (c) 2011-2016 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.
5 #include "transactiondescdialog.h"
6 #include "ui_transactiondescdialog.h"
8 #include "transactiontablemodel.h"
10 #include <QModelIndex>
12 TransactionDescDialog::TransactionDescDialog(const QModelIndex
&idx
, QWidget
*parent
) :
14 ui(new Ui::TransactionDescDialog
)
17 setWindowTitle(tr("Details for %1").arg(idx
.data(TransactionTableModel::TxIDRole
).toString()));
18 QString desc
= idx
.data(TransactionTableModel::LongDescriptionRole
).toString();
19 ui
->detailText
->setHtml(desc
);
22 TransactionDescDialog::~TransactionDescDialog()