Coloured slider tracks with double-click reset, aligned filter titles; entries release focus before their owners go (12.14c)
This commit is contained in:
1 parent
2183348aa6
commit
2fa8d9921d
39 files changed
+1387
-311
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user