Refactoring: use an interface for the common business logic
authorJan Kundrát <jkt@flaska.net>
Fri, 15 Nov 2013 14:00:28 +0000 (15:00 +0100)
committerJan Kundrát <jkt@flaska.net>
Fri, 15 Nov 2013 15:02:11 +0000 (16:02 +0100)
commitb9d2572a87f82a2431fbf7d7bbbf611ca6e0b810
tree1ca475b9000a2ae38bd2864dbfdd56401aac8afc
parent53ad8e0c3f3f7e48630db446509df86776e9f2c1
Refactoring: use an interface for the common business logic

The whole reason for the asWidget() method is to enforce the type correctness
here. Any solution which employes a static_cast or a reinterpret_cast is evil,
and one cannot use virtual inheritance with multiple QObject instances due to
the moc's limitations, according to the docs.
src/Gui/SettingsDialog.cpp
src/Gui/SettingsDialog.h