]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistheader.h
Merge branch 'Applications/18.04'
[dolphin.git] / src / kitemviews / kitemlistheader.h
index fe2d0ac1052d590157b8780aae7c3e591a208269..95258a592efaa86b61d02231804687e09c874f7c 100644 (file)
@@ -20,7 +20,8 @@
 #ifndef KITEMLISTHEADER_H
 #define KITEMLISTHEADER_H
 
-#include <libdolphin_export.h>
+#include "dolphin_export.h"
+
 #include <QHash>
 #include <QObject>
 
@@ -33,12 +34,12 @@ class KItemListView;
  * Each column of the header represents a visible role
  * accessible by KItemListView::visibleRoles().
  */
-class LIBDOLPHINPRIVATE_EXPORT KItemListHeader : public QObject
+class DOLPHIN_EXPORT KItemListHeader : public QObject
 {
     Q_OBJECT
 
 public:
-    virtual ~KItemListHeader();
+    ~KItemListHeader() override;
 
     /**
      * If set to true, KItemListView will automatically adjust the
@@ -79,8 +80,15 @@ signals:
                             qreal currentWidth,
                             qreal previousWidth);
 
+    /**
+     * Is emitted if the user has released the mouse button after adjusting the
+     * width of a visible role.
+     */
+    void columnWidthChangeFinished(const QByteArray& role,
+                                   qreal currentWidth);
+
 private:
-    KItemListHeader(KItemListView* listView);
+    explicit KItemListHeader(KItemListView* listView);
 
 private:
     KItemListView* m_view;