Coloured slider tracks with double-click reset, aligned filter titles; entries release focus before their owners go (12.14c)

This commit is contained in:
雷电芽衣 committed 2026-09-30 03:32:51 -04:00
1 parent 2183348aa6
commit 2fa8d9921d
39 files changed
+1387 -311

No files matched your search

+2 -2
View File
@@ -101,11 +101,11 @@ void FilterControlsTests::eachKindShowsSwiftsControls()
QVERIFY(field.alignment() & Qt::AlignRight);
QVERIFY(!field.accessibleName().isEmpty() && field.placeholderText() == field.accessibleName());
QSlider &slider = sheet.child<QSlider>(qPrintable(name + QStringLiteral("Slider")));
// Swift's title: sixty points at least, naming the slider.
// Swift's title: the widest title's width, sixty at least.
QLabel *title = nullptr;
for (QLabel *each : slider.parentWidget()->findChildren<QLabel *>())
title = each->buddy() == &slider ? each : title;
QVERIFY(title && title->text() == field.accessibleName() && title->minimumWidth() == 60);
QVERIFY(title && title->text() == field.accessibleName() && title->minimumWidth() >= 60 && title->maximumWidth() == title->minimumWidth());
}
QCOMPARE(sheet.sheet->findChild<CurvesControls *>() != nullptr, kind == FilterKind::curves);
QCOMPARE(sheet.sheet->findChild<GradientMapControls *>() != nullptr, kind == FilterKind::gradientMap);