summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-20 22:45:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-20 23:24:15 +0200
commit32e1adc0af44cf0cb8495118700884b7ad479a6e (patch)
tree814f9dc9ced92acbfaa628329b79f530f8c2dd9e
parentbe6e8566a13cf468433ca5a86b9595e96cda1907 (diff)
api/plugins: avoid needless vtable
-rw-r--r--opentrack/plugin-api.cpp3
-rw-r--r--opentrack/plugin-api.hpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/opentrack/plugin-api.cpp b/opentrack/plugin-api.cpp
new file mode 100644
index 00000000..f6f4e8f8
--- /dev/null
+++ b/opentrack/plugin-api.cpp
@@ -0,0 +1,3 @@
+#include "plugin-api.hpp"
+
+void plugin_api::detail::BaseDialog::closeEvent(QCloseEvent*) { emit closing(); }
diff --git a/opentrack/plugin-api.hpp b/opentrack/plugin-api.hpp
index 5fdc3bcb..dba6fc82 100644
--- a/opentrack/plugin-api.hpp
+++ b/opentrack/plugin-api.hpp
@@ -43,7 +43,7 @@ class OPENTRACK_EXPORT BaseDialog : public QWidget
{
Q_OBJECT
public:
- void closeEvent(QCloseEvent *) override { emit closing(); }
+ void closeEvent(QCloseEvent *) override;
signals:
void closing();
};