From 8d44699fa48bc4028b2a7fab4af77ad91f899956 Mon Sep 17 00:00:00 2001 From: Rafał Lichwała Date: Thu, 30 Oct 2025 16:11:43 +0100 Subject: dolphintabpage: save and restore splitter position This commit changes version number for save/restore tab state, because format has changed - m_splitterLastPosition is now also saved/restored BUG: 430705 --- src/dolphintabpage.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/dolphintabpage.h') diff --git a/src/dolphintabpage.h b/src/dolphintabpage.h index 1abc05670..b6135d360 100644 --- a/src/dolphintabpage.h +++ b/src/dolphintabpage.h @@ -155,9 +155,13 @@ public: Q_SIGNALS: void activeViewChanged(DolphinViewContainer *viewContainer); void activeViewUrlChanged(const QUrl &url); - void splitterMoved(int pos, int index); private Q_SLOTS: + /** + * Saves splitter position to be able to restore it on split mode OFF->ON + */ + void splitterMoved(int pos); + /** * Deletes all zombie viewContainers that were used for the animation * and resets the minimum size of the others to a sane value. @@ -217,6 +221,7 @@ private: bool m_active; /** @see setCustomLabel(). */ QString m_customLabel; + int m_splitterLastPosition = 0; }; class DolphinTabPageSplitterHandle : public QSplitterHandle -- cgit v1.3