]> vaikene.ee Git - evaf/blobdiff - src/plugins/SdiWindow/sdiwindow.h
Made it safe to delete widgets and layouts added to the main window in the original...
[evaf] / src / plugins / SdiWindow / sdiwindow.h
index b2c3bc6c2fbdd69a1120d997091dd1bd586e489c..31b311d60454d8a4c4d04efa640f5fb88bf7b4b4 100644 (file)
@@ -28,6 +28,7 @@
 #include <QString>
 #include <QWidget>
 #include <QList>
+#include <QPointer>
 
 class QVBoxLayout;
 
@@ -72,7 +73,7 @@ private: // Members
     QVBoxLayout * mLayout;
 
     /// Widgets and layouts added to the main window
-    QList<QObject *> mItemsAdded;
+    QList<QPointer<QObject> > mItemsAdded;
 
 };