Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTemplates Namespace Reference

Functions

QString trimmed (const QString &string)
 

Function Documentation

◆ trimmed()

QString KisTemplates::trimmed ( const QString & string)

Removes all spaces from the given string, not just from start and end.

Definition at line 14 of file KisTemplates.cpp.

15{
16
17 QString ret;
18 for (int i = 0; i < string.length(); ++i) {
19 QChar tmp(string[i]);
20 if (!tmp.isSpace())
21 ret += tmp;
22 }
23 return ret;
24}