Fabcoin Core  0.16.2
P2P Digital Currency
tokendescdialog.cpp
Go to the documentation of this file.
1 #include <tokendescdialog.h>
2 #include <ui_tokendescdialog.h>
3 
4 #include <tokenfilterproxy.h>
5 #include <styleSheet.h>
6 
7 #include <QModelIndex>
8 
9 TokenDescDialog::TokenDescDialog(const QModelIndex &idx, QWidget *parent) :
10  QDialog(parent),
11  ui(new Ui::TokenDescDialog)
12 {
13  ui->setupUi(this);
14 
15  // Set stylesheet
16  SetObjectStyleSheet(this, StyleSheetNames::ScrollBarDark);
17 
18  setWindowTitle(tr("Details for %1").arg(idx.data(TokenTransactionTableModel::TxHashRole).toString()));
19  QString desc = idx.data(TokenTransactionTableModel::LongDescriptionRole).toString();
20  ui->detailText->setHtml(desc);
21 }
22 
24 {
25  delete ui;
26 }
#define SetObjectStyleSheet(object, name)
Definition: styleSheet.h:10
Dialog showing token details.
TokenDescDialog(const QModelIndex &idx, QWidget *parent=0)
void setupUi(QDialog *TokenDescDialog)
Ui::TokenDescDialog * ui