aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactiondescdialog.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-11 22:11:58 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-11 22:11:58 +0200
commitba4081c1fcaddf361abd61b2721994eff5475bb3 (patch)
tree8667eac9e13bde9d006407b55b73bacc830f46e6 /src/qt/transactiondescdialog.cpp
parent5813089e0b5ab9cff50192f0068d256eb2602316 (diff)
move back to original directory structure
Diffstat (limited to 'src/qt/transactiondescdialog.cpp')
-rw-r--r--src/qt/transactiondescdialog.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/qt/transactiondescdialog.cpp b/src/qt/transactiondescdialog.cpp
new file mode 100644
index 0000000000..3bd4808cb6
--- /dev/null
+++ b/src/qt/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;
+}