* \brief Returns a list of all string, corresponding to * the pre-defined positions. * * \param options if set to \c ExcludeCenter, the returned list * does not contain the Center position. */
| 171 | * does not contain the Center position. |
| 172 | */ |
| 173 | QList<QByteArray> Position::names(Options options) |
| 174 | { |
| 175 | QList<QByteArray> list; |
| 176 | const int start = (options & IncludeCenter) ? 1 : 2; |
| 177 | const int end = (options & IncludeFloating) ? maxPositionValue : maxPositionValue - 1; |
| 178 | for (int i = start; i <= end; ++i) |
| 179 | list.append(staticPositionNames[i]); |
| 180 | return list; |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * \brief Returns a list of all translated string, corresponding to |
nothing calls this directly
no outgoing calls
no test coverage detected