Use homePath instead of homeDirPath

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>
bb10
Eckhart Koppen 2011-06-09 11:21:26 +03:00 committed by Qt Continuous Integration System
parent 94c173de05
commit dc25fb7278
1 changed files with 1 additions and 1 deletions

View File

@ -871,7 +871,7 @@ Q_AUTOTEST_EXPORT QString qt_tildeExpansion(const QString &path, bool *expanded
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);