Raven Core  3.0.0
P2P Digital Currency
transactiondescdialog.cpp
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
7 #include "ui_transactiondescdialog.h"
8 
10 
11 #include "guiutil.h"
12 #include <QModelIndex>
13 
14 TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
15  QDialog(parent),
16  ui(new Ui::TransactionDescDialog)
17 {
18  ui->setupUi(this);
19  setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxIDRole).toString()));
20  QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
21  ui->detailText->setHtml(desc);
22 
23  ui->detailText->setFont(GUIUtil::getSubLabelFont());
24 }
25 
27 {
28  delete ui;
29 }
Dialog showing transaction details.
TransactionDescDialog(const QModelIndex &idx, QWidget *parent=0)
Ui::TransactionDescDialog * ui
QFont getSubLabelFont()
Definition: guiutil.cpp:86