mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
Changed the very old and strangely written Slider::getDoubleClickReturnValue method into two separate methods.
This commit is contained in:
parent
df4e055d02
commit
ad8cc4b693
2 changed files with 9 additions and 11 deletions
|
|
@ -1497,11 +1497,8 @@ void Slider::setDoubleClickReturnValue (bool isDoubleClickEnabled, double value
|
|||
pimpl->doubleClickReturnValue = valueToSetOnDoubleClick;
|
||||
}
|
||||
|
||||
double Slider::getDoubleClickReturnValue (bool& isEnabledResult) const
|
||||
{
|
||||
isEnabledResult = pimpl->doubleClickToValue;
|
||||
return pimpl->doubleClickReturnValue;
|
||||
}
|
||||
double Slider::getDoubleClickReturnValue() const noexcept { return pimpl->doubleClickReturnValue; }
|
||||
bool Slider::isDoubleClickReturnEnabled() const noexcept { return pimpl->doubleClickToValue; }
|
||||
|
||||
void Slider::updateText()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -551,17 +551,18 @@ public:
|
|||
|
||||
@see getDoubleClickReturnValue
|
||||
*/
|
||||
void setDoubleClickReturnValue (bool isDoubleClickEnabled,
|
||||
void setDoubleClickReturnValue (bool shouldDoubleClickBeEnabled,
|
||||
double valueToSetOnDoubleClick);
|
||||
|
||||
/** Returns the values last set by setDoubleClickReturnValue() method.
|
||||
|
||||
Sets isEnabled to true if double-click is enabled, and returns the value
|
||||
that was set.
|
||||
|
||||
@see setDoubleClickReturnValue
|
||||
*/
|
||||
double getDoubleClickReturnValue (bool& isEnabled) const;
|
||||
double getDoubleClickReturnValue() const noexcept;
|
||||
|
||||
/** Returns true if double-clicking to reset to a default value is enabled.
|
||||
@see setDoubleClickReturnValue
|
||||
*/
|
||||
bool isDoubleClickReturnEnabled() const noexcept;
|
||||
|
||||
//==============================================================================
|
||||
/** Tells the slider whether to keep sending change messages while the user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue