*/
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;
+
+ virtual QPalette::ColorRole normalTextColorPalette() const;
+
void setTextColor(const QColor& color);
QColor textColor() const;
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);
- static void applyCutEffect(QPixmap& pixmap);
- static void applyHiddenEffect(QPixmap& pixmap);
/**
* @return Preferred size of the rating-image based on the given
private:
bool m_isCut;
bool m_isHidden;
+ QFont m_customizedFont;
+ QFontMetrics m_customizedFontMetrics;
bool m_isExpandable;
bool m_supportsItemExpanding;