mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-08-27 02:39:58 +00:00
refactor: refresh aw plugin
This commit is contained in:
@ -73,7 +73,7 @@ QString AWTestLibrary::randomString(const int _min, const int _max)
|
||||
QString output;
|
||||
|
||||
auto count = _min + randomInt(_max - _min);
|
||||
for (auto i = 0; i < count; i++)
|
||||
for (auto i = 0; i < count; ++i)
|
||||
output += randomChar();
|
||||
|
||||
return output;
|
||||
@ -85,7 +85,7 @@ QStringList AWTestLibrary::randomStringList(const int _max)
|
||||
QStringList output;
|
||||
|
||||
auto count = 1 + randomInt(_max);
|
||||
for (auto i = 0; i < count; i++)
|
||||
for (auto i = 0; i < count; ++i)
|
||||
output.append(randomString());
|
||||
|
||||
return output;
|
||||
@ -97,7 +97,7 @@ QStringList AWTestLibrary::randomSelect(const QStringList &_available)
|
||||
QSet<QString> output;
|
||||
|
||||
auto count = 1 + randomInt(_available.count());
|
||||
for (auto i = 0; i < count; i++) {
|
||||
for (auto i = 0; i < count; ++i) {
|
||||
auto index = randomInt(_available.count());
|
||||
output << _available.at(index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user