Mercurial > hg > easyhg
diff src/hgrunner.cpp @ 663:f9b805d8cab4 qt5
build with qt5 (in branch currently)
author | Chris Cannam |
---|---|
date | Thu, 14 Mar 2013 16:43:30 +0000 |
parents | ae67ea0af696 |
children | 98a7fbbe9d88 |
line wrap: on
line diff
--- a/src/hgrunner.cpp Fri Mar 01 09:20:11 2013 +0000 +++ b/src/hgrunner.cpp Thu Mar 14 16:43:30 2013 +0000 @@ -22,7 +22,7 @@ #include <QSettings> #include <QInputDialog> -#include <QDesktopServices> +#include <QStandardPaths> #include <QTemporaryFile> #include <QDir> #include <QProgressBar> @@ -454,8 +454,8 @@ void HgRunner::pruneOldAuthFiles() { - QString path = QDesktopServices::storageLocation - (QDesktopServices::CacheLocation); + QString path = QStandardPaths::writableLocation + (QStandardPaths::CacheLocation); QDir d(path); if (!d.exists()) return; QStringList filters; @@ -489,8 +489,8 @@ } QString fileExt16 = QString::fromLocal8Bit(fileExt.toBase64()).left(16) .replace('+', '-').replace('/', '_'); - QString path = QDesktopServices::storageLocation - (QDesktopServices::CacheLocation); + QString path = QStandardPaths::writableLocation + (QStandardPaths::CacheLocation); QDir().mkpath(path); if (path == "") { DEBUG << "HgRunner::addExtensionOptions: Failed to get cache location" << endl;