Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoinunits.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "bitcoinunits.h" | #include <qt/bitcoinunits.h> | ||||
#include "primitives/transaction.h" | #include <primitives/transaction.h> | ||||
#include <QStringList> | #include <QStringList> | ||||
BitcoinUnits::BitcoinUnits(QObject *parent) | BitcoinUnits::BitcoinUnits(QObject *parent) | ||||
: QAbstractListModel(parent), unitlist(availableUnits()) {} | : QAbstractListModel(parent), unitlist(availableUnits()) {} | ||||
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { | QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { | ||||
QList<BitcoinUnits::Unit> unitlist; | QList<BitcoinUnits::Unit> unitlist; | ||||
▲ Show 20 Lines • Show All 201 Lines • Show Last 20 Lines |