diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-28 21:41:56 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-29 23:09:55 +0200 |
commit | ceb6d4e11d8dab8a6778e20c433f6ed989c16221 (patch) | |
tree | 9c38a4254968ef15db820a6fac0bb8ff270957a0 /src/qt/guiutil.cpp | |
parent | 19a5975d5a024de37851524d72993f98dbdaff0c (diff) |
Implement filter row instead of tabs, allows for more expressive filters
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r-- | src/qt/guiutil.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index ec8b43526d..c68532b87c 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -1,5 +1,6 @@ #include "guiutil.h" #include "bitcoinaddressvalidator.h" +#include "util.h" #include <QString> #include <QDateTime> @@ -36,3 +37,12 @@ void GUIUtil::setupAmountWidget(QLineEdit *widget, QWidget *parent) widget->setAlignment(Qt::AlignRight|Qt::AlignVCenter); } +bool GUIUtil::parseMoney(const QString &amount, qint64 *val_out) +{ + return ParseMoney(amount.toStdString(), *val_out); +} + +QString GUIUtil::formatMoney(qint64 amount, bool plussign) +{ + return QString::fromStdString(FormatMoney(amount, plussign)); +} |