Comment 16 for bug 1299092

Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote : Re: [Bug 1299092] Re: Restore default_shortcuts.json and embedded scripts support

Hi Gabriel,

Sorry I won't have time to check your code today. Just a quick note:
in order to use Qt slots mechanism, your class should inherit from
QObject, and have the Q_OBJECT macro added into it.

Something like:

    class MyFunctions : public QObject
    {
        Q_OBJECT
    public:
        MyFunctions();
        virtual ~MyFunctions();

        virtual void init();

    public slots:
        void customShortcut();
    };

Hum... maybe we should move this discussion to the mailing list and keep
this thread to the original bug.