mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-03 05:12:55 +00:00
67 lines
2.1 KiB
Text
67 lines
2.1 KiB
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 A {
|
|
cb := ContextMenuArea {
|
|
entries: [];
|
|
// ^error{Unknown property entries in ContextMenu}
|
|
sub-menu => {
|
|
// ^error{'sub-menu' is not a callback in ContextMenu}
|
|
debug("hello");
|
|
}
|
|
|
|
Menu {
|
|
preferred-height: 45px;
|
|
// ^error{Unknown property preferred-height in Menu}
|
|
entries: [];
|
|
// ^error{Unknown property entries in Menu}
|
|
MenuItem {
|
|
entries: [];
|
|
// ^error{Unknown property entries in MenuItem}
|
|
|
|
title: "ok";
|
|
sub-menu => {}
|
|
// ^error{'sub-menu' is not a callback in MenuItem}
|
|
x: 45px;
|
|
// ^error{Unknown property x in MenuItem}
|
|
col: 45;
|
|
// ^error{Unknown property col in MenuItem}
|
|
}
|
|
|
|
MenuSeparator {
|
|
entries: [];
|
|
// ^error{Unknown property entries in MenuSeparator}
|
|
title: "ok";
|
|
// ^error{Unknown property title in MenuSeparator}
|
|
width: 45px;
|
|
// ^error{Unknown property width in MenuSeparator}
|
|
MenuItem {}
|
|
// ^error{MenuSeparator cannot have children elements}
|
|
Rectangle {}
|
|
// ^error{MenuSeparator cannot have children elements}
|
|
}
|
|
}
|
|
MenuItem {}
|
|
// ^error{Unknown element 'MenuItem'}
|
|
|
|
MenuSeparator {}
|
|
// ^error{Unknown element 'MenuSeparator'}
|
|
}
|
|
|
|
TouchArea {
|
|
clicked => {
|
|
cb.activated({});
|
|
// ^error{Element 'ContextMenuArea' does not have a property 'activated'}
|
|
debug(cb.entries);
|
|
// ^error{Element 'ContextMenuArea' does not have a property 'entries'}
|
|
}
|
|
}
|
|
|
|
|
|
ContextMenuInternal {
|
|
// ^error{Unknown element 'ContextMenuInternal'}
|
|
}
|
|
ContextMenu {}
|
|
// ^error{Unknown element 'ContextMenu'}
|
|
}
|
|
|