Changeset View
Changeset View
Standalone View
Standalone View
views/kpView_Selections.cpp
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | |||||
156 | 156 | | |||
157 | //--------------------------------------------------------------------- | 157 | //--------------------------------------------------------------------- | ||
158 | 158 | | |||
159 | // public | 159 | // public | ||
160 | QRegion kpView::selectionResizeHandlesViewRegion (bool forRenderer) const | 160 | QRegion kpView::selectionResizeHandlesViewRegion (bool forRenderer) const | ||
161 | { | 161 | { | ||
162 | const int atomicLength = selectionResizeHandleAtomicSize (); | 162 | const int atomicLength = selectionResizeHandleAtomicSize (); | ||
163 | if (atomicLength <= 0) { | 163 | if (atomicLength <= 0) { | ||
164 | return QRegion (); | 164 | return {}; | ||
165 | } | 165 | } | ||
166 | 166 | | |||
167 | 167 | | |||
168 | // HACK: At low zoom (e.g. 100%), resize handles will probably be too | 168 | // HACK: At low zoom (e.g. 100%), resize handles will probably be too | ||
169 | // big and overlap text / cursor / too much of selection. | 169 | // big and overlap text / cursor / too much of selection. | ||
170 | // | 170 | // | ||
171 | // So limit the _visual_ size of handles at low zoom. The | 171 | // So limit the _visual_ size of handles at low zoom. The | ||
172 | // handles' grab area remains the same for usability; so yes, | 172 | // handles' grab area remains the same for usability; so yes, | ||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |