c8bb792f41
f135e3c qt: Add transaction hash to details window title (Wladimir J. van der Laan) 17a6a21 qt: Make it possible to show details for multiple transactions (Wladimir J. van der Laan)
32 lines
939 B
C++
32 lines
939 B
C++
// Copyright (c) 2011-2014 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include "guiutil.h"
|
|
#include "transactiondescdialog.h"
|
|
#include "ui_transactiondescdialog.h"
|
|
|
|
#include "transactiontablemodel.h"
|
|
|
|
#include <QModelIndex>
|
|
#include <QSettings>
|
|
#include <QString>
|
|
|
|
TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::TransactionDescDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxIDRole).toString()));
|
|
/* Open CSS when configured */
|
|
this->setStyleSheet(GUIUtil::loadStyleSheet());
|
|
|
|
QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
|
|
ui->detailText->setHtml(desc);
|
|
}
|
|
|
|
TransactionDescDialog::~TransactionDescDialog()
|
|
{
|
|
delete ui;
|
|
}
|