mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Fixed a bug in TextPropertyComponent that broke the Introjucer's GUI editor.
This commit is contained in:
parent
c922162b03
commit
79e3a141d2
2 changed files with 10 additions and 1 deletions
|
|
@ -138,6 +138,11 @@ void TextPropertyComponent::refresh()
|
|||
|
||||
void TextPropertyComponent::textWasEdited()
|
||||
{
|
||||
const String newText (textEditor->getText());
|
||||
|
||||
if (getText() != newText)
|
||||
setText (newText);
|
||||
|
||||
callListeners();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,11 @@ public:
|
|||
~TextPropertyComponent();
|
||||
|
||||
//==============================================================================
|
||||
/** Set the value of the text shown in the text editor to the specified string. */
|
||||
/** Called when the user edits the text.
|
||||
|
||||
Your subclass must use this callback to change the value of whatever item
|
||||
this property component represents.
|
||||
*/
|
||||
virtual void setText (const String& newText);
|
||||
|
||||
/** Returns the text that should be shown in the text editor. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue