Hello, there's a newer addToolsMenu overload (though the old one should also work) in Amarok.Window that can directly take a QMenu object. Try that instead.
-- Regards, Anmol Ahuja On Sun, Sep 13, 2015 at 4:25 AM, RA <ra.ravi....@gmail.com> wrote: > > Hi, > > I can add a menu item to Tools menu by using > Amarok.Window.addToolsMenu("menuID", "menu name") . > > However the page https://community.kde.org/Talk:Amarok/Development/Script_API > doesn't tell me how do I attach its action to a Javascript function? > > Thanks, > RA > > > _______________________________________________ > Amarok mailing list > Amarok@kde.org > https://mail.kde.org/mailman/listinfo/amarok > _______________________________________________ Amarok mailing list Amarok@kde.org https://mail.kde.org/mailman/listinfo/amarok