diff options
| author | Wagner Soares <[email protected]> | 2026-02-19 17:57:02 -0300 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-03-11 16:33:57 +0000 |
| commit | 0f7a9c681c4f7336362bf8a5d1c41f2bc8ed9215 (patch) | |
| tree | 247b5517d24f773a7d6d964474b8b1d92b257b38 /src/views/dolphinview.h | |
| parent | 69dd9b4ef427a697dc04a329917cdfba62c5b145 (diff) | |
viewproperties: Add per-folder zoom
Adds ZoomLevel flag to the directory and uses it instead of global settings when globalViewProps is set to false.
CCBUG: 169405
Diffstat (limited to 'src/views/dolphinview.h')
| -rw-r--r-- | src/views/dolphinview.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index e3f83979c..67233b668 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -791,6 +791,11 @@ private Q_SLOTS: void updateSortFoldersFirst(bool foldersFirst); /** + * Cache out zoom mode changes to prevent constant Settings requests + */ + void updateDefaultZoomLevel(); + + /** * Updates the view properties of the current URL to the * sorting of hidden files given by \a hiddenLast. */ @@ -1007,6 +1012,9 @@ private: // resolution scroll wheels) int m_controlWheelAccumulatedDelta; + // Cached out default zoom level after view mode changes + int m_defaultZoomLevel = -1; + QList<QUrl> m_selectedUrls; // Used for making the view to remember selections after F5 and file operations bool m_clearSelectionBeforeSelectingNewItems; bool m_markFirstNewlySelectedItemAsCurrent; |
