1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

Get the right appDataDir with Qt5

This commit is contained in:
Uwe L. Korn
2013-08-30 21:29:06 +02:00
parent 80f12c3410
commit b4cd4ed5ef

View File

@@ -165,7 +165,7 @@ appDataDir()
{ {
QString path; QString path;
#ifdef Q_WS_WIN #ifdef Q_OS_WIN
if ( ( QSysInfo::WindowsVersion & QSysInfo::WV_DOS_based ) == 0 ) if ( ( QSysInfo::WindowsVersion & QSysInfo::WV_DOS_based ) == 0 )
{ {
// Use this for non-DOS-based Windowses // Use this for non-DOS-based Windowses
@@ -177,9 +177,9 @@ appDataDir()
path = QString::fromLocal8Bit( acPath ); path = QString::fromLocal8Bit( acPath );
} }
} }
#elif defined(Q_WS_MAC) #elif defined(Q_OS_MAC)
path = appSupportFolderPath(); path = appSupportFolderPath();
#elif defined(Q_WS_X11) #elif defined(Q_OS_LINUX)
path = QDir::home().filePath( ".local/share" ); path = QDir::home().filePath( ".local/share" );
#else #else
path = QCoreApplication::applicationDirPath(); path = QCoreApplication::applicationDirPath();