diff options
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/bitcoin.cpp | 3 | ||||
-rw-r--r-- | src/qt/bitcoinamountfield.cpp | 1 | ||||
-rw-r--r-- | src/qt/bitcoinamountfield.h | 1 | ||||
-rw-r--r-- | src/qt/bitcoingui.cpp | 1 | ||||
-rw-r--r-- | src/qt/bitcoingui.h | 1 | ||||
-rw-r--r-- | src/qt/bitcoinstrings.cpp | 2 | ||||
-rw-r--r-- | src/qt/bitcoinunits.cpp | 1 | ||||
-rw-r--r-- | src/qt/bitcoinunits.h | 1 | ||||
-rw-r--r-- | src/qt/guiutil.cpp | 1 | ||||
-rw-r--r-- | src/qt/guiutil.h | 1 | ||||
-rw-r--r-- | src/qt/notificator.cpp | 1 | ||||
-rw-r--r-- | src/qt/optionsmodel.cpp | 2 | ||||
-rw-r--r-- | src/qt/optionsmodel.h | 1 | ||||
-rw-r--r-- | src/qt/overviewpage.cpp | 1 | ||||
-rw-r--r-- | src/qt/overviewpage.h | 1 | ||||
-rw-r--r-- | src/qt/sendcoinsdialog.cpp | 1 | ||||
-rw-r--r-- | src/qt/sendcoinsdialog.h | 1 | ||||
-rw-r--r-- | src/qt/transactiondesc.cpp | 17 | ||||
-rw-r--r-- | src/qt/transactionfilterproxy.cpp | 1 | ||||
-rw-r--r-- | src/qt/transactionfilterproxy.h | 1 | ||||
-rw-r--r-- | src/qt/transactionrecord.cpp | 20 | ||||
-rw-r--r-- | src/qt/transactionrecord.h | 17 | ||||
-rw-r--r-- | src/qt/transactionview.cpp | 1 | ||||
-rw-r--r-- | src/qt/walletmodel.cpp | 5 | ||||
-rw-r--r-- | src/qt/walletmodel.h | 1 |
25 files changed, 55 insertions, 29 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index cba4e851b4..f696ca0f89 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -9,6 +9,7 @@ #include "headers.h" #include "init.h" +#include <QtGlobal> #include <QApplication> #include <QMessageBox> #include <QThread> @@ -56,7 +57,7 @@ int ThreadSafeMessageBox(const std::string& message, const std::string& caption, return 4; } -bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent) +bool ThreadSafeAskFee(qint64 nFeeRequired, const std::string& strCaption, wxWindow* parent) { if(!guiref) return false; diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp index 19cd5655cc..f385bc55e8 100644 --- a/src/qt/bitcoinamountfield.cpp +++ b/src/qt/bitcoinamountfield.cpp @@ -4,6 +4,7 @@ #include "guiconstants.h" +#include <QtGlobal> #include <QLabel> #include <QLineEdit> #include <QRegExpValidator> diff --git a/src/qt/bitcoinamountfield.h b/src/qt/bitcoinamountfield.h index ead8bdb84b..954ed1ebd0 100644 --- a/src/qt/bitcoinamountfield.h +++ b/src/qt/bitcoinamountfield.h @@ -1,6 +1,7 @@ #ifndef BITCOINFIELD_H #define BITCOINFIELD_H +#include <QtGlobal> #include <QWidget> QT_BEGIN_NAMESPACE diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 1c49683364..fa317a25ef 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -27,6 +27,7 @@ #include "macdockiconhandler.h" #endif +#include <QtGlobal> #include <QApplication> #include <QMainWindow> #include <QMenuBar> diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h index a0905e44ad..a0b3652fc0 100644 --- a/src/qt/bitcoingui.h +++ b/src/qt/bitcoingui.h @@ -1,6 +1,7 @@ #ifndef BITCOINGUI_H #define BITCOINGUI_H +#include <QtGlobal> #include <QMainWindow> #include <QSystemTrayIcon> diff --git a/src/qt/bitcoinstrings.cpp b/src/qt/bitcoinstrings.cpp index 624ff58ce5..b4ebe9d723 100644 --- a/src/qt/bitcoinstrings.cpp +++ b/src/qt/bitcoinstrings.cpp @@ -82,4 +82,4 @@ QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: Please check that your computer's date and time are correct. If " "your clock is wrong Bitcoin will not work properly."), QT_TRANSLATE_NOOP("bitcoin-core", "beta"), -};
\ No newline at end of file +}; diff --git a/src/qt/bitcoinunits.cpp b/src/qt/bitcoinunits.cpp index 9a9a4890dc..0845d2104b 100644 --- a/src/qt/bitcoinunits.cpp +++ b/src/qt/bitcoinunits.cpp @@ -1,5 +1,6 @@ #include "bitcoinunits.h" +#include <QtGlobal> #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): diff --git a/src/qt/bitcoinunits.h b/src/qt/bitcoinunits.h index 18fa36a0b7..35c0d8ea0d 100644 --- a/src/qt/bitcoinunits.h +++ b/src/qt/bitcoinunits.h @@ -1,6 +1,7 @@ #ifndef BITCOINUNITS_H #define BITCOINUNITS_H +#include <QtGlobal> #include <QString> #include <QAbstractListModel> diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 158b84a285..378660b049 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -5,6 +5,7 @@ #include "headers.h" +#include <QtGlobal> #include <QString> #include <QDateTime> #include <QDoubleValidator> diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h index 94e3314d14..4a4cc62345 100644 --- a/src/qt/guiutil.h +++ b/src/qt/guiutil.h @@ -1,6 +1,7 @@ #ifndef GUIUTIL_H #define GUIUTIL_H +#include <QtGlobal> #include <QString> QT_BEGIN_NAMESPACE diff --git a/src/qt/notificator.cpp b/src/qt/notificator.cpp index a2314caa47..5e9969bf9e 100644 --- a/src/qt/notificator.cpp +++ b/src/qt/notificator.cpp @@ -1,5 +1,6 @@ #include "notificator.h" +#include <QtGlobal> #include <QMetaType> #include <QVariant> #include <QIcon> diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index a68c84c957..bc56bdea03 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -1,3 +1,5 @@ +#include <QtGlobal> + #include "optionsmodel.h" #include "bitcoinunits.h" diff --git a/src/qt/optionsmodel.h b/src/qt/optionsmodel.h index 775362d636..13d964b256 100644 --- a/src/qt/optionsmodel.h +++ b/src/qt/optionsmodel.h @@ -1,6 +1,7 @@ #ifndef OPTIONSMODEL_H #define OPTIONSMODEL_H +#include <QtGlobal> #include <QAbstractListModel> class CWallet; diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index 5b5a8f5271..1710519e0d 100644 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -9,6 +9,7 @@ #include "guiutil.h" #include "guiconstants.h" +#include <QtGlobal> #include <QAbstractItemDelegate> #include <QPainter> diff --git a/src/qt/overviewpage.h b/src/qt/overviewpage.h index 1199227168..46317d9b9e 100644 --- a/src/qt/overviewpage.h +++ b/src/qt/overviewpage.h @@ -1,6 +1,7 @@ #ifndef OVERVIEWPAGE_H #define OVERVIEWPAGE_H +#include <QtGlobal> #include <QWidget> QT_BEGIN_NAMESPACE diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 762f27dfa6..e6b500cfde 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -8,6 +8,7 @@ #include "guiutil.h" #include "askpassphrasedialog.h" +#include <QtGlobal> #include <QMessageBox> #include <QLocale> #include <QTextDocument> diff --git a/src/qt/sendcoinsdialog.h b/src/qt/sendcoinsdialog.h index 82910257f0..d879fbe973 100644 --- a/src/qt/sendcoinsdialog.h +++ b/src/qt/sendcoinsdialog.h @@ -1,6 +1,7 @@ #ifndef SENDCOINSDIALOG_H #define SENDCOINSDIALOG_H +#include <QtGlobal> #include <QDialog> namespace Ui { diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index 6ca3ac8c4b..a19ec875d9 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -6,6 +6,7 @@ #include "headers.h" #include "qtui.h" +#include <QtGlobal> #include <QString> #include <QTextDocument> // For Qt::escape @@ -55,10 +56,10 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx) strHTML.reserve(4000); strHTML += "<html><font face='verdana, arial, helvetica, sans-serif'>"; - int64 nTime = wtx.GetTxTime(); - int64 nCredit = wtx.GetCredit(); - int64 nDebit = wtx.GetDebit(); - int64 nNet = nCredit - nDebit; + qint64 nTime = wtx.GetTxTime(); + qint64 nCredit = wtx.GetCredit(); + qint64 nDebit = wtx.GetDebit(); + qint64 nNet = nCredit - nDebit; strHTML += tr("<b>Status:</b> ") + FormatTxStatus(wtx); int nRequests = wtx.GetRequestCount(); @@ -141,7 +142,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx) // // Coinbase // - int64 nUnmatured = 0; + qint64 nUnmatured = 0; BOOST_FOREACH(const CTxOut& txout, wtx.vout) nUnmatured += wallet->GetCredit(txout); strHTML += tr("<b>Credit:</b> "); @@ -200,13 +201,13 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx) if (fAllToMe) { // Payment to self - int64 nChange = wtx.GetChange(); - int64 nValue = nCredit - nChange; + qint64 nChange = wtx.GetChange(); + qint64 nValue = nCredit - nChange; strHTML += tr("<b>Debit:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, -nValue) + "<br>"; strHTML += tr("<b>Credit:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nValue) + "<br>"; } - int64 nTxFee = nDebit - wtx.GetValueOut(); + qint64 nTxFee = nDebit - wtx.GetValueOut(); if (nTxFee > 0) strHTML += tr("<b>Transaction fee:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,-nTxFee) + "<br>"; } diff --git a/src/qt/transactionfilterproxy.cpp b/src/qt/transactionfilterproxy.cpp index 16fb4dab92..278186fe6e 100644 --- a/src/qt/transactionfilterproxy.cpp +++ b/src/qt/transactionfilterproxy.cpp @@ -1,6 +1,7 @@ #include "transactionfilterproxy.h" #include "transactiontablemodel.h" +#include <QtGlobal> #include <QDateTime> #include <cstdlib> diff --git a/src/qt/transactionfilterproxy.h b/src/qt/transactionfilterproxy.h index 76cf46f156..e33b5e5fb0 100644 --- a/src/qt/transactionfilterproxy.h +++ b/src/qt/transactionfilterproxy.h @@ -1,6 +1,7 @@ #ifndef TRANSACTIONFILTERPROXY_H #define TRANSACTIONFILTERPROXY_H +#include <QtGlobal> #include <QSortFilterProxyModel> #include <QDateTime> diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index 53cd35b2da..8a1f1b6772 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -1,3 +1,5 @@ +#include <QtGlobal> + #include "transactionrecord.h" #include "headers.h" @@ -33,10 +35,10 @@ bool TransactionRecord::showTransaction(const CWalletTx &wtx) QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx) { QList<TransactionRecord> parts; - int64 nTime = wtx.nTimeDisplayed = wtx.GetTxTime(); - int64 nCredit = wtx.GetCredit(true); - int64 nDebit = wtx.GetDebit(); - int64 nNet = nCredit - nDebit; + qint64 nTime = wtx.nTimeDisplayed = wtx.GetTxTime(); + qint64 nCredit = wtx.GetCredit(true); + qint64 nDebit = wtx.GetDebit(); + qint64 nNet = nCredit - nDebit; uint256 hash = wtx.GetHash(); std::map<std::string, std::string> mapValue = wtx.mapValue; @@ -58,7 +60,7 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet * if (nCredit == 0) { - int64 nUnmatured = 0; + qint64 nUnmatured = 0; BOOST_FOREACH(const CTxOut& txout, wtx.vout) nUnmatured += wallet->GetCredit(txout); sub.credit = nUnmatured; @@ -103,7 +105,7 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet * if (fAllFromMe && fAllToMe) { // Payment to self - int64 nChange = wtx.GetChange(); + qint64 nChange = wtx.GetChange(); parts.append(TransactionRecord(hash, nTime, TransactionRecord::SendToSelf, "", -(nDebit - nChange), nCredit - nChange)); @@ -113,7 +115,7 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet * // // Debit // - int64 nTxFee = nDebit - wtx.GetValueOut(); + qint64 nTxFee = nDebit - wtx.GetValueOut(); for (int nOut = 0; nOut < wtx.vout.size(); nOut++) { @@ -144,7 +146,7 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet * } } - int64 nValue = txout.nValue; + qint64 nValue = txout.nValue; /* Add fee to first output */ if (nTxFee > 0) { @@ -227,7 +229,7 @@ void TransactionRecord::updateStatus(const CWalletTx &wtx) // For generated transactions, determine maturity if(type == TransactionRecord::Generated) { - int64 nCredit = wtx.GetCredit(true); + qint64 nCredit = wtx.GetCredit(true); if (nCredit == 0) { status.maturity = TransactionStatus::Immature; diff --git a/src/qt/transactionrecord.h b/src/qt/transactionrecord.h index 704cfe65b7..db29b94576 100644 --- a/src/qt/transactionrecord.h +++ b/src/qt/transactionrecord.h @@ -3,6 +3,7 @@ #include "uint256.h" +#include <QtGlobal> #include <QList> class CWallet; @@ -46,8 +47,8 @@ public: /** @name Reported status @{*/ Status status; - int64 depth; - int64 open_for; /**< Timestamp if status==OpenUntilDate, otherwise number of blocks */ + qint64 depth; + qint64 open_for; /**< Timestamp if status==OpenUntilDate, otherwise number of blocks */ /**@}*/ /** Current number of blocks (to know whether cached status is still valid) */ @@ -79,15 +80,15 @@ public: { } - TransactionRecord(uint256 hash, int64 time): + TransactionRecord(uint256 hash, qint64 time): hash(hash), time(time), type(Other), address(""), debit(0), credit(0), idx(0) { } - TransactionRecord(uint256 hash, int64 time, + TransactionRecord(uint256 hash, qint64 time, Type type, const std::string &address, - int64 debit, int64 credit): + qint64 debit, qint64 credit): hash(hash), time(time), type(type), address(address), debit(debit), credit(credit), idx(0) { @@ -101,11 +102,11 @@ public: /** @name Immutable transaction attributes @{*/ uint256 hash; - int64 time; + qint64 time; Type type; std::string address; - int64 debit; - int64 credit; + qint64 debit; + qint64 credit; /**@}*/ /** Subtransaction index, for sort key */ diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index 2dcbf1ea8a..af9597117d 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -11,6 +11,7 @@ #include "editaddressdialog.h" #include "optionsmodel.h" +#include <QtGlobal> #include <QScrollBar> #include <QComboBox> #include <QDoubleValidator> diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index f028f10f6c..b71256a23d 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -6,6 +6,7 @@ #include "headers.h" +#include <QtGlobal> #include <QTimer> #include <QSet> @@ -120,7 +121,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(const QList<SendCoinsRecipie CRITICAL_BLOCK(wallet->cs_wallet) { // Sendmany - std::vector<std::pair<CScript, int64> > vecSend; + std::vector<std::pair<CScript, qint64> > vecSend; foreach(const SendCoinsRecipient &rcp, recipients) { CScript scriptPubKey; @@ -130,7 +131,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(const QList<SendCoinsRecipie CWalletTx wtx; CReserveKey keyChange(wallet); - int64 nFeeRequired = 0; + qint64 nFeeRequired = 0; bool fCreated = wallet->CreateTransaction(vecSend, wtx, keyChange, nFeeRequired); if(!fCreated) diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h index 89e8cdd2a0..6c0d6d2afd 100644 --- a/src/qt/walletmodel.h +++ b/src/qt/walletmodel.h @@ -1,6 +1,7 @@ #ifndef WALLETMODEL_H #define WALLETMODEL_H +#include <QtGlobal> #include <QObject> #include "util.h" |