Collecting topics for Tokamak7

Mark Gaiser markg85 at gmail.com
Sat Jan 4 01:20:55 UTC 2014


:( i'm not going to be there..

However, i did just finish something that you folks likely find very
interesting.
More complex shortcuts then is possible with plain Qt. Or in other
terms: Shortcuts with keys + mouse combinations!

You can find the code here:
https://gitorious.org/kdirchainrebuild/master/source/utils/shortcut.h
https://gitorious.org/kdirchainrebuild/master/source/utils/shortcut.cpp
- the constructor contains all the mouse key strings that you can use.

If you expose it to QML then you can call it like so:
    Shortcut {
        keys: [ "BackButton", "Alt+Left", "Backspace" ]
        onActivated: {
            console.log("JS: " + keys + " pressed.")
        }
    }

And yes, those are 3 shortcuts for one action (back button in this
case). Try to do that with QKeySequence ;)

I'm telling this because i saw a mention about global shortcuts in the
link you gave [1]. So if you folks are going to look at it then please
do consider using this class. It will finally allow shortcuts where
you can mix in keyboard keys + mouse keys. I tried the class as QML
Component and with that it works perfectly. It should work just as
fine when you want to use it from C++.

Note: it likely has some bugs since i just made it working. If you
encounter them please do tell me.

Going to blog about this one tomorrow.

[1] http://community.kde.org/Plasma/Tokamak7

On Fri, Jan 3, 2014 at 11:50 AM, Sebastian Kügler <sebas at kde.org> wrote:
> Hi,
>
> Happy new year!
>
> In order to get an idea of what we're going to talk about, and what others
> would like to talk about during the sprint, I've created a page to collect
> these topics:
>
> http://community.kde.org/Plasma/Tokamak7
>
> Please fill in. :)
>
> Cheers,
> --
> sebas
>
> http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel


More information about the Plasma-devel mailing list