mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-08 12:48:47 +00:00

The released callback is invoked when the user finished changing the value, for example when the arrow key is released. As a bonus, for the Qt implementation this fixes a few bugs in the keyboard handling: - Handle orientation - Implement click-to-focus - Emit released also on key release Co-authored-by: Luke D. Jones <luke@ljones.dev>
10 lines
422 B
Text
10 lines
422 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
|
|
|
|
export component Slider inherits NativeSlider {
|
|
accessible-role: slider;
|
|
accessible-value: root.value;
|
|
accessible-value-minimum: root.minimum;
|
|
accessible-value-maximum: root.maximum;
|
|
accessible-value-step: (root.maximum - root.minimum) / 100;
|
|
}
|