From 0cee94ce82ccb82afd0c4e22d77e251276e7a447 Mon Sep 17 00:00:00 2001 From: Felix Ernst Date: Wed, 6 Jan 2021 01:38:45 +0000 Subject: Fix location bar being wrongly aligned on first startup When starting Dolphin the very first time, the spacing in front of the location bar is wrong. This commit fixes this by completely updating all cached geometry every time adjustSpacing() is called. Because this happens once on a timer 100 ms after every url change, it will happen once shortly after the window is shown. At that point all geometry is where it should be and spacing calculation works as expected. The ViewContainer geometry retrieval is refactored into a small nested helper class in DolphinNavigatorsWidgetAction by the name ViewGeometriesHelper. Previously the logic of that class was divided between DolphinTabPage and DolphinNavigatorsWidgetAction. BUG: 429447 FIXED-IN: 21.04.0 --- src/dolphintabpage.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/dolphintabpage.h') diff --git a/src/dolphintabpage.h b/src/dolphintabpage.h index e90bf99bf..a3659aa18 100644 --- a/src/dolphintabpage.h +++ b/src/dolphintabpage.h @@ -93,11 +93,6 @@ public: */ void disconnectNavigators(); - /** - * Calls resizeNavigators() when a watched object is resized. - */ - bool eventFilter(QObject *watched, QEvent *event) override; - void insertNavigatorsWidget(DolphinNavigatorsWidgetAction *navigatorsWidget); /** -- cgit v1.3