Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SDK
Umbrello
Commits
6cb024e1
Commit
6cb024e1
authored
Jul 07, 2014
by
Ralf Habacker
Browse files
Another win32 compile fix.
Related commit is
5bcb5337
. CCMAIL: okellogg@users.sourceforge.net
parent
e87ab44c
Changes
1
Hide whitespace changes
Inline
Side-by-side
umbrello/layoutgenerator.cpp
View file @
6cb024e1
...
...
@@ -106,16 +106,16 @@ QString LayoutGenerator::currentDotPath()
}
#ifdef Q_OS_WIN
// search for dot installation
QString
appDir
(
qgetenv
(
"ProgramFiles"
));
QString
appDir
(
QLatin1String
(
qgetenv
(
"ProgramFiles"
)
.
constData
())
);
QDir
dir
(
appDir
);
dir
.
setFilter
(
QDir
::
Dirs
);
dir
.
setNameFilters
(
QStringList
()
<<
"Graphviz*"
);
dir
.
setNameFilters
(
QStringList
()
<<
QLatin1String
(
"Graphviz*"
)
)
;
dir
.
setSorting
(
QDir
::
Reversed
);
QFileInfoList
list
=
dir
.
entryInfoList
();
if
(
list
.
size
()
>
0
)
{
QString
dotPath
=
list
.
at
(
0
).
absoluteFilePath
();
QString
exePath
=
QFile
::
exists
(
dotPath
+
"
\\
bin"
)
?
dotPath
+
"
\\
bin"
:
dotPath
;
return
QFile
::
exists
(
exePath
+
"
\\
dot.exe"
)
?
exePath
:
QString
();
QString
exePath
=
QFile
::
exists
(
dotPath
+
QLatin1String
(
"
\\
bin"
)
)
?
dotPath
+
QLatin1String
(
"
\\
bin"
)
:
dotPath
;
return
QFile
::
exists
(
exePath
+
QLatin1String
(
"
\\
dot.exe"
)
)
?
exePath
:
QString
();
}
#endif
return
QString
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment