Mercurial > hg > svcore
comparison plugin/PluginIdentifier.cpp @ 82:bf42d8d63885
* Some work on reloading play parameters from file (not quite working yet)
* Win32: redirect stderr to console
* A bit of menu reorganisation
author | Chris Cannam |
---|---|
date | Wed, 26 Apr 2006 14:09:55 +0000 |
parents | d397ea0a79f5 |
children | 5ae5885d6ce3 |
comparison
equal
deleted
inserted
replaced
81:f277a171749d | 82:bf42d8d63885 |
---|---|
18 This file copyright 2000-2006 Chris Cannam. | 18 This file copyright 2000-2006 Chris Cannam. |
19 */ | 19 */ |
20 | 20 |
21 #include "PluginIdentifier.h" | 21 #include "PluginIdentifier.h" |
22 #include <iostream> | 22 #include <iostream> |
23 #include <QFileInfo> | |
23 | 24 |
24 QString | 25 QString |
25 PluginIdentifier::createIdentifier(QString type, | 26 PluginIdentifier::createIdentifier(QString type, |
26 QString soName, | 27 QString soName, |
27 QString label) | 28 QString label) |
28 { | 29 { |
29 QString identifier = type + ":" + soName + ":" + label; | 30 QString identifier = type + ":" + QFileInfo(soName).baseName() + ":" + label; |
30 return identifier; | 31 return identifier; |
31 } | 32 } |
32 | 33 |
33 void | 34 void |
34 PluginIdentifier::parseIdentifier(QString identifier, | 35 PluginIdentifier::parseIdentifier(QString identifier, |