Add additional serverinfo attributes and check for 4K compatibility
This commit is contained in:
parent
d0375a458a
commit
5a04a256e0
6 changed files with 97 additions and 18 deletions
|
|
@ -182,6 +182,33 @@ NvHTTP::quitApp()
|
|||
}
|
||||
}
|
||||
|
||||
QVector<NvDisplayMode>
|
||||
NvHTTP::getDisplayModeList(QString serverInfo)
|
||||
{
|
||||
QXmlStreamReader xmlReader(serverInfo);
|
||||
QVector<NvDisplayMode> modes;
|
||||
|
||||
while (!xmlReader.atEnd()) {
|
||||
while (xmlReader.readNextStartElement()) {
|
||||
QStringRef name = xmlReader.name();
|
||||
if (xmlReader.name() == "DisplayMode") {
|
||||
modes.append(NvDisplayMode());
|
||||
}
|
||||
else if (xmlReader.name() == "Width") {
|
||||
modes.last().width = xmlReader.readElementText().toInt();
|
||||
}
|
||||
else if (xmlReader.name() == "Height") {
|
||||
modes.last().height = xmlReader.readElementText().toInt();
|
||||
}
|
||||
else if (xmlReader.name() == "RefreshRate") {
|
||||
modes.last().refreshRate = xmlReader.readElementText().toInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return modes;
|
||||
}
|
||||
|
||||
QVector<NvApp>
|
||||
NvHTTP::getAppList()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue