*/
virtual bool isHidden() const;
+ /**
+ * @return A font based on baseFont which is customized according to the data shown in the widget.
+ */
+ virtual QFont customizedFont(const QFont& baseFont) const;
+
void setTextColor(const QColor& color);
QColor textColor() const;
*/
QString roleText(const QByteArray& role, const QHash<QByteArray, QVariant>& values) const;
+ /**
+ * Fixes:
+ * Select the text without MIME-type extension
+ * This is file-item-specific and should be moved
+ * into KFileItemListWidget.
+ *
+ * Inherited classes can define, if the MIME-type extension
+ * should be selected or not.
+ *
+ * @return Selection length (with or without MIME-type extension)
+ */
+ virtual int selectionLength(const QString& text) const;
+
virtual void dataChanged(const QHash<QByteArray, QVariant>& current, const QSet<QByteArray>& roles = QSet<QByteArray>());
virtual void visibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous);
virtual void columnWidthChanged(const QByteArray& role, qreal current, qreal previous);
QRectF roleEditingRect(const QByteArray &role) const;
+ /**
+ * Closes the role editor and returns the focus back
+ * to the KItemListContainer.
+ */
+ void closeRoleEditor();
+
static QPixmap pixmapForIcon(const QString& name, int size);
/**
private:
bool m_isCut;
bool m_isHidden;
+ QFont m_customizedFont;
+ QFontMetrics m_customizedFontMetrics;
bool m_isExpandable;
bool m_supportsItemExpanding;