Commit 6a196bf6 authored by Zren (Chris Holland)'s avatar Zren (Chris Holland) Committed by Elvis Angelaccio
Browse files

Move m_textInfo to fix ctor warning, and document why it's protected.

parent 70656d08
......@@ -232,6 +232,7 @@ void KStandardItemListWidgetInformant::calculateDetailsLayoutItemSizeHints(QVect
KStandardItemListWidget::KStandardItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent) :
KItemListWidget(informant, parent),
m_textInfo(),
m_isCut(false),
m_isHidden(false),
m_customizedFont(),
......@@ -247,7 +248,6 @@ KStandardItemListWidget::KStandardItemListWidget(KItemListWidgetInformant* infor
m_scaledPixmapSize(),
m_iconRect(),
m_hoverPixmap(),
m_textInfo(),
m_textRect(),
m_sortedVisibleRoles(),
m_expansionArea(),
......
......@@ -171,13 +171,11 @@ protected:
void hideEvent(QHideEvent* event) override;
bool event(QEvent *event) override;
protected:
struct TextInfo
{
QPointF pos;
QStaticText staticText;
};
QHash<QByteArray, TextInfo*> m_textInfo;
public slots:
void finishRoleEditing();
......@@ -227,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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment