mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +00:00
LibGUI: Add option to disable on_change call for sliders set_value()
This makes it possible to avoid messy situations where a slider controlled value can be changed from multiple sources.
This commit is contained in:
parent
5a91f5b320
commit
3c8493c667
5 changed files with 12 additions and 6 deletions
|
@ -39,6 +39,7 @@ enum class HorizontalDirection {
|
|||
Left,
|
||||
Right
|
||||
};
|
||||
|
||||
enum class VerticalDirection {
|
||||
Up,
|
||||
Down
|
||||
|
@ -53,6 +54,11 @@ enum class FocusPolicy {
|
|||
|
||||
AK_ENUM_BITWISE_OPERATORS(FocusPolicy)
|
||||
|
||||
enum class CallOnChange {
|
||||
No,
|
||||
Yes
|
||||
};
|
||||
|
||||
class Widget : public Core::Object {
|
||||
C_OBJECT(Widget)
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue