mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-11 16:33:38 +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:
1 parent
02a7d8d50c
commit
c76b8298f8
8 files changed
+57
-13
No files matched your search
@@ -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