Skip to content

Commit

Permalink
Convert all caps models to all lower-case component name.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Nov 28, 2016
1 parent dfe7b6f commit 837a849
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OMEdit/OMEditGUI/Util/StringHandler.cpp
Expand Up @@ -1525,6 +1525,10 @@ QString StringHandler::makeClassNameRelative(QString draggedClassName, QString d
*/
QString StringHandler::toCamelCase(QString str)
{
// if the name is all caps then convert it to lower and return it.
if (str.toUpper().compare(str, Qt::CaseSensitive) == 0) {
return str.toLower();
}
QString s = str;
s[0] = s[0].toLower();
return s;
Expand Down

0 comments on commit 837a849

Please sign in to comment.