Say why a brush cannot paint; paint at the layer's own resolution; Cancel and Apply only when an edit waits, scaled layers' scale (13.11)
This commit is contained in:
1 parent
51e373af4c
commit
cc9bf95722
24 files changed
+820
-129
No files matched your search
@@ -11,6 +11,7 @@ private slots:
|
||||
void polygonalCornersCanBeRemovedAndClosed();
|
||||
void antialiasingControlsEdgeCoverage();
|
||||
void selectAllInverseAndToolSwitchCancelsDraft();
|
||||
void inverseOfEverythingDeselects();
|
||||
void cursorBadgeFollowsModifiersButKeepsAnOutlinesStartingMode();
|
||||
void draggingMovesTheOutlineInWholePixelsAsOneUndo();
|
||||
void movingOffCanvasAndBackKeepsTheWholeShape();
|
||||
@@ -180,6 +181,23 @@ void SelectionTests::selectAllInverseAndToolSwitchCancelsDraft()
|
||||
QCOMPARE(session->history.undoCount(), count + 1);
|
||||
}
|
||||
|
||||
// Swift's: Select All then Inverse leaves nothing selected.
|
||||
void SelectionTests::inverseOfEverythingDeselects()
|
||||
{
|
||||
const auto session = selectionSession();
|
||||
session->selectAll();
|
||||
session->invertSelection();
|
||||
QVERIFY(!session->selection().has_value());
|
||||
QCOMPARE(session->history.undoName(), QString("Inverse"));
|
||||
session->undo();
|
||||
QVERIFY(!session->selection().value().isEmpty());
|
||||
// Everything but a corner inverts to that corner.
|
||||
lasso(*session, square(0, 0, 10));
|
||||
session->invertSelection();
|
||||
session->invertSelection();
|
||||
QCOMPARE(bounds(*session), QRectF(0, 0, 10, 10));
|
||||
}
|
||||
|
||||
void SelectionTests::cursorBadgeFollowsModifiersButKeepsAnOutlinesStartingMode()
|
||||
{
|
||||
const auto session = selectionSession();
|
||||
|
||||
Reference in new issue
Block a user