]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kstandarditemlistwidget.h
Left-elide file/folders while keeping their extension visible
[dolphin.git] / src / kitemviews / kstandarditemlistwidget.h
index 220c0ebc3329071c3dae677305b45ebf0cbedfbd..e7f2de2e073f09e03d48a7777cbd04eb6e50a907 100644 (file)
@@ -80,7 +80,7 @@ protected:
 };
 
 /**
- * @brief Itemlist widget implementation for KStandardItemView and KStandardItemModel.
+ * @brief Itemlist widget implementation for KStandardItemListView and KStandardItemModel.
  */
 class DOLPHIN_EXPORT KStandardItemListWidget : public KItemListWidget
 {
@@ -209,6 +209,8 @@ private:
 
     QRectF roleEditingRect(const QByteArray &role) const;
 
+    QString elideRightKeepExtension(const QString &text, int elidingWidth) const;
+
     /**
      * Closes the role editor and returns the focus back
      * to the KItemListContainer.