Initial code for supporting an alternative QtQuick based UI for OpenVR

This commit is contained in:
dsc
2021-04-14 22:00:25 +02:00
parent e918955210
commit 96034902d1
19 changed files with 1034 additions and 46 deletions
+5
View File
@@ -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;