From kde-commits Thu Mar 03 23:16:18 2005 From: Dominik Haumann Date: Thu, 03 Mar 2005 23:16:18 +0000 To: kde-commits Subject: kdelibs Message-Id: <20050303231618.5FD431751E () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=110989182725896 CVS commit by dhaumann: This patch does the following - implement splitterKeepSize correctly. - Internally use always highResolution due to *ugly* rounding bugs. - in fact, the high resolution mode never worked 100%. KDockWidget always assumes a splitter position between 0..100 but it was 0..10000, which lead to size-bugs undock/redock actions. For KDE 4, remove this highResolution option completely. This patch should be BC, kdockwidget_private.* is private API. Compatibility: The splitter position must be always between 0..100. If it is >100, it assumes high resolution from the old behavior, and it will be fixed to a correct value between 0..100. This makes sure it works for both, high resolution and not high resolution. I tested this with k3b, kate, konqueror and a bit Quanta. If you find bugs, please let us know on kmdi-devel@kde.org. This fixes the bugs - #69895: selection menu gets not properly positioned on the right side - #75112: borders in IDEAl mode are not "active" CCBUG:69895 CCBUG:75112 CCMAIL:kmdi-devel@kde.org M +13 -6 kdeui/kdockwidget.cpp 1.171 M +7 -0 kdeui/kdockwidget.h 1.103 M +295 -187 kdeui/kdockwidget_private.cpp 1.54 M +128 -9 kdeui/kdockwidget_private.h 1.32 M +28 -28 kmdi/kmdidockcontainer.cpp 1.72 M +4 -4 kmdi/kmdi/dockcontainer.cpp 1.10