forked from qt-creator/qt-creator
Library wizard: Create export symbol correctly.
...if the directory contains a '-'. Export a function to generate identifier correctly and use that. Reviewed-by: con <qtc-committer@nokia.com> Task-number: QTCREATORBUG-248
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
**************************************************************************/
|
||||
|
||||
#include "qtprojectparameters.h"
|
||||
#include <utils/codegeneration.h>
|
||||
|
||||
#include <QtCore/QTextStream>
|
||||
#include <QtCore/QDir>
|
||||
@@ -108,7 +109,7 @@ QString createMacro(const QString &name, const QString &suffix)
|
||||
if (extensionPosition != -1)
|
||||
rc.truncate(extensionPosition);
|
||||
rc += suffix;
|
||||
return rc;
|
||||
return Utils::fileNameToCppIdentifier(rc);
|
||||
}
|
||||
|
||||
QString QtProjectParameters::exportMacro(const QString &projectName)
|
||||
|
||||
Reference in New Issue
Block a user