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