summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2025-01-07 11:36:27 +0100
committerFriedemann Kleint <[email protected]>2025-01-21 00:18:36 +0100
commite90115b5f7dafb1d6acd347634b14e12b6ff88f1 (patch)
treeba73e4171ae1d100783dd1a1b3b98f04e1948c8d
parentbe3bf632e1cf80b16475f8353e4753b38317626b (diff)
uic: Write Palette/Gradient code with fully qualified enumerations
Pick-to: 6.9 Task-number: PYSIDE-1735 Change-Id: Ica05108d8802f235fd067095072547c1461e7387 Reviewed-by: Jarek Kobus <[email protected]>
-rw-r--r--src/tools/uic/cpp/cppwriteinitialization.cpp25
-rw-r--r--tests/auto/tools/uic/baseline/config.ui.h454
-rw-r--r--tests/auto/tools/uic/baseline/config.ui.py454
3 files changed, 469 insertions, 464 deletions
diff --git a/src/tools/uic/cpp/cppwriteinitialization.cpp b/src/tools/uic/cpp/cppwriteinitialization.cpp
index 03c4856e56e..983c84bdd18 100644
--- a/src/tools/uic/cpp/cppwriteinitialization.cpp
+++ b/src/tools/uic/cpp/cppwriteinitialization.cpp
@@ -1504,9 +1504,12 @@ void WriteInitialization::writeProperties(const QString &varName,
const QString paletteName = m_driver->unique("palette"_L1);
m_output << m_indent << language::stackVariable("QPalette", paletteName)
<< language::eol;
- writeColorGroup(pal->elementActive(), "QPalette::Active"_L1, paletteName);
- writeColorGroup(pal->elementInactive(), "QPalette::Inactive"_L1, paletteName);
- writeColorGroup(pal->elementDisabled(), "QPalette::Disabled"_L1, paletteName);
+ writeColorGroup(pal->elementActive(),
+ "QPalette::ColorGroup::Active"_L1, paletteName);
+ writeColorGroup(pal->elementInactive(),
+ "QPalette::ColorGroup::Inactive"_L1, paletteName);
+ writeColorGroup(pal->elementDisabled(),
+ "QPalette::ColorGroup::Disabled"_L1, paletteName);
propertyValue = paletteName;
break;
@@ -2054,7 +2057,8 @@ void WriteInitialization::writeColorGroup(DomColorGroup *colorGroup, const QStri
const DomColor *color = colors.at(i);
m_output << m_indent << paletteName << ".setColor(" << group
- << ", QPalette" << language::qualifier << language::paletteColorRole(i)
+ << ", QPalette" << language::qualifier << "ColorRole"
+ << language::qualifier << language::paletteColorRole(i)
<< ", " << domColor2QString(color)
<< ")" << language::eol;
}
@@ -2073,8 +2077,8 @@ void WriteInitialization::writeColorGroup(DomColorGroup *colorGroup, const QStri
}
m_output << m_indent << paletteName << ".setBrush("
<< language::enumValue(group) << ", "
- << "QPalette" << language::qualifier << roleName
- << ", " << brushName << ")" << language::eol;
+ << "QPalette" << language::qualifier << "ColorRole"
+ << language::qualifier << roleName << ", " << brushName << ')' << language::eol;
if (!versionAdded.isNull())
m_output << "#endif\n";
}
@@ -2143,13 +2147,13 @@ void WriteInitialization::writeBrush(const DomBrush *brush, const QString &brush
}
m_output << m_indent << gradientName << ".setSpread(QGradient"
- << language::qualifier << gradient->attributeSpread()
+ << language::qualifier << "Spread" << language::qualifier << gradient->attributeSpread()
<< ')' << language::eol;
if (gradient->hasAttributeCoordinateMode()) {
m_output << m_indent << gradientName << ".setCoordinateMode(QGradient"
- << language::qualifier << gradient->attributeCoordinateMode()
- << ')' << language::eol;
+ << language::qualifier << "CoordinateMode" << language::qualifier
+ << gradient->attributeCoordinateMode() << ')' << language::eol;
}
const auto &stops = gradient->elementGradientStop();
@@ -2176,7 +2180,8 @@ void WriteInitialization::writeBrush(const DomBrush *brush, const QString &brush
<< domColor2QString(color) << ')' << language::eol;
m_output << m_indent << brushName << ".setStyle("
- << language::qtQualifier << style << ')' << language::eol;
+ << language::qtQualifier << "BrushStyle" << language::qualifier
+ << style << ')' << language::eol;
}
}
diff --git a/tests/auto/tools/uic/baseline/config.ui.h b/tests/auto/tools/uic/baseline/config.ui.h
index 3fc86035c88..ad62df7e14d 100644
--- a/tests/auto/tools/uic/baseline/config.ui.h
+++ b/tests/auto/tools/uic/baseline/config.ui.h
@@ -313,78 +313,78 @@ public:
bslider->setObjectName("bslider");
QPalette palette;
QBrush brush(QColor(128, 128, 128, 255));
- brush.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::WindowText, brush);
+ brush.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::WindowText, brush);
QBrush brush1(QColor(0, 0, 255, 255));
- brush1.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::Button, brush1);
+ brush1.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Button, brush1);
QBrush brush2(QColor(127, 127, 255, 255));
- brush2.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::Light, brush2);
+ brush2.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Light, brush2);
QBrush brush3(QColor(38, 38, 255, 255));
- brush3.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::Midlight, brush3);
+ brush3.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Midlight, brush3);
QBrush brush4(QColor(0, 0, 127, 255));
- brush4.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::Dark, brush4);
+ brush4.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Dark, brush4);
QBrush brush5(QColor(0, 0, 170, 255));
- brush5.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::Mid, brush5);
+ brush5.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Mid, brush5);
QBrush brush6(QColor(0, 0, 0, 255));
- brush6.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::Text, brush6);
+ brush6.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Text, brush6);
QBrush brush7(QColor(255, 255, 255, 255));
- brush7.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::BrightText, brush7);
- palette.setBrush(QPalette::Active, QPalette::ButtonText, brush);
- palette.setBrush(QPalette::Active, QPalette::Base, brush7);
+ brush7.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::BrightText, brush7);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::ButtonText, brush);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Base, brush7);
QBrush brush8(QColor(220, 220, 220, 255));
- brush8.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::Window, brush8);
- palette.setBrush(QPalette::Active, QPalette::Shadow, brush6);
+ brush8.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Window, brush8);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Shadow, brush6);
QBrush brush9(QColor(10, 95, 137, 255));
- brush9.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::Highlight, brush9);
- palette.setBrush(QPalette::Active, QPalette::HighlightedText, brush7);
- palette.setBrush(QPalette::Active, QPalette::Link, brush6);
- palette.setBrush(QPalette::Active, QPalette::LinkVisited, brush6);
+ brush9.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Highlight, brush9);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::HighlightedText, brush7);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Link, brush6);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::LinkVisited, brush6);
QBrush brush10(QColor(232, 232, 232, 255));
- brush10.setStyle(Qt::SolidPattern);
- palette.setBrush(QPalette::Active, QPalette::AlternateBase, brush10);
- palette.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
- palette.setBrush(QPalette::Inactive, QPalette::Button, brush1);
- palette.setBrush(QPalette::Inactive, QPalette::Light, brush2);
- palette.setBrush(QPalette::Inactive, QPalette::Midlight, brush3);
- palette.setBrush(QPalette::Inactive, QPalette::Dark, brush4);
- palette.setBrush(QPalette::Inactive, QPalette::Mid, brush5);
- palette.setBrush(QPalette::Inactive, QPalette::Text, brush6);
- palette.setBrush(QPalette::Inactive, QPalette::BrightText, brush7);
- palette.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
- palette.setBrush(QPalette::Inactive, QPalette::Base, brush7);
- palette.setBrush(QPalette::Inactive, QPalette::Window, brush8);
- palette.setBrush(QPalette::Inactive, QPalette::Shadow, brush6);
- palette.setBrush(QPalette::Inactive, QPalette::Highlight, brush9);
- palette.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush7);
- palette.setBrush(QPalette::Inactive, QPalette::Link, brush6);
- palette.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush6);
- palette.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush10);
- palette.setBrush(QPalette::Disabled, QPalette::WindowText, brush);
- palette.setBrush(QPalette::Disabled, QPalette::Button, brush1);
- palette.setBrush(QPalette::Disabled, QPalette::Light, brush2);
- palette.setBrush(QPalette::Disabled, QPalette::Midlight, brush3);
- palette.setBrush(QPalette::Disabled, QPalette::Dark, brush4);
- palette.setBrush(QPalette::Disabled, QPalette::Mid, brush5);
- palette.setBrush(QPalette::Disabled, QPalette::Text, brush6);
- palette.setBrush(QPalette::Disabled, QPalette::BrightText, brush7);
- palette.setBrush(QPalette::Disabled, QPalette::ButtonText, brush);
- palette.setBrush(QPalette::Disabled, QPalette::Base, brush7);
- palette.setBrush(QPalette::Disabled, QPalette::Window, brush8);
- palette.setBrush(QPalette::Disabled, QPalette::Shadow, brush6);
- palette.setBrush(QPalette::Disabled, QPalette::Highlight, brush9);
- palette.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush7);
- palette.setBrush(QPalette::Disabled, QPalette::Link, brush6);
- palette.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush6);
- palette.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush10);
+ brush10.setStyle(Qt::BrushStyle::SolidPattern);
+ palette.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::AlternateBase, brush10);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::WindowText, brush);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Button, brush1);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Light, brush2);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Midlight, brush3);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Dark, brush4);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Mid, brush5);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Text, brush6);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::BrightText, brush7);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::ButtonText, brush);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Base, brush7);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Window, brush8);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Shadow, brush6);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Highlight, brush9);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::HighlightedText, brush7);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Link, brush6);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::LinkVisited, brush6);
+ palette.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::AlternateBase, brush10);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::WindowText, brush);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Button, brush1);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Light, brush2);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Midlight, brush3);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Dark, brush4);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Mid, brush5);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Text, brush6);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::BrightText, brush7);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::ButtonText, brush);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Base, brush7);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Window, brush8);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Shadow, brush6);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Highlight, brush9);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::HighlightedText, brush7);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Link, brush6);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::LinkVisited, brush6);
+ palette.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::AlternateBase, brush10);
bslider->setPalette(palette);
bslider->setMaximum(400);
bslider->setValue(100);
@@ -405,67 +405,67 @@ public:
gslider = new QSlider(GroupBox1);
gslider->setObjectName("gslider");
QPalette palette1;
- palette1.setBrush(QPalette::Active, QPalette::WindowText, brush);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::WindowText, brush);
QBrush brush11(QColor(0, 255, 0, 255));
- brush11.setStyle(Qt::SolidPattern);
- palette1.setBrush(QPalette::Active, QPalette::Button, brush11);
+ brush11.setStyle(Qt::BrushStyle::SolidPattern);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Button, brush11);
QBrush brush12(QColor(127, 255, 127, 255));
- brush12.setStyle(Qt::SolidPattern);
- palette1.setBrush(QPalette::Active, QPalette::Light, brush12);
+ brush12.setStyle(Qt::BrushStyle::SolidPattern);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Light, brush12);
QBrush brush13(QColor(38, 255, 38, 255));
- brush13.setStyle(Qt::SolidPattern);
- palette1.setBrush(QPalette::Active, QPalette::Midlight, brush13);
+ brush13.setStyle(Qt::BrushStyle::SolidPattern);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Midlight, brush13);
QBrush brush14(QColor(0, 127, 0, 255));
- brush14.setStyle(Qt::SolidPattern);
- palette1.setBrush(QPalette::Active, QPalette::Dark, brush14);
+ brush14.setStyle(Qt::BrushStyle::SolidPattern);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Dark, brush14);
QBrush brush15(QColor(0, 170, 0, 255));
- brush15.setStyle(Qt::SolidPattern);
- palette1.setBrush(QPalette::Active, QPalette::Mid, brush15);
- palette1.setBrush(QPalette::Active, QPalette::Text, brush6);
- palette1.setBrush(QPalette::Active, QPalette::BrightText, brush7);
- palette1.setBrush(QPalette::Active, QPalette::ButtonText, brush);
- palette1.setBrush(QPalette::Active, QPalette::Base, brush7);
- palette1.setBrush(QPalette::Active, QPalette::Window, brush8);
- palette1.setBrush(QPalette::Active, QPalette::Shadow, brush6);
- palette1.setBrush(QPalette::Active, QPalette::Highlight, brush9);
- palette1.setBrush(QPalette::Active, QPalette::HighlightedText, brush7);
- palette1.setBrush(QPalette::Active, QPalette::Link, brush6);
- palette1.setBrush(QPalette::Active, QPalette::LinkVisited, brush6);
- palette1.setBrush(QPalette::Active, QPalette::AlternateBase, brush10);
- palette1.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
- palette1.setBrush(QPalette::Inactive, QPalette::Button, brush11);
- palette1.setBrush(QPalette::Inactive, QPalette::Light, brush12);
- palette1.setBrush(QPalette::Inactive, QPalette::Midlight, brush13);
- palette1.setBrush(QPalette::Inactive, QPalette::Dark, brush14);
- palette1.setBrush(QPalette::Inactive, QPalette::Mid, brush15);
- palette1.setBrush(QPalette::Inactive, QPalette::Text, brush6);
- palette1.setBrush(QPalette::Inactive, QPalette::BrightText, brush7);
- palette1.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
- palette1.setBrush(QPalette::Inactive, QPalette::Base, brush7);
- palette1.setBrush(QPalette::Inactive, QPalette::Window, brush8);
- palette1.setBrush(QPalette::Inactive, QPalette::Shadow, brush6);
- palette1.setBrush(QPalette::Inactive, QPalette::Highlight, brush9);
- palette1.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush7);
- palette1.setBrush(QPalette::Inactive, QPalette::Link, brush6);
- palette1.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush6);
- palette1.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush10);
- palette1.setBrush(QPalette::Disabled, QPalette::WindowText, brush);
- palette1.setBrush(QPalette::Disabled, QPalette::Button, brush11);
- palette1.setBrush(QPalette::Disabled, QPalette::Light, brush12);
- palette1.setBrush(QPalette::Disabled, QPalette::Midlight, brush13);
- palette1.setBrush(QPalette::Disabled, QPalette::Dark, brush14);
- palette1.setBrush(QPalette::Disabled, QPalette::Mid, brush15);
- palette1.setBrush(QPalette::Disabled, QPalette::Text, brush6);
- palette1.setBrush(QPalette::Disabled, QPalette::BrightText, brush7);
- palette1.setBrush(QPalette::Disabled, QPalette::ButtonText, brush);
- palette1.setBrush(QPalette::Disabled, QPalette::Base, brush7);
- palette1.setBrush(QPalette::Disabled, QPalette::Window, brush8);
- palette1.setBrush(QPalette::Disabled, QPalette::Shadow, brush6);
- palette1.setBrush(QPalette::Disabled, QPalette::Highlight, brush9);
- palette1.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush7);
- palette1.setBrush(QPalette::Disabled, QPalette::Link, brush6);
- palette1.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush6);
- palette1.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush10);
+ brush15.setStyle(Qt::BrushStyle::SolidPattern);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Mid, brush15);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Text, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::BrightText, brush7);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::ButtonText, brush);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Base, brush7);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Window, brush8);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Shadow, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Highlight, brush9);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::HighlightedText, brush7);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Link, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::LinkVisited, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::AlternateBase, brush10);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::WindowText, brush);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Button, brush11);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Light, brush12);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Midlight, brush13);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Dark, brush14);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Mid, brush15);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Text, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::BrightText, brush7);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::ButtonText, brush);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Base, brush7);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Window, brush8);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Shadow, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Highlight, brush9);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::HighlightedText, brush7);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Link, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::LinkVisited, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::AlternateBase, brush10);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::WindowText, brush);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Button, brush11);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Light, brush12);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Midlight, brush13);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Dark, brush14);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Mid, brush15);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Text, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::BrightText, brush7);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::ButtonText, brush);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Base, brush7);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Window, brush8);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Shadow, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Highlight, brush9);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::HighlightedText, brush7);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Link, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::LinkVisited, brush6);
+ palette1.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::AlternateBase, brush10);
gslider->setPalette(palette1);
gslider->setMaximum(400);
gslider->setValue(100);
@@ -491,61 +491,61 @@ public:
gammaslider = new QSlider(GroupBox1);
gammaslider->setObjectName("gammaslider");
QPalette palette2;
- palette2.setBrush(QPalette::Active, QPalette::WindowText, brush);
- palette2.setBrush(QPalette::Active, QPalette::Button, brush7);
- palette2.setBrush(QPalette::Active, QPalette::Light, brush7);
- palette2.setBrush(QPalette::Active, QPalette::Midlight, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::WindowText, brush);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Button, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Light, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Midlight, brush7);
QBrush brush16(QColor(127, 127, 127, 255));
- brush16.setStyle(Qt::SolidPattern);
- palette2.setBrush(QPalette::Active, QPalette::Dark, brush16);
+ brush16.setStyle(Qt::BrushStyle::SolidPattern);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Dark, brush16);
QBrush brush17(QColor(170, 170, 170, 255));
- brush17.setStyle(Qt::SolidPattern);
- palette2.setBrush(QPalette::Active, QPalette::Mid, brush17);
- palette2.setBrush(QPalette::Active, QPalette::Text, brush6);
- palette2.setBrush(QPalette::Active, QPalette::BrightText, brush7);
- palette2.setBrush(QPalette::Active, QPalette::ButtonText, brush);
- palette2.setBrush(QPalette::Active, QPalette::Base, brush7);
- palette2.setBrush(QPalette::Active, QPalette::Window, brush8);
- palette2.setBrush(QPalette::Active, QPalette::Shadow, brush6);
- palette2.setBrush(QPalette::Active, QPalette::Highlight, brush9);
- palette2.setBrush(QPalette::Active, QPalette::HighlightedText, brush7);
- palette2.setBrush(QPalette::Active, QPalette::Link, brush6);
- palette2.setBrush(QPalette::Active, QPalette::LinkVisited, brush6);
- palette2.setBrush(QPalette::Active, QPalette::AlternateBase, brush10);
- palette2.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
- palette2.setBrush(QPalette::Inactive, QPalette::Button, brush7);
- palette2.setBrush(QPalette::Inactive, QPalette::Light, brush7);
- palette2.setBrush(QPalette::Inactive, QPalette::Midlight, brush7);
- palette2.setBrush(QPalette::Inactive, QPalette::Dark, brush16);
- palette2.setBrush(QPalette::Inactive, QPalette::Mid, brush17);
- palette2.setBrush(QPalette::Inactive, QPalette::Text, brush6);
- palette2.setBrush(QPalette::Inactive, QPalette::BrightText, brush7);
- palette2.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
- palette2.setBrush(QPalette::Inactive, QPalette::Base, brush7);
- palette2.setBrush(QPalette::Inactive, QPalette::Window, brush8);
- palette2.setBrush(QPalette::Inactive, QPalette::Shadow, brush6);
- palette2.setBrush(QPalette::Inactive, QPalette::Highlight, brush9);
- palette2.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush7);
- palette2.setBrush(QPalette::Inactive, QPalette::Link, brush6);
- palette2.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush6);
- palette2.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush10);
- palette2.setBrush(QPalette::Disabled, QPalette::WindowText, brush);
- palette2.setBrush(QPalette::Disabled, QPalette::Button, brush7);
- palette2.setBrush(QPalette::Disabled, QPalette::Light, brush7);
- palette2.setBrush(QPalette::Disabled, QPalette::Midlight, brush7);
- palette2.setBrush(QPalette::Disabled, QPalette::Dark, brush16);
- palette2.setBrush(QPalette::Disabled, QPalette::Mid, brush17);
- palette2.setBrush(QPalette::Disabled, QPalette::Text, brush6);
- palette2.setBrush(QPalette::Disabled, QPalette::BrightText, brush7);
- palette2.setBrush(QPalette::Disabled, QPalette::ButtonText, brush);
- palette2.setBrush(QPalette::Disabled, QPalette::Base, brush7);
- palette2.setBrush(QPalette::Disabled, QPalette::Window, brush8);
- palette2.setBrush(QPalette::Disabled, QPalette::Shadow, brush6);
- palette2.setBrush(QPalette::Disabled, QPalette::Highlight, brush9);
- palette2.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush7);
- palette2.setBrush(QPalette::Disabled, QPalette::Link, brush6);
- palette2.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush6);
- palette2.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush10);
+ brush17.setStyle(Qt::BrushStyle::SolidPattern);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Mid, brush17);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Text, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::BrightText, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::ButtonText, brush);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Base, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Window, brush8);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Shadow, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Highlight, brush9);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::HighlightedText, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Link, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::LinkVisited, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::AlternateBase, brush10);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::WindowText, brush);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Button, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Light, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Midlight, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Dark, brush16);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Mid, brush17);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Text, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::BrightText, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::ButtonText, brush);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Base, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Window, brush8);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Shadow, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Highlight, brush9);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::HighlightedText, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Link, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::LinkVisited, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::AlternateBase, brush10);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::WindowText, brush);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Button, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Light, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Midlight, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Dark, brush16);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Mid, brush17);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Text, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::BrightText, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::ButtonText, brush);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Base, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Window, brush8);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Shadow, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Highlight, brush9);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::HighlightedText, brush7);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Link, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::LinkVisited, brush6);
+ palette2.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::AlternateBase, brush10);
gammaslider->setPalette(palette2);
gammaslider->setMaximum(400);
gammaslider->setValue(100);
@@ -566,67 +566,67 @@ public:
rslider = new QSlider(GroupBox1);
rslider->setObjectName("rslider");
QPalette palette3;
- palette3.setBrush(QPalette::Active, QPalette::WindowText, brush);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::WindowText, brush);
QBrush brush18(QColor(255, 0, 0, 255));
- brush18.setStyle(Qt::SolidPattern);
- palette3.setBrush(QPalette::Active, QPalette::Button, brush18);
+ brush18.setStyle(Qt::BrushStyle::SolidPattern);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Button, brush18);
QBrush brush19(QColor(255, 127, 127, 255));
- brush19.setStyle(Qt::SolidPattern);
- palette3.setBrush(QPalette::Active, QPalette::Light, brush19);
+ brush19.setStyle(Qt::BrushStyle::SolidPattern);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Light, brush19);
QBrush brush20(QColor(255, 38, 38, 255));
- brush20.setStyle(Qt::SolidPattern);
- palette3.setBrush(QPalette::Active, QPalette::Midlight, brush20);
+ brush20.setStyle(Qt::BrushStyle::SolidPattern);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Midlight, brush20);
QBrush brush21(QColor(127, 0, 0, 255));
- brush21.setStyle(Qt::SolidPattern);
- palette3.setBrush(QPalette::Active, QPalette::Dark, brush21);
+ brush21.setStyle(Qt::BrushStyle::SolidPattern);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Dark, brush21);
QBrush brush22(QColor(170, 0, 0, 255));
- brush22.setStyle(Qt::SolidPattern);
- palette3.setBrush(QPalette::Active, QPalette::Mid, brush22);
- palette3.setBrush(QPalette::Active, QPalette::Text, brush6);
- palette3.setBrush(QPalette::Active, QPalette::BrightText, brush7);
- palette3.setBrush(QPalette::Active, QPalette::ButtonText, brush);
- palette3.setBrush(QPalette::Active, QPalette::Base, brush7);
- palette3.setBrush(QPalette::Active, QPalette::Window, brush8);
- palette3.setBrush(QPalette::Active, QPalette::Shadow, brush6);
- palette3.setBrush(QPalette::Active, QPalette::Highlight, brush9);
- palette3.setBrush(QPalette::Active, QPalette::HighlightedText, brush7);
- palette3.setBrush(QPalette::Active, QPalette::Link, brush6);
- palette3.setBrush(QPalette::Active, QPalette::LinkVisited, brush6);
- palette3.setBrush(QPalette::Active, QPalette::AlternateBase, brush10);
- palette3.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
- palette3.setBrush(QPalette::Inactive, QPalette::Button, brush18);
- palette3.setBrush(QPalette::Inactive, QPalette::Light, brush19);
- palette3.setBrush(QPalette::Inactive, QPalette::Midlight, brush20);
- palette3.setBrush(QPalette::Inactive, QPalette::Dark, brush21);
- palette3.setBrush(QPalette::Inactive, QPalette::Mid, brush22);
- palette3.setBrush(QPalette::Inactive, QPalette::Text, brush6);
- palette3.setBrush(QPalette::Inactive, QPalette::BrightText, brush7);
- palette3.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
- palette3.setBrush(QPalette::Inactive, QPalette::Base, brush7);
- palette3.setBrush(QPalette::Inactive, QPalette::Window, brush8);
- palette3.setBrush(QPalette::Inactive, QPalette::Shadow, brush6);
- palette3.setBrush(QPalette::Inactive, QPalette::Highlight, brush9);
- palette3.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush7);
- palette3.setBrush(QPalette::Inactive, QPalette::Link, brush6);
- palette3.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush6);
- palette3.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush10);
- palette3.setBrush(QPalette::Disabled, QPalette::WindowText, brush);
- palette3.setBrush(QPalette::Disabled, QPalette::Button, brush18);
- palette3.setBrush(QPalette::Disabled, QPalette::Light, brush19);
- palette3.setBrush(QPalette::Disabled, QPalette::Midlight, brush20);
- palette3.setBrush(QPalette::Disabled, QPalette::Dark, brush21);
- palette3.setBrush(QPalette::Disabled, QPalette::Mid, brush22);
- palette3.setBrush(QPalette::Disabled, QPalette::Text, brush6);
- palette3.setBrush(QPalette::Disabled, QPalette::BrightText, brush7);
- palette3.setBrush(QPalette::Disabled, QPalette::ButtonText, brush);
- palette3.setBrush(QPalette::Disabled, QPalette::Base, brush7);
- palette3.setBrush(QPalette::Disabled, QPalette::Window, brush8);
- palette3.setBrush(QPalette::Disabled, QPalette::Shadow, brush6);
- palette3.setBrush(QPalette::Disabled, QPalette::Highlight, brush9);
- palette3.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush7);
- palette3.setBrush(QPalette::Disabled, QPalette::Link, brush6);
- palette3.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush6);
- palette3.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush10);
+ brush22.setStyle(Qt::BrushStyle::SolidPattern);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Mid, brush22);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Text, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::BrightText, brush7);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::ButtonText, brush);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Base, brush7);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Window, brush8);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Shadow, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Highlight, brush9);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::HighlightedText, brush7);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::Link, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::LinkVisited, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Active, QPalette::ColorRole::AlternateBase, brush10);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::WindowText, brush);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Button, brush18);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Light, brush19);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Midlight, brush20);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Dark, brush21);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Mid, brush22);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Text, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::BrightText, brush7);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::ButtonText, brush);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Base, brush7);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Window, brush8);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Shadow, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Highlight, brush9);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::HighlightedText, brush7);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::Link, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::LinkVisited, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Inactive, QPalette::ColorRole::AlternateBase, brush10);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::WindowText, brush);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Button, brush18);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Light, brush19);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Midlight, brush20);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Dark, brush21);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Mid, brush22);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Text, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::BrightText, brush7);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::ButtonText, brush);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Base, brush7);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Window, brush8);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Shadow, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Highlight, brush9);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::HighlightedText, brush7);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::Link, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::LinkVisited, brush6);
+ palette3.setBrush(QPalette::ColorGroup::Disabled, QPalette::ColorRole::AlternateBase, brush10);
rslider->setPalette(palette3);
rslider->setMaximum(400);
rslider->setValue(100);
diff --git a/tests/auto/tools/uic/baseline/config.ui.py b/tests/auto/tools/uic/baseline/config.ui.py
index e591058a492..50648590e9e 100644
--- a/tests/auto/tools/uic/baseline/config.ui.py
+++ b/tests/auto/tools/uic/baseline/config.ui.py
@@ -248,78 +248,78 @@ class Ui_Config(object):
self.bslider.setObjectName(u"bslider")
palette = QPalette()
brush = QBrush(QColor(128, 128, 128, 255))
- brush.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.WindowText, brush)
+ brush.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.WindowText, brush)
brush1 = QBrush(QColor(0, 0, 255, 255))
- brush1.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.Button, brush1)
+ brush1.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Button, brush1)
brush2 = QBrush(QColor(127, 127, 255, 255))
- brush2.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.Light, brush2)
+ brush2.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Light, brush2)
brush3 = QBrush(QColor(38, 38, 255, 255))
- brush3.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.Midlight, brush3)
+ brush3.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Midlight, brush3)
brush4 = QBrush(QColor(0, 0, 127, 255))
- brush4.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.Dark, brush4)
+ brush4.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Dark, brush4)
brush5 = QBrush(QColor(0, 0, 170, 255))
- brush5.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.Mid, brush5)
+ brush5.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Mid, brush5)
brush6 = QBrush(QColor(0, 0, 0, 255))
- brush6.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.Text, brush6)
+ brush6.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Text, brush6)
brush7 = QBrush(QColor(255, 255, 255, 255))
- brush7.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.BrightText, brush7)
- palette.setBrush(QPalette.Active, QPalette.ButtonText, brush)
- palette.setBrush(QPalette.Active, QPalette.Base, brush7)
+ brush7.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.BrightText, brush7)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.ButtonText, brush)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Base, brush7)
brush8 = QBrush(QColor(220, 220, 220, 255))
- brush8.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.Window, brush8)
- palette.setBrush(QPalette.Active, QPalette.Shadow, brush6)
+ brush8.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Window, brush8)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Shadow, brush6)
brush9 = QBrush(QColor(10, 95, 137, 255))
- brush9.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.Highlight, brush9)
- palette.setBrush(QPalette.Active, QPalette.HighlightedText, brush7)
- palette.setBrush(QPalette.Active, QPalette.Link, brush6)
- palette.setBrush(QPalette.Active, QPalette.LinkVisited, brush6)
+ brush9.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Highlight, brush9)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.HighlightedText, brush7)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Link, brush6)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.LinkVisited, brush6)
brush10 = QBrush(QColor(232, 232, 232, 255))
- brush10.setStyle(Qt.SolidPattern)
- palette.setBrush(QPalette.Active, QPalette.AlternateBase, brush10)
- palette.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
- palette.setBrush(QPalette.Inactive, QPalette.Button, brush1)
- palette.setBrush(QPalette.Inactive, QPalette.Light, brush2)
- palette.setBrush(QPalette.Inactive, QPalette.Midlight, brush3)
- palette.setBrush(QPalette.Inactive, QPalette.Dark, brush4)
- palette.setBrush(QPalette.Inactive, QPalette.Mid, brush5)
- palette.setBrush(QPalette.Inactive, QPalette.Text, brush6)
- palette.setBrush(QPalette.Inactive, QPalette.BrightText, brush7)
- palette.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
- palette.setBrush(QPalette.Inactive, QPalette.Base, brush7)
- palette.setBrush(QPalette.Inactive, QPalette.Window, brush8)
- palette.setBrush(QPalette.Inactive, QPalette.Shadow, brush6)
- palette.setBrush(QPalette.Inactive, QPalette.Highlight, brush9)
- palette.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7)
- palette.setBrush(QPalette.Inactive, QPalette.Link, brush6)
- palette.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6)
- palette.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10)
- palette.setBrush(QPalette.Disabled, QPalette.WindowText, brush)
- palette.setBrush(QPalette.Disabled, QPalette.Button, brush1)
- palette.setBrush(QPalette.Disabled, QPalette.Light, brush2)
- palette.setBrush(QPalette.Disabled, QPalette.Midlight, brush3)
- palette.setBrush(QPalette.Disabled, QPalette.Dark, brush4)
- palette.setBrush(QPalette.Disabled, QPalette.Mid, brush5)
- palette.setBrush(QPalette.Disabled, QPalette.Text, brush6)
- palette.setBrush(QPalette.Disabled, QPalette.BrightText, brush7)
- palette.setBrush(QPalette.Disabled, QPalette.ButtonText, brush)
- palette.setBrush(QPalette.Disabled, QPalette.Base, brush7)
- palette.setBrush(QPalette.Disabled, QPalette.Window, brush8)
- palette.setBrush(QPalette.Disabled, QPalette.Shadow, brush6)
- palette.setBrush(QPalette.Disabled, QPalette.Highlight, brush9)
- palette.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7)
- palette.setBrush(QPalette.Disabled, QPalette.Link, brush6)
- palette.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6)
- palette.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10)
+ brush10.setStyle(Qt.BrushStyle.SolidPattern)
+ palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.AlternateBase, brush10)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.WindowText, brush)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Button, brush1)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Light, brush2)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Midlight, brush3)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Dark, brush4)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Mid, brush5)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Text, brush6)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.BrightText, brush7)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.ButtonText, brush)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Base, brush7)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Window, brush8)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Shadow, brush6)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Highlight, brush9)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.HighlightedText, brush7)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Link, brush6)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.LinkVisited, brush6)
+ palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.AlternateBase, brush10)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.WindowText, brush)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Button, brush1)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Light, brush2)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Midlight, brush3)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Dark, brush4)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Mid, brush5)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, brush6)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.BrightText, brush7)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ButtonText, brush)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Base, brush7)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Window, brush8)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Shadow, brush6)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Highlight, brush9)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.HighlightedText, brush7)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Link, brush6)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.LinkVisited, brush6)
+ palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.AlternateBase, brush10)
self.bslider.setPalette(palette)
self.bslider.setMaximum(400)
self.bslider.setValue(100)
@@ -340,67 +340,67 @@ class Ui_Config(object):
self.gslider = QSlider(self.GroupBox1)
self.gslider.setObjectName(u"gslider")
palette1 = QPalette()
- palette1.setBrush(QPalette.Active, QPalette.WindowText, brush)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.WindowText, brush)
brush11 = QBrush(QColor(0, 255, 0, 255))
- brush11.setStyle(Qt.SolidPattern)
- palette1.setBrush(QPalette.Active, QPalette.Button, brush11)
+ brush11.setStyle(Qt.BrushStyle.SolidPattern)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Button, brush11)
brush12 = QBrush(QColor(127, 255, 127, 255))
- brush12.setStyle(Qt.SolidPattern)
- palette1.setBrush(QPalette.Active, QPalette.Light, brush12)
+ brush12.setStyle(Qt.BrushStyle.SolidPattern)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Light, brush12)
brush13 = QBrush(QColor(38, 255, 38, 255))
- brush13.setStyle(Qt.SolidPattern)
- palette1.setBrush(QPalette.Active, QPalette.Midlight, brush13)
+ brush13.setStyle(Qt.BrushStyle.SolidPattern)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Midlight, brush13)
brush14 = QBrush(QColor(0, 127, 0, 255))
- brush14.setStyle(Qt.SolidPattern)
- palette1.setBrush(QPalette.Active, QPalette.Dark, brush14)
+ brush14.setStyle(Qt.BrushStyle.SolidPattern)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Dark, brush14)
brush15 = QBrush(QColor(0, 170, 0, 255))
- brush15.setStyle(Qt.SolidPattern)
- palette1.setBrush(QPalette.Active, QPalette.Mid, brush15)
- palette1.setBrush(QPalette.Active, QPalette.Text, brush6)
- palette1.setBrush(QPalette.Active, QPalette.BrightText, brush7)
- palette1.setBrush(QPalette.Active, QPalette.ButtonText, brush)
- palette1.setBrush(QPalette.Active, QPalette.Base, brush7)
- palette1.setBrush(QPalette.Active, QPalette.Window, brush8)
- palette1.setBrush(QPalette.Active, QPalette.Shadow, brush6)
- palette1.setBrush(QPalette.Active, QPalette.Highlight, brush9)
- palette1.setBrush(QPalette.Active, QPalette.HighlightedText, brush7)
- palette1.setBrush(QPalette.Active, QPalette.Link, brush6)
- palette1.setBrush(QPalette.Active, QPalette.LinkVisited, brush6)
- palette1.setBrush(QPalette.Active, QPalette.AlternateBase, brush10)
- palette1.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
- palette1.setBrush(QPalette.Inactive, QPalette.Button, brush11)
- palette1.setBrush(QPalette.Inactive, QPalette.Light, brush12)
- palette1.setBrush(QPalette.Inactive, QPalette.Midlight, brush13)
- palette1.setBrush(QPalette.Inactive, QPalette.Dark, brush14)
- palette1.setBrush(QPalette.Inactive, QPalette.Mid, brush15)
- palette1.setBrush(QPalette.Inactive, QPalette.Text, brush6)
- palette1.setBrush(QPalette.Inactive, QPalette.BrightText, brush7)
- palette1.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
- palette1.setBrush(QPalette.Inactive, QPalette.Base, brush7)
- palette1.setBrush(QPalette.Inactive, QPalette.Window, brush8)
- palette1.setBrush(QPalette.Inactive, QPalette.Shadow, brush6)
- palette1.setBrush(QPalette.Inactive, QPalette.Highlight, brush9)
- palette1.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7)
- palette1.setBrush(QPalette.Inactive, QPalette.Link, brush6)
- palette1.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6)
- palette1.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10)
- palette1.setBrush(QPalette.Disabled, QPalette.WindowText, brush)
- palette1.setBrush(QPalette.Disabled, QPalette.Button, brush11)
- palette1.setBrush(QPalette.Disabled, QPalette.Light, brush12)
- palette1.setBrush(QPalette.Disabled, QPalette.Midlight, brush13)
- palette1.setBrush(QPalette.Disabled, QPalette.Dark, brush14)
- palette1.setBrush(QPalette.Disabled, QPalette.Mid, brush15)
- palette1.setBrush(QPalette.Disabled, QPalette.Text, brush6)
- palette1.setBrush(QPalette.Disabled, QPalette.BrightText, brush7)
- palette1.setBrush(QPalette.Disabled, QPalette.ButtonText, brush)
- palette1.setBrush(QPalette.Disabled, QPalette.Base, brush7)
- palette1.setBrush(QPalette.Disabled, QPalette.Window, brush8)
- palette1.setBrush(QPalette.Disabled, QPalette.Shadow, brush6)
- palette1.setBrush(QPalette.Disabled, QPalette.Highlight, brush9)
- palette1.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7)
- palette1.setBrush(QPalette.Disabled, QPalette.Link, brush6)
- palette1.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6)
- palette1.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10)
+ brush15.setStyle(Qt.BrushStyle.SolidPattern)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Mid, brush15)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Text, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.BrightText, brush7)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.ButtonText, brush)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Base, brush7)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Window, brush8)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Shadow, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Highlight, brush9)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.HighlightedText, brush7)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Link, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.LinkVisited, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.AlternateBase, brush10)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.WindowText, brush)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Button, brush11)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Light, brush12)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Midlight, brush13)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Dark, brush14)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Mid, brush15)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Text, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.BrightText, brush7)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.ButtonText, brush)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Base, brush7)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Window, brush8)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Shadow, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Highlight, brush9)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.HighlightedText, brush7)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Link, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.LinkVisited, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.AlternateBase, brush10)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.WindowText, brush)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Button, brush11)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Light, brush12)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Midlight, brush13)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Dark, brush14)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Mid, brush15)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.BrightText, brush7)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ButtonText, brush)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Base, brush7)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Window, brush8)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Shadow, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Highlight, brush9)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.HighlightedText, brush7)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Link, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.LinkVisited, brush6)
+ palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.AlternateBase, brush10)
self.gslider.setPalette(palette1)
self.gslider.setMaximum(400)
self.gslider.setValue(100)
@@ -426,61 +426,61 @@ class Ui_Config(object):
self.gammaslider = QSlider(self.GroupBox1)
self.gammaslider.setObjectName(u"gammaslider")
palette2 = QPalette()
- palette2.setBrush(QPalette.Active, QPalette.WindowText, brush)
- palette2.setBrush(QPalette.Active, QPalette.Button, brush7)
- palette2.setBrush(QPalette.Active, QPalette.Light, brush7)
- palette2.setBrush(QPalette.Active, QPalette.Midlight, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.WindowText, brush)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Button, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Light, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Midlight, brush7)
brush16 = QBrush(QColor(127, 127, 127, 255))
- brush16.setStyle(Qt.SolidPattern)
- palette2.setBrush(QPalette.Active, QPalette.Dark, brush16)
+ brush16.setStyle(Qt.BrushStyle.SolidPattern)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Dark, brush16)
brush17 = QBrush(QColor(170, 170, 170, 255))
- brush17.setStyle(Qt.SolidPattern)
- palette2.setBrush(QPalette.Active, QPalette.Mid, brush17)
- palette2.setBrush(QPalette.Active, QPalette.Text, brush6)
- palette2.setBrush(QPalette.Active, QPalette.BrightText, brush7)
- palette2.setBrush(QPalette.Active, QPalette.ButtonText, brush)
- palette2.setBrush(QPalette.Active, QPalette.Base, brush7)
- palette2.setBrush(QPalette.Active, QPalette.Window, brush8)
- palette2.setBrush(QPalette.Active, QPalette.Shadow, brush6)
- palette2.setBrush(QPalette.Active, QPalette.Highlight, brush9)
- palette2.setBrush(QPalette.Active, QPalette.HighlightedText, brush7)
- palette2.setBrush(QPalette.Active, QPalette.Link, brush6)
- palette2.setBrush(QPalette.Active, QPalette.LinkVisited, brush6)
- palette2.setBrush(QPalette.Active, QPalette.AlternateBase, brush10)
- palette2.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
- palette2.setBrush(QPalette.Inactive, QPalette.Button, brush7)
- palette2.setBrush(QPalette.Inactive, QPalette.Light, brush7)
- palette2.setBrush(QPalette.Inactive, QPalette.Midlight, brush7)
- palette2.setBrush(QPalette.Inactive, QPalette.Dark, brush16)
- palette2.setBrush(QPalette.Inactive, QPalette.Mid, brush17)
- palette2.setBrush(QPalette.Inactive, QPalette.Text, brush6)
- palette2.setBrush(QPalette.Inactive, QPalette.BrightText, brush7)
- palette2.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
- palette2.setBrush(QPalette.Inactive, QPalette.Base, brush7)
- palette2.setBrush(QPalette.Inactive, QPalette.Window, brush8)
- palette2.setBrush(QPalette.Inactive, QPalette.Shadow, brush6)
- palette2.setBrush(QPalette.Inactive, QPalette.Highlight, brush9)
- palette2.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7)
- palette2.setBrush(QPalette.Inactive, QPalette.Link, brush6)
- palette2.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6)
- palette2.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10)
- palette2.setBrush(QPalette.Disabled, QPalette.WindowText, brush)
- palette2.setBrush(QPalette.Disabled, QPalette.Button, brush7)
- palette2.setBrush(QPalette.Disabled, QPalette.Light, brush7)
- palette2.setBrush(QPalette.Disabled, QPalette.Midlight, brush7)
- palette2.setBrush(QPalette.Disabled, QPalette.Dark, brush16)
- palette2.setBrush(QPalette.Disabled, QPalette.Mid, brush17)
- palette2.setBrush(QPalette.Disabled, QPalette.Text, brush6)
- palette2.setBrush(QPalette.Disabled, QPalette.BrightText, brush7)
- palette2.setBrush(QPalette.Disabled, QPalette.ButtonText, brush)
- palette2.setBrush(QPalette.Disabled, QPalette.Base, brush7)
- palette2.setBrush(QPalette.Disabled, QPalette.Window, brush8)
- palette2.setBrush(QPalette.Disabled, QPalette.Shadow, brush6)
- palette2.setBrush(QPalette.Disabled, QPalette.Highlight, brush9)
- palette2.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7)
- palette2.setBrush(QPalette.Disabled, QPalette.Link, brush6)
- palette2.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6)
- palette2.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10)
+ brush17.setStyle(Qt.BrushStyle.SolidPattern)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Mid, brush17)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Text, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.BrightText, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.ButtonText, brush)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Base, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Window, brush8)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Shadow, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Highlight, brush9)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.HighlightedText, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Link, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.LinkVisited, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.AlternateBase, brush10)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.WindowText, brush)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Button, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Light, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Midlight, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Dark, brush16)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Mid, brush17)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Text, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.BrightText, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.ButtonText, brush)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Base, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Window, brush8)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Shadow, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Highlight, brush9)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.HighlightedText, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Link, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.LinkVisited, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.AlternateBase, brush10)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.WindowText, brush)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Button, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Light, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Midlight, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Dark, brush16)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Mid, brush17)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.BrightText, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ButtonText, brush)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Base, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Window, brush8)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Shadow, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Highlight, brush9)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.HighlightedText, brush7)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Link, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.LinkVisited, brush6)
+ palette2.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.AlternateBase, brush10)
self.gammaslider.setPalette(palette2)
self.gammaslider.setMaximum(400)
self.gammaslider.setValue(100)
@@ -501,67 +501,67 @@ class Ui_Config(object):
self.rslider = QSlider(self.GroupBox1)
self.rslider.setObjectName(u"rslider")
palette3 = QPalette()
- palette3.setBrush(QPalette.Active, QPalette.WindowText, brush)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.WindowText, brush)
brush18 = QBrush(QColor(255, 0, 0, 255))
- brush18.setStyle(Qt.SolidPattern)
- palette3.setBrush(QPalette.Active, QPalette.Button, brush18)
+ brush18.setStyle(Qt.BrushStyle.SolidPattern)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Button, brush18)
brush19 = QBrush(QColor(255, 127, 127, 255))
- brush19.setStyle(Qt.SolidPattern)
- palette3.setBrush(QPalette.Active, QPalette.Light, brush19)
+ brush19.setStyle(Qt.BrushStyle.SolidPattern)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Light, brush19)
brush20 = QBrush(QColor(255, 38, 38, 255))
- brush20.setStyle(Qt.SolidPattern)
- palette3.setBrush(QPalette.Active, QPalette.Midlight, brush20)
+ brush20.setStyle(Qt.BrushStyle.SolidPattern)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Midlight, brush20)
brush21 = QBrush(QColor(127, 0, 0, 255))
- brush21.setStyle(Qt.SolidPattern)
- palette3.setBrush(QPalette.Active, QPalette.Dark, brush21)
+ brush21.setStyle(Qt.BrushStyle.SolidPattern)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Dark, brush21)
brush22 = QBrush(QColor(170, 0, 0, 255))
- brush22.setStyle(Qt.SolidPattern)
- palette3.setBrush(QPalette.Active, QPalette.Mid, brush22)
- palette3.setBrush(QPalette.Active, QPalette.Text, brush6)
- palette3.setBrush(QPalette.Active, QPalette.BrightText, brush7)
- palette3.setBrush(QPalette.Active, QPalette.ButtonText, brush)
- palette3.setBrush(QPalette.Active, QPalette.Base, brush7)
- palette3.setBrush(QPalette.Active, QPalette.Window, brush8)
- palette3.setBrush(QPalette.Active, QPalette.Shadow, brush6)
- palette3.setBrush(QPalette.Active, QPalette.Highlight, brush9)
- palette3.setBrush(QPalette.Active, QPalette.HighlightedText, brush7)
- palette3.setBrush(QPalette.Active, QPalette.Link, brush6)
- palette3.setBrush(QPalette.Active, QPalette.LinkVisited, brush6)
- palette3.setBrush(QPalette.Active, QPalette.AlternateBase, brush10)
- palette3.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
- palette3.setBrush(QPalette.Inactive, QPalette.Button, brush18)
- palette3.setBrush(QPalette.Inactive, QPalette.Light, brush19)
- palette3.setBrush(QPalette.Inactive, QPalette.Midlight, brush20)
- palette3.setBrush(QPalette.Inactive, QPalette.Dark, brush21)
- palette3.setBrush(QPalette.Inactive, QPalette.Mid, brush22)
- palette3.setBrush(QPalette.Inactive, QPalette.Text, brush6)
- palette3.setBrush(QPalette.Inactive, QPalette.BrightText, brush7)
- palette3.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
- palette3.setBrush(QPalette.Inactive, QPalette.Base, brush7)
- palette3.setBrush(QPalette.Inactive, QPalette.Window, brush8)
- palette3.setBrush(QPalette.Inactive, QPalette.Shadow, brush6)
- palette3.setBrush(QPalette.Inactive, QPalette.Highlight, brush9)
- palette3.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7)
- palette3.setBrush(QPalette.Inactive, QPalette.Link, brush6)
- palette3.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6)
- palette3.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10)
- palette3.setBrush(QPalette.Disabled, QPalette.WindowText, brush)
- palette3.setBrush(QPalette.Disabled, QPalette.Button, brush18)
- palette3.setBrush(QPalette.Disabled, QPalette.Light, brush19)
- palette3.setBrush(QPalette.Disabled, QPalette.Midlight, brush20)
- palette3.setBrush(QPalette.Disabled, QPalette.Dark, brush21)
- palette3.setBrush(QPalette.Disabled, QPalette.Mid, brush22)
- palette3.setBrush(QPalette.Disabled, QPalette.Text, brush6)
- palette3.setBrush(QPalette.Disabled, QPalette.BrightText, brush7)
- palette3.setBrush(QPalette.Disabled, QPalette.ButtonText, brush)
- palette3.setBrush(QPalette.Disabled, QPalette.Base, brush7)
- palette3.setBrush(QPalette.Disabled, QPalette.Window, brush8)
- palette3.setBrush(QPalette.Disabled, QPalette.Shadow, brush6)
- palette3.setBrush(QPalette.Disabled, QPalette.Highlight, brush9)
- palette3.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7)
- palette3.setBrush(QPalette.Disabled, QPalette.Link, brush6)
- palette3.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6)
- palette3.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10)
+ brush22.setStyle(Qt.BrushStyle.SolidPattern)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Mid, brush22)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Text, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.BrightText, brush7)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.ButtonText, brush)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Base, brush7)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Window, brush8)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Shadow, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Highlight, brush9)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.HighlightedText, brush7)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Link, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.LinkVisited, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.AlternateBase, brush10)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.WindowText, brush)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Button, brush18)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Light, brush19)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Midlight, brush20)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Dark, brush21)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Mid, brush22)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Text, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.BrightText, brush7)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.ButtonText, brush)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Base, brush7)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Window, brush8)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Shadow, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Highlight, brush9)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.HighlightedText, brush7)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Link, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.LinkVisited, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.AlternateBase, brush10)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.WindowText, brush)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Button, brush18)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Light, brush19)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Midlight, brush20)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Dark, brush21)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Mid, brush22)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.BrightText, brush7)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ButtonText, brush)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Base, brush7)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Window, brush8)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Shadow, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Highlight, brush9)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.HighlightedText, brush7)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Link, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.LinkVisited, brush6)
+ palette3.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.AlternateBase, brush10)
self.rslider.setPalette(palette3)
self.rslider.setMaximum(400)
self.rslider.setValue(100)