Reword code comments in plain technical language
Comments only, no code changes. Replaces vague or personified phrasing with explicit statements of what the code does and why, uses bullet lists for multi-case behavior, and fixes the settings path in WindowSettings.h (~/.config/sloposk/sloposk.conf). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -443,7 +443,7 @@ private Q_SLOTS:
|
||||
QCOMPARE(controller->modifierModes().value(u"ctrl"_s).toInt(), 1);
|
||||
controller->setOptions({}); // turned off while held
|
||||
QVERIFY(engine.held.isEmpty());
|
||||
controller->keyUp(ctrl, KeyOutput::Primary, {}, 10); // back to sticky rules: harmless
|
||||
controller->keyUp(ctrl, KeyOutput::Primary, {}, 10); // released under sticky rules: no effect
|
||||
QVERIFY(engine.held.isEmpty());
|
||||
}
|
||||
|
||||
|
||||
@@ -131,11 +131,11 @@ private Q_SLOTS:
|
||||
QTest::touchEvent(&window, touchscreen).press(0, e);
|
||||
QTest::qWait(LongPressWaitMs);
|
||||
QTest::touchEvent(&window, touchscreen).stationary(0).press(1, u);
|
||||
QTest::qWait(LongPressWaitMs); // u's popup replaces e's, which types its choice
|
||||
QTest::qWait(LongPressWaitMs); // u's popup opens; e's popup closes and types its selection
|
||||
QCOMPARE(engine.output, u"é");
|
||||
QVERIFY(surface->alternates()->isOpen());
|
||||
QTest::touchEvent(&window, touchscreen).release(0, e).stationary(1);
|
||||
QCOMPARE(engine.output, u"é"); // the first finger's lift does nothing more
|
||||
QCOMPARE(engine.output, u"é"); // lifting the first finger types nothing more
|
||||
QVERIFY(surface->alternates()->isOpen());
|
||||
QTest::touchEvent(&window, touchscreen).release(1, u);
|
||||
QCOMPARE(engine.output.size(), 2);
|
||||
|
||||
@@ -79,7 +79,7 @@ private Q_SLOTS:
|
||||
v.show();
|
||||
QVERIFY(!v.isVisible());
|
||||
v.hide();
|
||||
v.setEnabled(true); // turning it back on forgets the dismiss
|
||||
v.setEnabled(true); // re-enabling clears the earlier hide()
|
||||
QVERIFY(v.isVisible());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user