┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphintabpage.h
diff options
context:
space:
mode:
authorRafał Lichwała <[email protected]>2025-10-30 16:11:43 +0100
committerMéven Car <[email protected]>2025-10-31 10:19:48 +0000
commit8d44699fa48bc4028b2a7fab4af77ad91f899956 (patch)
tree0df743ac01ee1df1c7337bc46f4c2ce7449d00cd /src/dolphintabpage.h
parenta2893a61c2802953c7aee61442be8eec820a2359 (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.h7
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