From 7eb1696a32891ce4f1f0e44c590a7fdb7c55fecd Mon Sep 17 00:00:00 2001 From: Tem PQD Date: Sun, 21 Sep 2025 20:48:22 +0000 Subject: placespanel: Fix default width by moving things from showEvent to constructor Move instantiation, setModel, and some connections to constructor and remove showEvent. This was being done in an erroneous lazy order which led to the places panel's sizeHint not being called properly. Also removes the double loading workaround in setUrl, which is no longer needed either. BUG: 449070 --- src/panels/places/placespanel.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/panels/places/placespanel.h') diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h index cbd5fc224..dd5cb6d9e 100644 --- a/src/panels/places/placespanel.h +++ b/src/panels/places/placespanel.h @@ -54,7 +54,6 @@ Q_SIGNALS: void openInSplitViewRequested(const QUrl &url); protected: - void showEvent(QShowEvent *event) override; void dragMoveEvent(QDragMoveEvent *event) override; private Q_SLOTS: @@ -70,7 +69,6 @@ private Q_SLOTS: private: void connectDeviceSignals(const QModelIndex &idx); - QUrl m_url; // only used for initial setUrl QList m_customContextMenuActions; QPersistentModelIndex m_indexToTearDown; -- cgit v1.3.1