Commit 65af5734 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use multi-arg

parent 5bb31b81
......@@ -746,7 +746,7 @@ int Item::appendChildItem(Model *model, Item *child)
void Item::dump(const QString &prefix)
{
QString out = QStringLiteral("%1 %x VIEWABLE:%2").arg(prefix).arg(d_ptr->mIsViewable ? QStringLiteral("yes") : QStringLiteral("no"));
QString out = QStringLiteral("%1 %x VIEWABLE:%2").arg(prefix, d_ptr->mIsViewable ? QStringLiteral("yes") : QStringLiteral("no"));
qDebug(out.toUtf8().data(), this);
QString nPrefix(prefix);
......
......@@ -56,7 +56,7 @@ void OptionSet::generateUniqueId()
{
static int nextUniqueId = 0;
nextUniqueId++;
mId = QStringLiteral("%1-%2").arg((unsigned int)::time(nullptr)).arg(nextUniqueId);
mId = QStringLiteral("%1-%2").arg((unsigned int)::time(0)).arg(nextUniqueId);
}
QString OptionSet::saveToString() const
......
......@@ -344,7 +344,7 @@ QString ConfigureThemesDialog::Private::uniqueNameForTheme(const QString &baseNa
ThemeListWidgetItem *item = findThemeItemByName(ret, skipTheme);
while (item) {
idx++;
ret = QStringLiteral("%1 %2").arg(baseName).arg(idx);
ret = QStringLiteral("%1 %2").arg(baseName, QString::number(idx));
item = findThemeItemByName(ret, skipTheme);
}
return ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment