Merge pull request #2362

3a33dde fix invalid include paths, compilation warnings, update README.md (xiphon)
This commit is contained in:
luigi1111 2019-09-04 09:46:13 -05:00
commit 3ca2473239
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
14 changed files with 26 additions and 28 deletions

View file

@ -237,8 +237,6 @@ The Monero GUI on Windows is 64 bits only; 32-bit Windows GUI builds are not off
git clone https://github.com/monero-project/monero-gui.git
```
**Note:** Due to some bug in the build process, "monero-gui" repo can't be a top level directory.
7. Build
```

View file

@ -40,7 +40,7 @@ QString UnsignedTransaction::errorString() const
return QString::fromStdString(m_pimpl->errorString());
}
quint64 UnsignedTransaction::amount(int index) const
quint64 UnsignedTransaction::amount(size_t index) const
{
std::vector<uint64_t> arr = m_pimpl->amount();
if(index > arr.size() - 1)
@ -48,7 +48,7 @@ quint64 UnsignedTransaction::amount(int index) const
return arr[index];
}
quint64 UnsignedTransaction::fee(int index) const
quint64 UnsignedTransaction::fee(size_t index) const
{
std::vector<uint64_t> arr = m_pimpl->fee();
if(index > arr.size() - 1)
@ -56,7 +56,7 @@ quint64 UnsignedTransaction::fee(int index) const
return arr[index];
}
quint64 UnsignedTransaction::mixin(int index) const
quint64 UnsignedTransaction::mixin(size_t index) const
{
std::vector<uint64_t> arr = m_pimpl->mixin();
if(index > arr.size() - 1)

View file

@ -56,9 +56,9 @@ public:
Status status() const;
QString errorString() const;
Q_INVOKABLE quint64 amount(int index) const;
Q_INVOKABLE quint64 fee(int index) const;
Q_INVOKABLE quint64 mixin(int index) const;
Q_INVOKABLE quint64 amount(size_t index) const;
Q_INVOKABLE quint64 fee(size_t index) const;
Q_INVOKABLE quint64 mixin(size_t index) const;
QStringList recipientAddress() const;
QStringList paymentId() const;
quint64 txCount() const;

View file

@ -963,16 +963,16 @@ Wallet::Wallet(Monero::Wallet *w, QObject *parent)
, m_historyModel(nullptr)
, m_addressBook(nullptr)
, m_addressBookModel(nullptr)
, m_subaddress(nullptr)
, m_subaddressModel(nullptr)
, m_subaddressAccount(nullptr)
, m_subaddressAccountModel(nullptr)
, m_daemonBlockChainHeight(0)
, m_daemonBlockChainHeightTtl(DAEMON_BLOCKCHAIN_HEIGHT_CACHE_TTL_SECONDS)
, m_daemonBlockChainTargetHeight(0)
, m_daemonBlockChainTargetHeightTtl(DAEMON_BLOCKCHAIN_TARGET_HEIGHT_CACHE_TTL_SECONDS)
, m_connectionStatusTtl(WALLET_CONNECTION_STATUS_CACHE_TTL_SECONDS)
, m_currentSubaddressAccount(0)
, m_subaddress(nullptr)
, m_subaddressModel(nullptr)
, m_subaddressAccount(nullptr)
, m_subaddressAccountModel(nullptr)
, m_scheduler(this)
{
m_history = new TransactionHistory(m_walletImpl->history(), this);

View file

@ -395,6 +395,8 @@ private:
mutable TransactionHistoryModel * m_historyModel;
mutable TransactionHistorySortFilterModel * m_historySortFilterModel;
QString m_paymentId;
AddressBook * m_addressBook;
mutable AddressBookModel * m_addressBookModel;
mutable QTime m_daemonBlockChainHeightTime;
mutable quint64 m_daemonBlockChainHeight;
int m_daemonBlockChainHeightTtl;
@ -406,8 +408,6 @@ private:
mutable QTime m_connectionStatusTime;
mutable bool m_initialized;
uint32_t m_currentSubaddressAccount;
AddressBook * m_addressBook;
mutable AddressBookModel * m_addressBookModel;
Subaddress * m_subaddress;
mutable SubaddressModel * m_subaddressModel;
SubaddressAccount * m_subaddressAccount;

View file

@ -50,7 +50,7 @@ void AddressBookModel::endReset(){
endResetModel();
}
int AddressBookModel::rowCount(const QModelIndex &parent) const
int AddressBookModel::rowCount(const QModelIndex &) const
{
return m_addressBook->count();
}

View file

@ -49,7 +49,7 @@ void SubaddressAccountModel::endReset(){
endResetModel();
}
int SubaddressAccountModel::rowCount(const QModelIndex &parent) const
int SubaddressAccountModel::rowCount(const QModelIndex &) const
{
return m_subaddressAccount->count();
}

View file

@ -50,7 +50,7 @@ void SubaddressModel::endReset(){
endResetModel();
}
int SubaddressModel::rowCount(const QModelIndex &parent) const
int SubaddressModel::rowCount(const QModelIndex &) const
{
return m_subaddress->count();
}

View file

@ -38,7 +38,7 @@ QPair<bool, QFuture<void>> FutureScheduler::run(std::function<void()> function)
});
}
QPair<bool, QFuture<QJSValueList>> FutureScheduler::run(std::function<QJSValueList() noexcept> function, const QJSValue &callback) noexcept
QPair<bool, QFuture<QJSValueList>> FutureScheduler::run(std::function<QJSValueList() noexcept> function, const QJSValue &callback)
{
if (!callback.isCallable())
{

View file

@ -20,9 +20,9 @@ public:
~FutureScheduler();
void shutdownWaitForFinished() noexcept;
QPair<bool, QFuture<void>> run(std::function<void()> function) noexcept;
QPair<bool, QFuture<QJSValueList>> run(std::function<QJSValueList() noexcept> function, const QJSValue &callback) noexcept;
QPair<bool, QFuture<QJSValueList>> run(std::function<QJSValueList() noexcept> function, const QJSValue &callback);
private:
bool add() noexcept;
@ -38,7 +38,7 @@ private:
watcher->moveToThread(schedulerThread);
}
watcher->setParent(this);
return watcher;
}

View file

@ -36,9 +36,9 @@
#include <QMutex>
#include <QMutexLocker>
#include <QString>
#include "src/libwalletqt/WalletManager.h"
#include "src/NetworkType.h"
#include "src/qt/utils.h"
#include "libwalletqt/WalletManager.h"
#include "NetworkType.h"
#include "qt/utils.h"
#include "KeysFiles.h"

View file

@ -30,8 +30,8 @@
#define KEYSFILES_H
#include <qqmlcontext.h>
#include "src/libwalletqt/WalletManager.h"
#include "src/NetworkType.h"
#include "libwalletqt/WalletManager.h"
#include "NetworkType.h"
#include <QtCore>
class WalletKeysFiles

View file

@ -40,7 +40,7 @@
#include <QHash>
#include <QMetaProperty>
#include "src/qt/MoneroSettings.h"
#include "qt/MoneroSettings.h"
/*!
\qmlmodule moneroSettings 1.0

View file

@ -29,7 +29,7 @@
#include <QtCore>
#include <QApplication>
#include "src/qt/TailsOS.h"
#include "TailsOS.h"
#include "utils.h"
bool fileExists(QString path) {