Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 1838:36e5cbe6a16f plugin-path-config
Environment variable support in plugin paths
author | Chris Cannam |
---|---|
date | Mon, 04 Jun 2018 15:45:32 +0100 |
parents | 9fbaf30a09ab |
children | 55d9bbf1fe45 |
comparison
equal
deleted
inserted
replaced
1837:9fbaf30a09ab | 1838:36e5cbe6a16f |
---|---|
299 list << "http://www.vamp-plugins.org/rdf/plugins/index.txt"; | 299 list << "http://www.vamp-plugins.org/rdf/plugins/index.txt"; |
300 settings.setValue("rdf-indices", list); | 300 settings.setValue("rdf-indices", list); |
301 } | 301 } |
302 settings.endGroup(); | 302 settings.endGroup(); |
303 | 303 |
304 PluginPathSetter::setEnvironmentVariables(); | 304 PluginPathSetter::initialiseEnvironmentVariables(); |
305 | 305 |
306 QIcon icon; | 306 QIcon icon; |
307 int sizes[] = { 16, 22, 24, 32, 48, 64, 128 }; | 307 int sizes[] = { 16, 22, 24, 32, 48, 64, 128 }; |
308 for (int i = 0; i < int(sizeof(sizes)/sizeof(sizes[0])); ++i) { | 308 for (int i = 0; i < int(sizeof(sizes)/sizeof(sizes[0])); ++i) { |
309 icon.addFile(QString(":icons/sv-%1x%2.png").arg(sizes[i]).arg(sizes[i])); | 309 icon.addFile(QString(":icons/sv-%1x%2.png").arg(sizes[i]).arg(sizes[i])); |