Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/private/kitemlistheaderwidget.h
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Line(s) | 119 | private: | |||
---|---|---|---|---|---|
141 | int targetOfMovingRole() const; | 141 | int targetOfMovingRole() const; | ||
142 | 142 | | |||
143 | /** | 143 | /** | ||
144 | * @return x-position of the left border of the role \a role. | 144 | * @return x-position of the left border of the role \a role. | ||
145 | */ | 145 | */ | ||
146 | qreal roleXPosition(const QByteArray& role) const; | 146 | qreal roleXPosition(const QByteArray& role) const; | ||
147 | 147 | | |||
148 | private: | 148 | private: | ||
149 | enum RoleOperation | 149 | enum class RoleOperation | ||
150 | { | 150 | { | ||
151 | NoRoleOperation, | 151 | NoRoleOperation, | ||
152 | ResizeRoleOperation, | 152 | Resize, | ||
153 | MoveRoleOperation | 153 | Move | ||
154 | }; | 154 | }; | ||
155 | 155 | | |||
156 | bool m_automaticColumnResizing; | 156 | bool m_automaticColumnResizing; | ||
157 | KItemModelBase* m_model; | 157 | KItemModelBase* m_model; | ||
158 | qreal m_offset; | 158 | qreal m_offset; | ||
159 | QList<QByteArray> m_columns; | 159 | QList<QByteArray> m_columns; | ||
160 | QHash<QByteArray, qreal> m_columnWidths; | 160 | QHash<QByteArray, qreal> m_columnWidths; | ||
161 | QHash<QByteArray, qreal> m_preferredColumnWidths; | 161 | QHash<QByteArray, qreal> m_preferredColumnWidths; | ||
Show All 18 Lines |