mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
21 lines
495 B
C++
21 lines
495 B
C++
|
#include "transactiondescdialog.h"
|
||
|
#include "ui_transactiondescdialog.h"
|
||
|
|
||
|
#include "transactiontablemodel.h"
|
||
|
|
||
|
#include <QModelIndex>
|
||
|
|
||
|
TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
|
||
|
QDialog(parent),
|
||
|
ui(new Ui::TransactionDescDialog)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
|
||
|
ui->detailText->setHtml(desc);
|
||
|
}
|
||
|
|
||
|
TransactionDescDialog::~TransactionDescDialog()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|