Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
6a196bf6
Commit
6a196bf6
authored
Nov 04, 2020
by
Zren (Chris Holland)
Committed by
Elvis Angelaccio
Nov 04, 2020
Browse files
Move m_textInfo to fix ctor warning, and document why it's protected.
parent
70656d08
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kitemviews/kstandarditemlistwidget.cpp
View file @
6a196bf6
...
...
@@ -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
(),
...
...
src/kitemviews/kstandarditemlistwidget.h
View file @
6a196bf6
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment