if parent = 0, component is complete

the tooltip dialog is created from c++, not qml

this fixes dialog positioning for tooltips
This commit is contained in:
Marco Martin 2014-03-05 17:03:47 +01:00
parent dff653354f
commit c3d6c00a95

View File

@ -55,7 +55,7 @@ DialogProxy::DialogProxy(QQuickItem *parent)
m_type(Normal),
m_hideOnWindowDeactivate(false),
m_outputOnly(false),
m_componentComplete(false)
m_componentComplete(parent == 0)
{
QSurfaceFormat format;
format.setAlphaBufferSize(8);