refactor: Address (Windows) compile warnings (#840)

* Windows compile errors and (Qt 5.15 deprecation) warnings

* Usability - Enable/Disable Instance button

Co-authored-by: brindosch <edeltraud70@gmx.de>
This commit is contained in:
LordGrey
2020-06-28 23:05:32 +02:00
committed by GitHub
parent e365a2839d
commit bfb50b8d91
61 changed files with 530 additions and 365 deletions

View File

@@ -568,24 +568,24 @@ void Hyperion::update()
// correct the color byte order
switch (_ledStringColorOrder.at(i))
{
case ORDER_RGB:
case ColorOrder::ORDER_RGB:
// leave as it is
break;
case ORDER_BGR:
case ColorOrder::ORDER_BGR:
std::swap(color.red, color.blue);
break;
case ORDER_RBG:
case ColorOrder::ORDER_RBG:
std::swap(color.green, color.blue);
break;
case ORDER_GRB:
case ColorOrder::ORDER_GRB:
std::swap(color.red, color.green);
break;
case ORDER_GBR:
case ColorOrder::ORDER_GBR:
std::swap(color.red, color.green);
std::swap(color.green, color.blue);
break;
case ORDER_BRG:
case ColorOrder::ORDER_BRG:
std::swap(color.red, color.blue);
std::swap(color.green, color.blue);
break;