Masks as Photoshop's: the button reveals the selection, Alt-click shows a mask alone (13.12)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-01 18:04:14 -04:00
1 parent cc9bf95722
commit 0b0d36a7df
28 files changed
+554 -72

No files matched your search

+1 -1
View File
@@ -469,7 +469,7 @@ void NativeLayerListTests::ctrlClicksOnThumbnailsLoadSelections()
Shown shown(session);
LayerCell &row = shown.row(0);
QCOMPARE(row.thumbnail().toolTip(), QString("Select image pixels"));
QCOMPARE(row.maskThumbnail().toolTip(), QString("Select layer mask; Shift-click to enable/disable; Ctrl-click to select its black areas (Ctrl-Shift adds, Ctrl-Alt subtracts)"));
QCOMPARE(row.maskThumbnail().toolTip(), QString("Select layer mask; Alt-click to view it alone; Shift-click to enable/disable; Ctrl-click to select its black areas (Ctrl-Shift adds, Ctrl-Alt subtracts)"));
// Ctrl on the picture: its opaque pixels, the row untouched.
QTest::mouseClick(&row.thumbnail(), Qt::LeftButton, Qt::ControlModifier);
QCOMPARE(session.history.undoName(), QString("Load Layer Selection"));