better debug info

pull/1/head
Johan Smith Agudelo Rodriguez 8 years ago
parent 44bdd5a90b
commit 5d59cfb01c

@ -101,8 +101,6 @@ void DockConfigView::syncGeometry()
const auto location = m_containment->location();
const auto sGeometry = screen()->geometry();
qDebug() << "sync geometry";
switch (m_containment->formFactor()) {
case Plasma::Types::Horizontal: {
const QSize size(rootObject()->width(), rootObject()->height());

@ -248,15 +248,11 @@ void DockView::resizeWindow()
setMinimumSize(size);
setMaximumSize(size);
resize(size);
qDebug() << "dock size:" << size;
} else {
const QSize size{screenSize.width(), maxThickness()};
setMinimumSize(size);
setMaximumSize(size);
resize(size);
qDebug() << "dock size:" << size;
}
}
@ -288,8 +284,6 @@ void DockView::updatePosition()
const QRect screenGeometry = screen()->geometry();
QPoint position;
qDebug() << "current dock geometry: " << geometry();
position = {0, 0};
m_maxLength = screenGeometry.width();
@ -321,8 +315,6 @@ void DockView::updatePosition()
emit maxLengthChanged();
setPosition(position);
qDebug() << "dock position:" << position;
}
inline void DockView::syncGeometry()
@ -330,6 +322,8 @@ inline void DockView::syncGeometry()
resizeWindow();
updatePosition();
updateAbsDockGeometry();
qDebug() << "dock geometry:" << qRectToStr(geometry());
}
int DockView::currentThickness() const
@ -380,8 +374,7 @@ void DockView::updateFormFactor()
break;
default:
qWarning() << "wrong location, couldn't update the panel position"
<< location();
qWarning() << "wrong location, couldn't update the panel position" << location();
}
}

Loading…
Cancel
Save