*/
void observeCreatedItem(const QUrl &url);
+ /**
+ * Selects the next item after prev selection deleted/trashed
+ */
+ void selectNextItem();
+
/**
* Called when a redirection happens.
* Testcase: fish://localhost
void updatePlaceholderLabel();
- void tryShowNameToolTip(QHelpEvent *event);
+ bool tryShowNameToolTip(QHelpEvent *event);
private:
void updatePalette();
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;
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<QUrl> m_selectedUrls; // Used for making the view to remember selections after F5
bool m_clearSelectionBeforeSelectingNewItems;
bool m_markFirstNewlySelectedItemAsCurrent;
QLabel *m_placeholderLabel;
QTimer *m_showLoadingPlaceholderTimer;
+ /// The information roleIndex of the list column header currently hovered
+ std::optional<int> m_hoveredColumnHearderRoleIndex;
+
/// Used for selection mode. @see setSelectionMode()
std::unique_ptr<QProxyStyle> m_proxyStyle;