mirror of
https://github.com/wownero/wowlet.git
synced 2026-11-04 15:14:04 +01:00
Initial code for supporting an alternative QtQuick based UI for OpenVR
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
using namespace std::chrono;
|
||||
|
||||
|
||||
WalletKeysFiles::WalletKeysFiles() = default; // to please Q_DECLARE_METATYPE
|
||||
WalletKeysFiles::WalletKeysFiles(const QFileInfo &info, int networkType, QString address) :
|
||||
m_fileName(info.fileName()),
|
||||
m_modified(info.lastModified().toSecsSinceEpoch()),
|
||||
@@ -47,6 +48,10 @@ int WalletKeysFiles::networkType() const {
|
||||
return m_networkType;
|
||||
}
|
||||
|
||||
QVariant WalletKeysFiles::toVariant() const {
|
||||
return QVariant::fromValue<WalletKeysFiles>(*this);
|
||||
}
|
||||
|
||||
QJsonObject WalletKeysFiles::toJsonObject() const {
|
||||
auto item = QJsonObject();
|
||||
item["fileName"] = m_fileName;
|
||||
|
||||
Reference in New Issue
Block a user