Hello,
I have a string containing a fileName and I have to cut the .extension if it there is. otherwise do nothing; furthermore I have to change the first letter to uppercase:
Is this ok?
Qt Code:
  1. filename "file.xml" -> File
  2. filename "file" -> File
To copy to clipboard, switch view to plain text mode 
I do it but it's not comple......... and it works only string with .extension
Qt Code:
  1. String s = fileName.substring(0, fileName.indexOf(".")
To copy to clipboard, switch view to plain text mode 

Any hints, please?