Changeset View
Changeset View
Standalone View
Standalone View
widgets/toolbars/options/kpToolWidgetBase.cpp
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | |||||
130 | } | 130 | } | ||
131 | 131 | | |||
132 | //--------------------------------------------------------------------- | 132 | //--------------------------------------------------------------------- | ||
133 | 133 | | |||
134 | // private | 134 | // private | ||
135 | QList <int> kpToolWidgetBase::spreadOutElements (const QList <int> &sizes, int max) | 135 | QList <int> kpToolWidgetBase::spreadOutElements (const QList <int> &sizes, int max) | ||
136 | { | 136 | { | ||
137 | if (sizes.count () == 0) { | 137 | if (sizes.count () == 0) { | ||
138 | return QList <int> (); | 138 | return {}; | ||
139 | } | 139 | } | ||
140 | 140 | | |||
141 | if (sizes.count () == 1) | 141 | if (sizes.count () == 1) | ||
142 | { | 142 | { | ||
143 | QList <int> ret; | 143 | QList <int> ret; | ||
144 | ret.append (sizes.first () > max ? 0 : 1/*margin*/); | 144 | ret.append (sizes.first () > max ? 0 : 1/*margin*/); | ||
145 | return ret; | 145 | return ret; | ||
146 | } | 146 | } | ||
▲ Show 20 Lines • Show All 608 Lines • Show Last 20 Lines |