diff options
| author | Rafał Lichwała <[email protected]> | 2025-10-30 16:11:43 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2025-10-31 10:19:48 +0000 |
| commit | 8d44699fa48bc4028b2a7fab4af77ad91f899956 (patch) | |
| tree | 0df743ac01ee1df1c7337bc46f4c2ce7449d00cd /src/dolphintabpage.h | |
| parent | a2893a61c2802953c7aee61442be8eec820a2359 (diff) | |
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
Diffstat (limited to 'src/dolphintabpage.h')
| -rw-r--r-- | src/dolphintabpage.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dolphintabpage.h b/src/dolphintabpage.h index 1abc05670..b6135d360 100644 --- a/src/dolphintabpage.h +++ b/src/dolphintabpage.h @@ -155,10 +155,14 @@ 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 |
