We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ade394 commit 6dd1b5eCopy full SHA for 6dd1b5e
src/core/symbology/qgsmarkercatalogue.cpp
@@ -77,9 +77,20 @@ void QgsMarkerCatalogue::refreshList()
77
// TODO recursive ?
78
QDir dir( svgPaths[i] );
79
80
+ //
81
+ // First check the root dir of this path for svgs
82
83
+ QStringList dl1 = dir.entryList( QStringList( "*.svg" ), QDir::Files );
84
+ for ( QStringList::iterator it1 = dl1.begin(); it1 != dl1.end(); ++it1 )
85
+ {
86
+ // TODO test if it is correct SVG
87
+ mList.append( "svg:" + dir.path() + "/" + *it1 );
88
+ }
89
90
91
+ // Now check in any nested dirs for svgs
92
93
QStringList dl = dir.entryList( QDir::Dirs );
-
94
for ( QStringList::iterator it = dl.begin(); it != dl.end(); ++it )
95
{
96
QgsDebugMsg( QString( "Looking for svgs in %1" ).arg( svgPaths[i] + *it ) );
0 commit comments