finalizing the SdiWindow module.
close();
// Delete all the items added to the main window
close();
// Delete all the items added to the main window
- while (mItemsAdded.count() > 0)
- delete mItemsAdded.takeAt(0);
+ while (mItemsAdded.count() > 0) {
+ QPointer<QObject> item = mItemsAdded.takeAt(0);
+ if (item)
+ delete item.data();
+ }
EVAF_INFO("%s finalized", qPrintable(objectName()));
}
EVAF_INFO("%s finalized", qPrintable(objectName()));
}
#include <QString>
#include <QWidget>
#include <QList>
#include <QString>
#include <QWidget>
#include <QList>
QVBoxLayout * mLayout;
/// Widgets and layouts added to the main window
QVBoxLayout * mLayout;
/// Widgets and layouts added to the main window
- QList<QObject *> mItemsAdded;
+ QList<QPointer<QObject> > mItemsAdded;
/**
* Module/library version number in the form major,minor,release,build
*/
/**
* Module/library version number in the form major,minor,release,build
*/
-#define VER_FILE_VERSION 0,2,1,2
+#define VER_FILE_VERSION 0,2,2,3
/**
* Module/library version number in the string format (shall end with \0)
*/
/**
* Module/library version number in the string format (shall end with \0)
*/
-#define VER_FILE_VERSION_STR "0.2.1.2\0"
+#define VER_FILE_VERSION_STR "0.2.2.3\0"
/**
* Module/library name (shall end with \0)
/**
* Module/library name (shall end with \0)