1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Cleaned up some comments and uses of setContentComponent().

This commit is contained in:
Julian Storer 2011-02-16 14:45:10 +00:00
parent e9950296d4
commit bd19111417
12 changed files with 44 additions and 56 deletions

View file

@ -43,7 +43,7 @@ PluginWindow::PluginWindow (Component* const uiComp,
{
setSize (400, 300);
setContentComponent (uiComp, true, true);
setContentOwned (uiComp, true);
setTopLeftPosition (owner->properties.getWithDefault ("uiLastX", Random::getSystemRandom().nextInt (500)),
owner->properties.getWithDefault ("uiLastY", Random::getSystemRandom().nextInt (500)));
@ -104,7 +104,7 @@ PluginWindow* PluginWindow::getWindowFor (AudioProcessorGraph::Node* node,
PluginWindow::~PluginWindow()
{
activePluginWindows.removeValue (this);
setContentComponent (0);
clearContentComponent();
}
void PluginWindow::moved()