QTestTable: quote tag name in duplicate tag warning message

Easier to see what the duplicate tag name is.

Change-Id: Iee156aa7d6766628ec60e712811a83a2ff66dbb1
Reviewed-by: Jason McDonald <macadder1@gmail.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Ahmad Samir 2023-01-31 21:17:56 +02:00
parent 0627ab1727
commit 7941d3ab3e

View File

@ -74,7 +74,7 @@ bool QTestTable::isEmpty() const
QTestData *QTestTable::newData(const char *tag)
{
if (d->hasRow(tag))
qWarning() << "Duplicate data tag" << tag << "- please rename.";
qWarning("Duplicate data tag \"%s\" - please rename.", tag);
QTestData *dt = new QTestData(tag, this);
d->addRow(dt);