summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qwidgettextcontrol.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-03-04 15:20:07 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-29 12:40:05 +0100
commitde10bf4955fda698e87bbbfee4461554a2fa876a (patch)
treeace59813e509f69cd925acd27c63deb98a585b38 /src/widgets/widgets/qwidgettextcontrol.cpp
parentecdeaa436929e7fe8ebf6063bfb83ba2c4e9383a (diff)
QEvent: document and check when registerEventTypes() returns -1
In tst_QEvent, add a check that exhausts the available event type ids and verifies that registerEventTypes() returns -1 in that case, as documented. I haven't found a way to test the other case in which -1 is returned. Since this test operates on a global write-only registry the new test case needs to keep track of whether the earlier test cases have run successfully. If they didn't, skip this test case. Change-Id: I68ea9d17d10dcec22175994aba269dd09c9adf43 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/widgets/qwidgettextcontrol.cpp')
0 files changed, 0 insertions, 0 deletions