Add virtual device type

This commit is contained in:
morg 2021-04-21 21:37:50 +02:00
parent 28af2da1c2
commit c45f864977
5 changed files with 6 additions and 0 deletions

View file

@ -118,6 +118,7 @@ enum
DEVICE_TYPE_GAMEPAD,
DEVICE_TYPE_LIGHT,
DEVICE_TYPE_SPEAKER,
DEVICE_TYPE_VIRTUAL,
DEVICE_TYPE_UNKNOWN
};

View file

@ -65,6 +65,9 @@ static QString GetIconString(device_type type, bool dark)
case DEVICE_TYPE_SPEAKER:
filename = "speaker";
break;
case DEVICE_TYPE_VIRTUAL:
filename = "virtual";
break;
default:
filename = "unknown";
break;

View file

@ -36,5 +36,7 @@
<file>plugin_dark.png</file>
<file>speaker.png</file>
<file>speaker_dark.png</file>
<file>virtual.png</file>
<file>virtual_dark.png</file>
</qresource>
</RCC>

BIN
qt/virtual.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
qt/virtual_dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB