Pass correct argument to QShortcutEvent ctor in tst_qabstractbutton.cpp
authorMitch Curtis <mitch.curtis@nokia.com>
Mon, 17 Sep 2012 15:11:16 +0000 (17:11 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 19 Sep 2012 17:54:44 +0000 (19:54 +0200)
commit63bc298fb336e285c5abf5946eb790b4ba7df372
tree52e9090970724ba6ea1819f5f89aa2b671898f21
parented116aa3b39c54ce78468f50f10c2d4cc7b02816
Pass correct argument to QShortcutEvent ctor in tst_qabstractbutton.cpp

The QShortcutEvent constructor takes "int shortcutId" as its second
argument, not a bool. Since the default shortcutId is 0, this test
passed, since false == 0.

Change-Id: I43bbae4613f3badb1578dccec76dcdd3c96a3a2f
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
tests/auto/widgets/widgets/qabstractbutton/tst_qabstractbutton.cpp