use QmlObjectSharedEngine for tooltips
Change-Id: I6ddb3bcad870165e24bd7b5cd63505fd31ca46b9
This commit is contained in:
parent
9802e9c6d1
commit
cb6b03e907
@ -24,7 +24,7 @@
|
||||
#include <QDebug>
|
||||
#include <QPropertyAnimation>
|
||||
|
||||
#include <kdeclarative/qmlobject.h>
|
||||
#include <kdeclarative/qmlobjectsharedengine.h>
|
||||
|
||||
ToolTipDialog::ToolTipDialog(QQuickItem *parent)
|
||||
: Dialog(parent),
|
||||
@ -59,7 +59,7 @@ ToolTipDialog::~ToolTipDialog()
|
||||
QQuickItem *ToolTipDialog::loadDefaultItem()
|
||||
{
|
||||
if (!m_qmlObject) {
|
||||
m_qmlObject = new KDeclarative::QmlObject(this);
|
||||
m_qmlObject = new KDeclarative::QmlObjectSharedEngine(this);
|
||||
}
|
||||
|
||||
if (!m_qmlObject->rootObject()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user