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
parent
94c173de05
commit
dc25fb7278
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue