Commit f1d3b432 authored by Eike Ziller's avatar Eike Ziller
Browse files

Adapt coding rules for file names to point to the FileName class.

Change-Id: Ic28c3b0647a353f50c092782ae689ed6173b067b
Reviewed-by: default avatarDaniel Teske <>
Reviewed-by: default avatarLeena Miettinen <>
parent ab875b72
......@@ -538,11 +538,11 @@
instead of backslashes (\\) even on Windows. To pass a file name from the user
to the API, convert it with QDir::fromNativeSeparators first. To present a file
name to the user, convert it back to native format with
QDir::toNativeSeparators. Consider using Utils::FileName::fromUserInput(QString)
and Utils::FileName::toUserOutput() for these tasks.
When comparing file names, consider using DocumentManager::fixFileName which
makes sure that paths are clean and absolute and also takes Windows
case-insensitivity into account (even if it is an expensive operation).
Use Utils::FileName when comparing file names, because that takes case sensitivity into account.
Also make sure that you compare clean paths (QDir::cleanPath()).
\section2 Plugin Extension Points
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment