Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Artikulate
Commits
7725adb1
Commit
7725adb1
authored
Jun 23, 2019
by
Andreas Cord-Landwehr
Browse files
Explicitly set CppOwnership for Unit objects
parent
5016c057
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/unit.cpp
View file @
7725adb1
...
...
@@ -27,6 +27,7 @@
#include <QSignalMapper>
#include <QStringList>
#include <QUuid>
#include <QQmlEngine>
#include "artikulate_debug.h"
#include <KLocalizedString>
...
...
@@ -37,6 +38,7 @@ Unit::Unit(QObject *parent)
,
m_course
(
nullptr
)
,
m_phraseSignalMapper
(
new
QSignalMapper
(
this
))
{
QQmlEngine
::
setObjectOwnership
(
this
,
QQmlEngine
::
CppOwnership
);
}
Unit
::~
Unit
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment