LCOV - code coverage report
Current view: top level - src/qt - transactiondescdialog.cpp (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 0 14 0.0 %
Date: 2020-09-26 01:30:44 Functions: 0 5 0.0 %

          Line data    Source code
       1             : // Copyright (c) 2011-2018 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             : 
       5             : #include <qt/transactiondescdialog.h>
       6             : #include <qt/forms/ui_transactiondescdialog.h>
       7             : 
       8             : #include <qt/guiutil.h>
       9             : #include <qt/transactiontablemodel.h>
      10             : 
      11             : #include <QModelIndex>
      12             : 
      13           0 : TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
      14           0 :     QDialog(parent),
      15           0 :     ui(new Ui::TransactionDescDialog)
      16           0 : {
      17           0 :     ui->setupUi(this);
      18           0 :     setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxHashRole).toString()));
      19           0 :     QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
      20           0 :     ui->detailText->setHtml(desc);
      21             : 
      22           0 :     GUIUtil::handleCloseWindowShortcut(this);
      23           0 : }
      24             : 
      25           0 : TransactionDescDialog::~TransactionDescDialog()
      26           0 : {
      27           0 :     delete ui;
      28           0 : }

Generated by: LCOV version 1.15