Fix qml naming warning
This commit is contained in:
@@ -577,19 +577,19 @@ QString wivrn_server::host_path(QString path)
|
|||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<OpenVRCompat> wivrn_server::openVRCompat() const
|
QList<openVRCompatLib> wivrn_server::openVRCompat() const
|
||||||
{
|
{
|
||||||
if (wivrn::is_flatpak())
|
if (wivrn::is_flatpak())
|
||||||
return {
|
return {
|
||||||
OpenVRCompat(i18n("xrizer"), "xrizer"),
|
openVRCompatLib(i18n("xrizer"), "xrizer"),
|
||||||
OpenVRCompat(i18n("Open Composite"), "OpenComposite"),
|
openVRCompatLib(i18n("Open Composite"), "OpenComposite"),
|
||||||
};
|
};
|
||||||
|
|
||||||
QList<OpenVRCompat> result;
|
QList<openVRCompatLib> result;
|
||||||
for (auto path: std::ranges::split_view(std::string_view(OVR_COMPAT_SEARCH_PATH), std::string_view(":")))
|
for (auto path: std::ranges::split_view(std::string_view(OVR_COMPAT_SEARCH_PATH), std::string_view(":")))
|
||||||
{
|
{
|
||||||
if (std::filesystem::path fs = std::string_view(path); std::filesystem::exists(fs))
|
if (std::filesystem::path fs = std::string_view(path); std::filesystem::exists(fs))
|
||||||
result.push_back(OpenVRCompat(QString::fromStdString(fs.string()), QString::fromStdString(fs.string())));
|
result.push_back(openVRCompatLib(QString::fromStdString(fs.string()), QString::fromStdString(fs.string())));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class OpenVRCompat
|
class openVRCompatLib
|
||||||
{
|
{
|
||||||
Q_GADGET
|
Q_GADGET
|
||||||
QML_VALUE_TYPE(openVRCompat)
|
QML_VALUE_TYPE(openVRCompat)
|
||||||
@@ -107,8 +107,8 @@ class OpenVRCompat
|
|||||||
QString m_path;
|
QString m_path;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OpenVRCompat() = default;
|
openVRCompatLib() = default;
|
||||||
OpenVRCompat(QString name, QString path) :
|
openVRCompatLib(QString name, QString path) :
|
||||||
m_name(name), m_path(path) {}
|
m_name(name), m_path(path) {}
|
||||||
|
|
||||||
// localized name of the compat layer (can be the path)
|
// localized name of the compat layer (can be the path)
|
||||||
@@ -199,7 +199,7 @@ public:
|
|||||||
Q_INVOKABLE QString host_path(QString path);
|
Q_INVOKABLE QString host_path(QString path);
|
||||||
|
|
||||||
// System information
|
// System information
|
||||||
Q_PROPERTY(QList<OpenVRCompat> openVRCompat READ openVRCompat CONSTANT)
|
Q_PROPERTY(QList<openVRCompatLib> openVRCompat READ openVRCompat CONSTANT)
|
||||||
|
|
||||||
Status serverStatus() const
|
Status serverStatus() const
|
||||||
{
|
{
|
||||||
@@ -315,7 +315,7 @@ public:
|
|||||||
return server_output.join("");
|
return server_output.join("");
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<OpenVRCompat> openVRCompat() const;
|
QList<openVRCompatLib> openVRCompat() const;
|
||||||
|
|
||||||
Q_INVOKABLE void disconnect_headset();
|
Q_INVOKABLE void disconnect_headset();
|
||||||
Q_INVOKABLE void copy_steam_command();
|
Q_INVOKABLE void copy_steam_command();
|
||||||
|
|||||||
Reference in New Issue
Block a user