Crop ratios and selection start, Vignette on empty layers, text colour previews (12.10c); mutation runs use 12 cores
This commit is contained in:
1 parent
7a873eb9c7
commit
ffba1753c6
27 files changed
+555
-55
No files matched your search
@@ -43,6 +43,7 @@ private slots:
|
||||
void theButtonsFollowTheDraft();
|
||||
void theBarRestsWithoutADocumentOrWhileBusy();
|
||||
void aTextRowShowsAndOpensItsText();
|
||||
void thePickersColourPreviewsOnOpenText();
|
||||
};
|
||||
|
||||
void TypeControlsTests::theBarShowsTheStyleItEdits()
|
||||
@@ -455,5 +456,19 @@ void TypeControlsTests::aTextRowShowsAndOpensItsText()
|
||||
QVERIFY(!session.renamingLayerID());
|
||||
}
|
||||
|
||||
void TypeControlsTests::thePickersColourPreviewsOnOpenText()
|
||||
{
|
||||
// Swift's onChange: each working colour reaches the draft.
|
||||
Bar shown;
|
||||
shown.session.beginText(QPointF(20, 30));
|
||||
shown.session.openTextColorPicker();
|
||||
PickerHSB hsb = shown.session.colorPicker().value().hsb;
|
||||
hsb.setRGB(PaletteColor{1, 0, 0});
|
||||
shown.session.setColorPickerHSB(hsb);
|
||||
QCOMPARE(shown.session.textDraft().value().style.red, 1.0);
|
||||
shown.session.closeColorPicker(false);
|
||||
QCOMPARE(shown.session.textDraft().value().style.red, 0.0);
|
||||
}
|
||||
|
||||
QTEST_MAIN(TypeControlsTests)
|
||||
#include "TypeControlsTests.moc"
|
||||
Reference in new issue
Block a user