]> vaikene.ee Git - evaf/blobdiff - src/plugins/SdiWindow/isdiwindow.h
Changed the SdiWindow::iSdiWindow interface to be not derived from QObject.
[evaf] / src / plugins / SdiWindow / isdiwindow.h
index 8cd4343666db997ef1f1118a73fa637873029454..28e774d1b5be7c262aaabbc761aa78b96b23e05c 100644 (file)
@@ -22,8 +22,8 @@
 
 #include "libsdiwindow.h"
 
-#include <QObject>
 #include <QString>
+#include <QtPlugin>
 
 class QWidget;
 class QLayout;
@@ -37,18 +37,8 @@ namespace SdiWindow {
  * The iSdiWindow interface provides access to the SDI main window. The SDI main window is
  * an empty window that the application can fill with widgets.
  */
-class SDIWINDOW_EXPORT iSdiWindow : public QObject
+struct SDIWINDOW_EXPORT iSdiWindow
 {
-    Q_OBJECT
-
-public:
-
-    /// Interface constructor
-    iSdiWindow() : QObject() {}
-
-    /// Empty virtual destructor
-    virtual ~iSdiWindow() {}
-
     /**
      * Returns the iSdiWindow interface instance
      * @return The iSdiWindow interface or zero if not available
@@ -80,4 +70,6 @@ public:
 } // namespace eVaf::SdiWindow
 } // namespace eVaf
 
+Q_DECLARE_INTERFACE(eVaf::SdiWindow::iSdiWindow, "eVaf.SdiWindow.iSdiWindow/1.0")
+
 #endif // isdiwindow.h