aboutsummaryrefslogtreecommitdiff
path: root/gui/src/transactiondescdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/transactiondescdialog.cpp')
-rw-r--r--gui/src/transactiondescdialog.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/gui/src/transactiondescdialog.cpp b/gui/src/transactiondescdialog.cpp
new file mode 100644
index 0000000000..3bd4808cb6
--- /dev/null
+++ b/gui/src/transactiondescdialog.cpp
@@ -0,0 +1,20 @@
+#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;
+}