Print wallet filename in password dialog where approrpiate

This commit is contained in:
moneromooo.monero
2016-11-26 14:46:42 +00:00
parent 26abdee5c4
commit b5a993bd8a
4 changed files with 23 additions and 5 deletions

View File

@@ -112,6 +112,11 @@ QString Wallet::address() const
return QString::fromStdString(m_walletImpl->address());
}
QString Wallet::path() const
{
return QString::fromStdString(m_walletImpl->path());
}
bool Wallet::store(const QString &path)
{
return m_walletImpl->store(path.toStdString());

View File

@@ -31,6 +31,7 @@ class Wallet : public QObject
Q_PROPERTY(TransactionHistory * history READ history)
Q_PROPERTY(QString paymentId READ paymentId WRITE setPaymentId)
Q_PROPERTY(TransactionHistorySortFilterModel * historyModel READ historyModel NOTIFY historyModelChanged)
Q_PROPERTY(QString path READ path)
public:
@@ -78,6 +79,9 @@ public:
//! returns wallet's public address
QString address() const;
//! returns wallet file's path
QString path() const;
//! saves wallet to the file by given path
//! empty path stores in current location
Q_INVOKABLE bool store(const QString &path = "");