[test] Add getblockchaininfo functional test
[bitcoinplatinum.git] / src / qt / transactiondescdialog.cpp
blob65f163deb20d6d26df4b1c410ae7bfbde8ab8b09
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) :
13 QDialog(parent),
14 ui(new Ui::TransactionDescDialog)
16 ui->setupUi(this);
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()
24 delete ui;