Default to BottomEdge in Dialog

Also add a little bit of debugging to check sizing.
This commit is contained in:
Sebastian Kügler 2013-11-20 04:05:35 +01:00
parent e2b40feef6
commit ccca440859

View File

@ -40,7 +40,7 @@
DialogProxy::DialogProxy(QQuickItem *parent)
: QQuickWindow(parent ? parent->window() : 0),
m_location(Plasma::Types::TopEdge),
m_location(Plasma::Types::BottomEdge),
m_activeWindow(false),
m_type(Normal)
{
@ -374,6 +374,8 @@ void DialogProxy::syncToMainItemSize()
QSize(m_frameSvgItem->margins()->left() + m_frameSvgItem->margins()->right(),
m_frameSvgItem->margins()->top() + m_frameSvgItem->margins()->bottom());
//resize(0,0);
qDebug() << "DIALOG mainItem: " << m_mainItem.data()->objectName()<< QSize(m_mainItem.data()->width(), m_mainItem.data()->height());
qDebug() << "DIALOG resize: " << s;
resize(s);
emit widthChanged(s.width());
emit heightChanged(s.height());