Berthold Stoeger 05200f9266 Cleanup: unify idiosyncratic singletons
The way we handle singletons in QML, QML insists on allocating the
objects. This leads to a very idiosyncratic way of handling
singletons: The global instance pointer is set in the constructor.

Unify all these by implementing a "SillySingleton" template. All
of the weird singleton-classes can derive from this template and
don't have to bother with reimplementing the instance() function
with all the safety-checks, etc.

This serves firstly as documentation but also improves debugging
as we will now see wanted and unwanted creation and destruction
of these weird singletons.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-09-25 13:35:30 -07:00
..
2019-08-08 08:56:44 -07:00
2019-08-08 16:26:31 -07:00
2019-08-08 16:26:31 -07:00
2017-04-29 13:32:55 -07:00
2019-08-11 08:20:38 +02:00
2018-10-21 19:55:09 +03:00
2018-10-21 19:55:09 +03:00
2019-07-18 06:01:07 -07:00
2018-05-30 21:47:07 -07:00
2017-04-29 13:32:55 -07:00
2019-07-18 06:01:07 -07:00
2017-04-29 13:32:55 -07:00
2019-09-21 16:12:23 -07:00
2019-09-21 16:12:23 -07:00