|
|
|
@ -46,7 +46,7 @@ namespace Latte {
|
|
|
|
|
DockView::DockView(Plasma::Corona *corona, QScreen *targetScreen)
|
|
|
|
|
: PlasmaQuick::ContainmentView(corona),
|
|
|
|
|
m_docksCount(0),
|
|
|
|
|
m_contextMenu(nullptr)
|
|
|
|
|
m_contextMenu(nullptr)
|
|
|
|
|
{
|
|
|
|
|
setVisible(false);
|
|
|
|
|
setTitle(corona->kPackage().metadata().name());
|
|
|
|
@ -117,11 +117,12 @@ void DockView::init()
|
|
|
|
|
connect(this, &QQuickWindow::widthChanged, this, &DockView::widthChanged);
|
|
|
|
|
connect(this, &QQuickWindow::heightChanged, this, &DockView::heightChanged);
|
|
|
|
|
|
|
|
|
|
connect(this, &DockView::locationChanged, this, &DockView::syncGeometry);
|
|
|
|
|
connect(this, &QQuickWindow::xChanged, this, &DockView::syncGeometry);
|
|
|
|
|
connect(this, &QQuickWindow::yChanged, this, &DockView::syncGeometry);
|
|
|
|
|
connect(this, &QQuickWindow::xChanged, this, &DockView::updateAbsDockGeometry);
|
|
|
|
|
connect(this, &QQuickWindow::yChanged, this, &DockView::updateAbsDockGeometry);
|
|
|
|
|
connect(this, &DockView::locationChanged, this, [&]() {
|
|
|
|
|
updateFormFactor();
|
|
|
|
|
syncGeometry();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
connect(this, &DockView::localDockGeometryChanged, this, &DockView::syncGeometry);
|
|
|
|
|
connect(this, &DockView::localDockGeometryChanged, this, &DockView::updateAbsDockGeometry);
|
|
|
|
|
connect(&timerSyncGeometry, &QTimer::timeout, this, &DockView::updatePosition);
|
|
|
|
|
|
|
|
|
@ -326,7 +327,6 @@ void DockView::updatePosition()
|
|
|
|
|
|
|
|
|
|
inline void DockView::syncGeometry()
|
|
|
|
|
{
|
|
|
|
|
updateFormFactor();
|
|
|
|
|
resizeWindow();
|
|
|
|
|
updatePosition();
|
|
|
|
|
updateAbsDockGeometry();
|
|
|
|
|