Changed the create code document feature to use the filename given by the user as a complement to the makesTabClosable commit.
Those creates the data in copile time instead of runtime
the code for createCode and openCode document are the same, share the internal code.
const QString& filePath, this way you don't create a copy of the variable just to pass it around.
QStringLiteral , but perhaps it's better to i18n("untitled") ?
QFileInfo (cheaper than a QFile)