Changeset View
Changeset View
Standalone View
Standalone View
umbrello/dotgenerator.cpp
Context not available. | |||||
191 | { | 191 | { | ||
---|---|---|---|---|---|
192 | QString diagramType = Uml::DiagramType::toString(scene->type()).toLower(); | 192 | QString diagramType = Uml::DiagramType::toString(scene->type()).toLower(); | ||
193 | #if QT_VERSION >= 0x050000 | 193 | #if QT_VERSION >= 0x050000 | ||
194 | QStringList fileNames = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QString::fromLatin1("umbrello/layouts/%1*.desktop").arg(diagramType)); | 194 | QStringList fileNames = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QString::fromLatin1("umbrello5/layouts/%1*.desktop").arg(diagramType)); | ||
195 | #else | 195 | #else | ||
196 | KStandardDirs dirs; | 196 | KStandardDirs dirs; | ||
197 | 197 | | |||
Context not available. | |||||
231 | QString configFileName; | 231 | QString configFileName; | ||
232 | foreach(const QString &fileName, fileNames) { | 232 | foreach(const QString &fileName, fileNames) { | ||
233 | #if QT_VERSION >= 0x050000 | 233 | #if QT_VERSION >= 0x050000 | ||
234 | configFileName = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QString::fromLatin1("umbrello/layouts/%1").arg(fileName)); | 234 | configFileName = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QString::fromLatin1("umbrello5/layouts/%1").arg(fileName)); | ||
235 | #else | 235 | #else | ||
236 | configFileName = KStandardDirs::locate("data", QString::fromLatin1("umbrello/layouts/%1").arg(fileName)); | 236 | configFileName = KStandardDirs::locate("data", QString::fromLatin1("umbrello/layouts/%1").arg(fileName)); | ||
237 | #endif | 237 | #endif | ||
Context not available. |