Git commit 76f53b37e289f57a7549fd430cf9314238a9434d by Emmanuel Lepage Vall= ee. Committed on 31/07/2017 at 20:22. Pushed by lepagevalleeemmanuel into branch 'next'. timelinewindow: Apply band-aids on some dock area bugs M +16 -0 src/timelinewindow.cpp https://commits.kde.org/ring-kde/76f53b37e289f57a7549fd430cf9314238a9434d diff --git a/src/timelinewindow.cpp b/src/timelinewindow.cpp index f8230fb6..595195a6 100644 --- a/src/timelinewindow.cpp +++ b/src/timelinewindow.cpp @@ -123,6 +123,22 @@ TimelineWindow::TimelineWindow() updateTabIcons(); = m_pPeersTimeline->raise(); + + //HACK + + // As of Qt 5.9, there is a race condition when killing the client tha= t may + // cause the dock to be moved to the bottom. Detect it and fix it. + if (dockWidgetArea(m_pContactCD) =3D=3D Qt::BottomDockWidgetArea) { + removeDockWidget(m_pContactCD); + addDockWidget(Qt::LeftDockWidgetArea, m_pContactCD); + } + + // There is an HiDPI issue where the size of the dock remains the same + // (in pixels) even when the ratio is different than 1. Detect and fix + if (dockWidgetArea(m_pPeersTimeline) =3D=3D Qt::LeftDockWidgetArea && = m_pPeersTimeline->width() < 4.5*logicalDpiX()) { + resizeDocks({m_pPeersTimeline}, {4.5*logicalDpiX()}, Qt::Horizonta= l); + qDebug() << "\n\n\nDSFDSFDSF" << logicalDpiX(); + } } = TimelineWindow::~TimelineWindow()