+ /// \name Dialog inherited methods
+ //@{
+ void applyView() {}
+ bool initialiseParams(std::string const & /*data*/) { return true; }
+ void clearParams() {}
+ //@}
+ /// Any dialog that overrides this method should make sure to call it.
+ void closeEvent(QCloseEvent * ev)
+ {
+ clearParams();
+ Dialog::disconnect();
+ ev->accept();
+ }
+ /// Any dialog that overrides this method should make sure to call it.
+ void hideEvent(QHideEvent * ev)
+ {
+ if (!ev->spontaneous()) {
+ clearParams();
+ Dialog::disconnect();
+ ev->accept();
+ }
+ }