Commit 6cb024e1 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Another win32 compile fix.

Related commit is 5bcb5337.
CCMAIL: okellogg@users.sourceforge.net
parent e87ab44c
...@@ -106,16 +106,16 @@ QString LayoutGenerator::currentDotPath() ...@@ -106,16 +106,16 @@ QString LayoutGenerator::currentDotPath()
} }
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
// search for dot installation // search for dot installation
QString appDir(qgetenv("ProgramFiles")); QString appDir(QLatin1String(qgetenv("ProgramFiles").constData()));
QDir dir(appDir); QDir dir(appDir);
dir.setFilter(QDir::Dirs); dir.setFilter(QDir::Dirs);
dir.setNameFilters(QStringList() << "Graphviz*"); dir.setNameFilters(QStringList() << QLatin1String("Graphviz*"));
dir.setSorting(QDir::Reversed); dir.setSorting(QDir::Reversed);
QFileInfoList list = dir.entryInfoList(); QFileInfoList list = dir.entryInfoList();
if (list.size() > 0) { if (list.size() > 0) {
QString dotPath = list.at(0).absoluteFilePath(); QString dotPath = list.at(0).absoluteFilePath();
QString exePath = QFile::exists(dotPath + "\\bin") ? dotPath + "\\bin" : dotPath; QString exePath = QFile::exists(dotPath + QLatin1String("\\bin")) ? dotPath + QLatin1String("\\bin") : dotPath;
return QFile::exists(exePath + "\\dot.exe") ? exePath : QString(); return QFile::exists(exePath + QLatin1String("\\dot.exe")) ? exePath : QString();
} }
#endif #endif
return QString(); return QString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment