Fabcoin Core  0.16.2
P2P Digital Currency
transactiondescdialog.cpp
Go to the documentation of this file.
1 // Copyright (c) 2011-2017 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 
7 
9 #include <styleSheet.h>
10 
11 #include <QModelIndex>
12 
13 TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
14  QDialog(parent),
15  ui(new Ui::TransactionDescDialog)
16 {
17  ui->setupUi(this);
18 
19  // Set stylesheet
20  SetObjectStyleSheet(this, StyleSheetNames::ScrollBarDark);
21 
22  setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxIDRole).toString()));
23  QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
24  ui->detailText->setHtml(desc);
25 }
26 
28 {
29  delete ui;
30 }
#define SetObjectStyleSheet(object, name)
Definition: styleSheet.h:10
Dialog showing transaction details.
TransactionDescDialog(const QModelIndex &idx, QWidget *parent=0)
Ui::TransactionDescDialog * ui
void setupUi(QDialog *TransactionDescDialog)