Add new device type "Case"
This commit is contained in:
parent
f96028cba4
commit
287618ebe5
7 changed files with 9 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ RGBController_NvidiaESA::RGBController_NvidiaESA(NvidiaESAController* controller
|
|||
controller = controller_ptr;
|
||||
name = "Nvidia ESA USB Device";
|
||||
vendor = "NVIDIA";
|
||||
type = DEVICE_TYPE_MOTHERBOARD;
|
||||
type = DEVICE_TYPE_CASE;
|
||||
description = name;
|
||||
location = controller->GetDeviceLocation();
|
||||
serial = controller->GetSerialString();
|
||||
|
|
|
|||
|
|
@ -1609,6 +1609,8 @@ std::string device_type_to_str(device_type type)
|
|||
return "Storage";
|
||||
case DEVICE_TYPE_VIRTUAL:
|
||||
return "Virtual";
|
||||
case DEVICE_TYPE_CASE:
|
||||
return "Case";
|
||||
default:
|
||||
return "Unknown";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -173,6 +173,7 @@ enum
|
|||
DEVICE_TYPE_SPEAKER,
|
||||
DEVICE_TYPE_VIRTUAL,
|
||||
DEVICE_TYPE_STORAGE,
|
||||
DEVICE_TYPE_CASE,
|
||||
DEVICE_TYPE_UNKNOWN
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -74,6 +74,9 @@ static QString GetIconString(device_type type, bool dark)
|
|||
case DEVICE_TYPE_STORAGE:
|
||||
filename = "storage";
|
||||
break;
|
||||
case DEVICE_TYPE_CASE:
|
||||
filename = "case";
|
||||
break;
|
||||
default:
|
||||
filename = "unknown";
|
||||
break;
|
||||
|
|
|
|||
BIN
qt/case.png
Normal file
BIN
qt/case.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 226 B |
BIN
qt/case_dark.png
Normal file
BIN
qt/case_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 218 B |
|
|
@ -47,5 +47,7 @@
|
|||
<file>console_dark.png</file>
|
||||
<file>storage.png</file>
|
||||
<file>storage_dark.png</file>
|
||||
<file>case.png</file>
|
||||
<file>case_dark.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue