]> cloud.milkyroute.net Git - dolphin.git/commit
Test which items are activated when pressing Enter or Return
authorFrank Reininghaus <frank78ac@googlemail.com>
Mon, 13 Feb 2012 21:37:26 +0000 (22:37 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Mon, 13 Feb 2012 21:39:04 +0000 (22:39 +0100)
commit7f0aaff9b5d5f1527587dfd68d3b42e020a21122
tree28b0006d70291d4ebadc93d07c7373d8d3c964cf
parente1766d0e5f0f71b37ca7cc5adbe56de5e6bf8b57
Test which items are activated when pressing Enter or Return

The ViewState struct gets a new bool member to indicate if the selected
items should have been activated after the last event or not. One could
argue that adding a bool parameter to the constructor is not optimal,
but I think adding an enum is not really worth the effort because the
struct is not used outside this unit test. Moreover, I could not think
of a good name for the enum type and its values.
(cherry picked from commit 307cca7b31b998fb7e8af0478a8e97e53bdc059c)
src/tests/kitemlistcontrollertest.cpp