X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d52282f8a2a727ad332d4cceeeaa6b79af9267c1..abf17941f7:/src/dolphindetailsview.h diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h index b438b3a33..e66adf573 100644 --- a/src/dolphindetailsview.h +++ b/src/dolphindetailsview.h @@ -21,9 +21,10 @@ #ifndef DOLPHINDETAILSVIEW_H #define DOLPHINDETAILSVIEW_H +#include #include -class DolphinView; +class DolphinController; /** * @brief Represents the details view which shows the name, size, @@ -38,7 +39,7 @@ class DolphinDetailsView : public QTreeView Q_OBJECT public: - explicit DolphinDetailsView(DolphinView* parent); + explicit DolphinDetailsView(QWidget* parent, DolphinController* controller); virtual ~DolphinDetailsView(); protected: @@ -49,8 +50,28 @@ protected: virtual void dragEnterEvent(QDragEnterEvent* event); virtual void dropEvent(QDropEvent* event); +private slots: + /** + * Sets the sort indicator section of the header view + * corresponding to \a sorting. + */ + void setSortIndicatorSection(DolphinView::Sorting sorting); + + /** + * Sets the sort indicator order of the header view + * corresponding to \a sortOrder. + */ + void setSortIndicatorOrder(Qt::SortOrder sortOrder); + + /** + * Synchronizes the sorting state of the Dolphin menu 'View -> Sort' + * with the current state of the details view. + * @param column Index of the current sorting column. + */ + void synchronizeSortingState(int column); + private: - DolphinView* m_parentView; + DolphinController* m_controller; }; #endif