homeDirPath requires Qt 3 support, which is not enabled in all
configurations.
Change-Id: I7d51b880574021ef4569a4a2b16f06a7786dbb7d
Reviewed-on: http://codereview.qt.nokia.com/415
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
QString ret = path;
QStringList tokens = ret.split(QDir::separator());
if (tokens.first() == QLatin1String("~")) {
- ret.replace(0, 1, QDir::homeDirPath());
+ ret.replace(0, 1, QDir::homePath());
} else {
QString userName = tokens.first();
userName.remove(0, 1);