Find the Camera Raw clip buttons and swatches by their Qt base, as newer Qt requires
Release / version (push) Canceled after 0s
Release / deb (ubuntu:24.04, noble) (push) Canceled after 0s
Release / deb (ubuntu:26.04, resolute) (push) Canceled after 0s
Release / rpm (push) Canceled after 0s
Release / arch (push) Canceled after 0s
Release / publish (push) Canceled after 0s
Release / version (push) Canceled after 0s
Release / deb (ubuntu:24.04, noble) (push) Canceled after 0s
Release / deb (ubuntu:26.04, resolute) (push) Canceled after 0s
Release / rpm (push) Canceled after 0s
Release / arch (push) Canceled after 0s
Release / publish (push) Canceled after 0s
This commit is contained in:
1 parent
d59bd62460
commit
96ce546508
3 files changed
+6
-3
No files matched your search
@@ -380,8 +380,9 @@ void CameraRawControls::synchronize()
|
||||
"Right-click to show the vectorscope.")
|
||||
: QStringLiteral("Hue around the wheel, saturation outward from the center. Right-click to show the histogram."));
|
||||
m_scope->setAccessibleName(histogram ? QStringLiteral("RGB histogram") : QStringLiteral("Vectorscope"));
|
||||
for (auto *clip : m_scope->findChildren<ClipButton *>()) {
|
||||
const bool shadows = clip->objectName() == QLatin1String("shadowClipping");
|
||||
// Found as QToolButtons: newer Qt finds only Q_OBJECT classes.
|
||||
for (const bool shadows : {true, false}) {
|
||||
auto *clip = static_cast<ClipButton *>(m_scope->findChild<QToolButton *>(shadows ? QStringLiteral("shadowClipping") : QStringLiteral("highlightClipping")));
|
||||
clip->on = edit && (shadows ? edit->rawPanel.showsShadowClipping : edit->rawPanel.showsHighlightClipping);
|
||||
clip->update();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user