Tweak project toolbar look, and fix shortcuts

This commit is contained in:
Veronica Berglyd Olsen
2022-06-07 22:38:02 +02:00
parent 5a6ef5efd3
commit ef270bc069
2 changed files with 79 additions and 95 deletions
-9
View File
@@ -187,15 +187,6 @@ def testGuiProjTree_MoveItems(qtbot, monkeypatch, nwGUI, fncDir, mockRnd):
"0000000000010", "0000000000011", "0000000000012",
]
# Move item without focus
with monkeypatch.context() as mp:
mp.setattr(GuiProjectView, "anyFocus", lambda *a: False)
assert nwTree.projTree.moveTreeItem(1) is False
assert nwTree.getTreeFromHandle("000000000000d") == [
"000000000000d", "000000000000e", "000000000000f",
"0000000000010", "0000000000011", "0000000000012",
]
# Move with no selections
nwTree.projTree.clearSelection()
assert nwTree.projTree.moveTreeItem(1) is False