[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ring-kde/next] src: timelinewindow: Apply band-aids on some dock area bugs
From:       Emmanuel Lepage Vallee <null () kde ! org>
Date:       2017-07-31 20:22:26
Message-ID: E1dcHCs-0005G2-Lv () code ! kde ! org
[Download RAW message or body]

Git commit 76f53b37e289f57a7549fd430cf9314238a9434d by Emmanuel Lepage Vallee.
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 that may
+    // cause the dock to be moved to the bottom. Detect it and fix it.
+    if (dockWidgetArea(m_pContactCD) == 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) == Qt::LeftDockWidgetArea && \
m_pPeersTimeline->width() < 4.5*logicalDpiX()) { +        \
resizeDocks({m_pPeersTimeline}, {4.5*logicalDpiX()}, Qt::Horizontal); +        \
qDebug() << "\n\n\nDSFDSFDSF" << logicalDpiX(); +    }
 }
 
 TimelineWindow::~TimelineWindow()


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic