]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kstandarditemlistwidget.h
Merge branch 'release/20.12'
[dolphin.git] / src / kitemviews / kstandarditemlistwidget.h
index d036aae662ffebc4f3aa0b4a2d63d9be4be6477b..c19f1759db4302b3d4644326bba0ae841eca9505 100644 (file)
@@ -171,6 +171,12 @@ protected:
     void hideEvent(QHideEvent* event) override;
     bool event(QEvent *event) override;
 
+    struct TextInfo
+    {
+        QPointF pos;
+        QStaticText staticText;
+    };
+
 public slots:
     void finishRoleEditing();
 
@@ -219,6 +225,9 @@ private:
      */
     static qreal columnPadding(const KItemListStyleOption& option);
 
+protected:
+    QHash<QByteArray, TextInfo*> m_textInfo; // PlacesItemListWidget needs to access this
+
 private:
     bool m_isCut;
     bool m_isHidden;
@@ -239,13 +248,6 @@ private:
     QRectF m_iconRect;          // Cache for KItemListWidget::iconRect()
     QPixmap m_hoverPixmap;      // Cache for modified m_pixmap when hovering the item
 
-    struct TextInfo
-    {
-        QPointF pos;
-        QStaticText staticText;
-    };
-    QHash<QByteArray, TextInfo*> m_textInfo;
-
     QRectF m_textRect;
 
     QList<QByteArray> m_sortedVisibleRoles;