QtSupport: Fix partial delete of ExampleItem objects

If we delete items via the base class destructor, it needs to be
virtual.

Change-Id: Id5deaa3f327d881b93852b5cbf1cf2940bb333d0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-01-21 12:50:44 +01:00
parent 8c6e6d1dbd
commit 57e3a03538
2 changed files with 3 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ private:
class CORE_EXPORT ListItem
{
public:
virtual ~ListItem() {}
QString name;
QString description;
QString imageUrl;

View File

@@ -103,6 +103,8 @@ enum InstructionalType
class ExampleItem : public Core::ListItem
{
public:
~ExampleItem() override {}
QString projectPath;
QString docUrl;
QStringList filesToOpen;