Resolves: fdo#58187 Expand and Collapse should be virtual

regression from ac7acb0ab1329913b0cec79790adcde0263960be

Change-Id: I773871f08f43a8abadfc5ef9b641db722deb7d20
coverity#1215320 Uncaught exception

Change-Id: Icbc9f370573eda2a79c04825b00db77d1bf1924f
coverity#1213513 Uncaught exception

Change-Id: I04a05773891d680100ee1551eac21e203477935b
coverity#1213450 Uncaught exception

Change-Id: I577b699d0d6b63d81565b0e2e6f2e0a96e87078c
coverity#1213283 Resource leak

Change-Id: I5002f3e935edcc9f09603a5b535e2b339ebed402
coverity#1213245 Dereference null return value

Change-Id: I53dc316ff15ef23a79774d4894aa0940622e1311
coverity#1213149 Missing break in switch

Change-Id: I4978c8d36052119637acdda8121a511936a81cea
coverity#1213120 Unchecked dynamic_cast

Change-Id: I170e392fa883936f835f60ec4798548701f2a3d8
coverity#1213088 Dereference after null check

Change-Id: I86ddf93e18594e9199dbcddca3ad32a58d5987dd
coverity#1212683 Logically dead code

Change-Id: I5830c17a98c7dc193abdb5854c63aaba59e5e014
coverity#1210018 Uncaught exception

Change-Id: I3033f3d84c5c7835c4f1f3809ff343abe8958fef
coverity#1210006 Uncaught exception

Change-Id: I9db3763ed1217e5560d092e689101dddd8027efa
coverity#1209950 Uncaught exception

Change-Id: I92da2ae224bab6d4781463c096a35ecaec6fecc8
coverity#1209494 Explicit null dereferenced

Change-Id: I9e51f2af30f1e0a38079d76db93bac4fe65d13b2
coverity#1209381 Unchecked dynamic_cast

Change-Id: Idab888e866fa08e184b51b8209a4154062d61041
coverity#1103737 Uncaught exception

Change-Id: I53aab00dfad0310a7846fdf7185c50036329343c