mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
Use adb getprop to give adb devices friendly names
* This means you'll see "Google Pixel XL" or "samsung SM-G900F" instead of "HT74T0200775" or "9a9502c6"
This commit is contained in:
@@ -38,6 +38,8 @@ RemoteHost::RemoteHost(const QVariant &var)
|
||||
QVariantMap map = var.toMap();
|
||||
if(map.contains(lit("Hostname")))
|
||||
Hostname = map[lit("Hostname")].toString();
|
||||
if(map.contains(lit("FriendlyName")))
|
||||
FriendlyName = map[lit("FriendlyName")].toString();
|
||||
if(map.contains(lit("RunCommand")))
|
||||
RunCommand = map[lit("RunCommand")].toString();
|
||||
|
||||
@@ -48,6 +50,7 @@ RemoteHost::operator QVariant() const
|
||||
{
|
||||
QVariantMap map;
|
||||
map[lit("Hostname")] = Hostname;
|
||||
map[lit("FriendlyName")] = FriendlyName;
|
||||
map[lit("RunCommand")] = RunCommand;
|
||||
return map;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user