Enabling and disabling list items

bool flag=llmanager->enabled(2);

llmanager->enabled(2, !flag);

Disabling a list item prevents it from being selected with the mouse pointer or the keyboard. Keyboard navigation skips over disabled list items, and clicking on a disabled list item with the mouse pointer has no effect.

Note

selected() provides the means for manually selecting or unselecting list items, whether they're enabled or disabled.