X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/38c34eeca315c7be58e65d4d3fb72aaf7b866719..6e7a5760b4d6fc3244fbc0fae2fbce6201603fda:/src/views/dolphinview.h diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 8cf23c298..d47825fe0 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -796,6 +796,11 @@ private Q_SLOTS: */ void observeCreatedItem(const QUrl &url); + /** + * Selects the next item after prev selection deleted/trashed + */ + void selectNextItem(); + /** * Called when a redirection happens. * Testcase: fish://localhost @@ -881,7 +886,7 @@ private: void updatePlaceholderLabel(); - void tryShowNameToolTip(QHelpEvent *event); + bool tryShowNameToolTip(QHelpEvent *event); private: void updatePalette(); @@ -893,6 +898,7 @@ private: bool m_isFolderWritable; bool m_dragging; // True if a dragging is done. Required to be able to decide whether a // tooltip may be shown when hovering an item. + bool m_selectNextItem; enum class LoadingState { Idle, Loading, Canceled, Completed }; LoadingState m_loadingState = LoadingState::Idle; @@ -918,6 +924,10 @@ private: bool m_scrollToCurrentItem; // Used for marking we need to scroll to current item or not QPoint m_restoredContentsPosition; + // Used for tracking the accumulated scroll amount (for zooming with high + // resolution scroll wheels) + int m_controlWheelAccumulatedDelta; + QList m_selectedUrls; // Used for making the view to remember selections after F5 bool m_clearSelectionBeforeSelectingNewItems; bool m_markFirstNewlySelectedItemAsCurrent; @@ -929,6 +939,9 @@ private: QLabel *m_placeholderLabel; QTimer *m_showLoadingPlaceholderTimer; + /// The information roleIndex of the list column header currently hovered + std::optional m_hoveredColumnHeaderRoleIndex; + /// Used for selection mode. @see setSelectionMode() std::unique_ptr m_proxyStyle;