┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinview.h
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2026-05-03 14:53:01 +0200
committerMéven Car <[email protected]>2026-06-13 12:24:37 +0200
commit70f34211cb4ad1f3f6170ded062bafff85d66643 (patch)
treecdcbce9a16cc6deed31f0550e7867b0335968ea2 /src/views/dolphinview.h
parent169332e5691267fd69ac20ac2b1aa06441c588db (diff)
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.
Diffstat (limited to 'src/views/dolphinview.h')
-rw-r--r--src/views/dolphinview.h9
1 files changed, 9 insertions, 0 deletions
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;