mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00

* Update api/cpp/include/slint_window.h Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update docs/reference/src/language/builtins/elements.md Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev> * Update internal/core/window.rs Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update internal/interpreter/eval.rs Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev> * Update internal/backends/qt/qt_window.rs Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update internal/interpreter/dynamic_item_tree.rs Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update internal/compiler/passes/materialize_fake_properties.rs Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
22 lines
843 B
Text
22 lines
843 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
|
|
|
|
export component Bar {
|
|
in property <bool> external;
|
|
xx := PopupWindow {
|
|
close-on-click: true;
|
|
// ^warning{The property 'close-on-click' has been deprecated. Please use 'close-policy' instead}
|
|
init => {
|
|
xx.close-on-click = true;
|
|
// ^error{The property must be known at compile time and cannot be changed at runtime}
|
|
}
|
|
}
|
|
PopupWindow {
|
|
close-on-click: root.external;
|
|
// ^warning{The property 'close-on-click' has been deprecated. Please use 'close-policy' instead}
|
|
// ^^error{The close-on-click property only supports constants at the moment}
|
|
}
|
|
|
|
|
|
}
|