]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinitemlistview.h
fix incorrect view reset when unmounting similarly-named devices
[dolphin.git] / src / views / dolphinitemlistview.h
index 25476290f60ff2c2e39302ff9b84e12c36f5a8aa..0483c0644f4da5c800e6e7b21e632781ae0d6253 100644 (file)
@@ -24,17 +24,13 @@ class DOLPHIN_EXPORT DolphinItemListView : public KFileItemListView
     Q_OBJECT
 
 public:
-    explicit DolphinItemListView(QGraphicsWidgetparent = nullptr);
+    explicit DolphinItemListView(QGraphicsWidget *parent = nullptr);
     ~DolphinItemListView() override;
 
     void setZoomLevel(int level);
     int zoomLevel() const;
 
-    enum SelectionTogglesEnabled {
-        True,
-        False,
-        FollowSetting
-    };
+    enum SelectionTogglesEnabled { True, False, FollowSetting };
     /**
      * Sets whether the items in this view should show a small selection toggle area on mouse hover.
      * The default for this view is to follow the "showSelectionToggle" setting but this method can
@@ -46,15 +42,14 @@ public:
     void writeSettings();
 
 protected:
-    KItemListWidgetCreatorBasedefaultWidgetCreator() const override;
+    KItemListWidgetCreatorBase *defaultWidgetCreator() const override;
     /** Overwriting in the Dolphin-specific class because we want this to be user-configurable.
      * @see KStandardItemListView::itemLayoutHighlightEntireRow */
     bool itemLayoutHighlightEntireRow(ItemLayout layout) const override;
     bool itemLayoutSupportsItemExpanding(ItemLayout layout) const override;
     void onItemLayoutChanged(ItemLayout current, ItemLayout previous) override;
     void onPreviewsShownChanged(bool shown) override;
-    void onVisibleRolesChanged(const QList<QByteArray>& current,
-                                       const QList<QByteArray>& previous) override;
+    void onVisibleRolesChanged(const QList<QByteArray> &current, const QList<QByteArray> &previous) override;
 
     void updateFont() override;