Correction: Mouse Shortcut Entry (another flag bit, etc.)

Rick Stockton rickstockton at reno-computerhelp.com
Sun Jan 8 05:23:10 GMT 2012


On 01/07/2012 02:18 PM, Rick Stockton wrote:
> << SNIP! >>
>
> Anyway, once we have the owner, we have a byte of bit flags (mostly 
> unused):
>   value in the lowest bit: whether the shortcut is currently Disabled 
> (0 == Enabled, 1 == Disabled)
>   value next bit: whether Qt::LeftButton is being held down, 
> concurrent with the click (or double-click) of another button. 0 == 
> No, 1 == Yes)
>   bit 2: whether Qt::RightButton is beng held down concurrently (0 == 
> No, 1 == Yes)
>   Upper bits 3-7 are available for future use.
NO, I will need to use another bit (bit 3) for the auto-repeat property. 
That leaves only 4-7 unused.

I'm about to otherwise copy the qshortcutmap() implementation. Owner is 
needed as a field in each entry, and so is context.



More information about the kde-core-devel mailing list