From 70f34211cb4ad1f3f6170ded062bafff85d66643 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sun, 3 May 2026 14:53:01 +0200 Subject: Add A restore view properties to defaults button The button allows to restore to defaults, in case you are using the per-folder view properties settings. The button disables or enables itself whether or not it matches the defaults view settings. --- src/views/dolphinview.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/views/dolphinview.h') diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index b0ab6ab6a..19813f0e1 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -509,6 +509,13 @@ public Q_SLOTS: */ void updateViewState(); + /** + * Whether or not the current has the default settings + */ + bool isViewSettingsDefaults() const; + + void restoreViewSettingsToDefaults(); + Q_SIGNALS: /** * Is emitted if the view has been activated by e. g. a mouse click. @@ -751,6 +758,8 @@ Q_SIGNALS: */ void doubleClickViewBackground(Qt::MouseButton button); + void viewSettingsChanged(bool isDefault); + protected: /** Changes the zoom level if Control is pressed during a wheel event. */ void wheelEvent(QWheelEvent *event) override; -- cgit v1.3.1