1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Projucer: Added juce:: namespace to the auto-generated GUI editor code

This commit is contained in:
ed 2020-04-22 16:39:13 +01:00
parent 98ab75157a
commit 0b35e9a841
26 changed files with 135 additions and 135 deletions

View file

@ -84,10 +84,10 @@ void GeneratedCode::removeCallback (const String& returnType, const String& prot
void GeneratedCode::addImageResourceLoader (const String& imageMemberName, const String& resourceName)
{
privateMemberDeclarations
<< "Image " << imageMemberName << ";\n";
<< "juce::Image " << imageMemberName << ";\n";
if (resourceName.isNotEmpty())
constructorCode << imageMemberName << " = ImageCache::getFromMemory ("
constructorCode << imageMemberName << " = juce::ImageCache::getFromMemory ("
<< resourceName << ", " << resourceName << "Size);\n";
}
@ -160,8 +160,8 @@ String GeneratedCode::getClassDeclaration() const
parentClassLines = getCleanedStringArray (parentClassLines);
if (parentClassLines.contains ("public Button", false))
parentClassLines.removeString ("public Component", false);
if (parentClassLines.contains ("public juce::Button", false))
parentClassLines.removeString ("public juce::Component", false);
String r ("class ");
r << className << " : ";