[kcachegrind] QObject::setObjectName takes a QString, not a const char*
Review Request #129537 - Created Nov. 22, 2016 and submitted
In Qt3 times, the qobject ctor signature contained a 'const char name' argument which was removed in Qt4. Since Qt4 setObjectName() takes a QString. Therefore I changed the char argument to a const QString& or removed it completly where not needed.
It should be considered to remove the argument completly and directly call foo->setObjectName() where needed.
Fine with me.
For these widgets (apart from TabBar), providing a name is crucial, because the names are used when storing/restoring the visulization layout in/from the config file, and the widget names become part of config keys. So better leave it as required parameter of the constructor.