Skip to content
GitLab
Menu
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
9c21c96f
Commit
9c21c96f
authored
Dec 10, 2016
by
Ralf Habacker
Browse files
Use fall back to kde4 install patch for layout generator files.
parent
23e23aa4
Changes
1
Show whitespace changes
Inline
Side-by-side
umbrello/layoutgenerator.cpp
View file @
9c21c96f
...
...
@@ -295,6 +295,7 @@ bool LayoutGenerator::availableConfigFiles(UMLScene *scene, QHash<QString,QStrin
QString
diagramType
=
Uml
::
DiagramType
::
toString
(
scene
->
type
()).
toLower
();
#if QT_VERSION >= 0x050000
QStringList
fileNames
=
QStandardPaths
::
locateAll
(
QStandardPaths
::
GenericDataLocation
,
QString
::
fromLatin1
(
"umbrello/layouts/%1*.desktop"
).
arg
(
diagramType
));
fileNames
<<
QStandardPaths
::
locateAll
(
QStandardPaths
::
GenericDataLocation
,
QString
::
fromLatin1
(
"kde4/apps/umbrello/layouts/%1*.desktop"
).
arg
(
diagramType
));
#else
KStandardDirs
dirs
;
QStringList
fileNames
=
dirs
.
findAllResources
(
"data"
,
QString
::
fromLatin1
(
"umbrello/layouts/%1*.desktop"
).
arg
(
diagramType
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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