Hi, for me it looks like KStandardAction itself triggers a lot of these warnings.
I thought about adding a workaround like the already existing: if (pAction && parent && parent->inherits("KActionCollection")) { QMetaObject::invokeMethod(parent, "addAction", Q_ARG(QString, pAction->objectName()), Q_ARG(QAction *, pAction)); } just with setShortcut(s), but that won't work for the cases with parent 0. Any idea? Greetings Christoph ----- Ursprüngliche Mail ----- > On Saturday 19 July 2014 23:57:15 Christoph Cullmann wrote: > > Hi, > > > > perhaps that is a stupid question, but last time I read up in the docs, > > they > > didn't help me: > > > > KatePart spits out a lot of: > > > > kate(15138)/(default) KXMLGUIFactoryPrivate::saveDefaultActionProperties: > > Shortcut for KAction "smart_newline" "Insert Smart Newline" set with > > QShortcut::setShortcut()! See KAction documentation. kate(15138)/(default) > > KXMLGUIFactoryPrivate::saveDefaultActionProperties: Shortcut for KAction > > "tools_indent" "&Indent" set with QShortcut::setShortcut()! See KAction > > documentation. ... > > > > How to fix that? > > Warning improved in > http://commits.kde.org/kxmlgui/11cb423c0de0090ea398efa5d1bccd2a39e97987 > > -> use KAction::setDefaultShortcut(s) > > -- > David Faure, fa...@kde.org, http://www.davidfaure.fr > Working on KDE Frameworks 5 > > -- ----------------------------- Dr.-Ing. Christoph Cullmann --------- AbsInt Angewandte Informatik GmbH Email: cullm...@absint.com Science Park 1 Tel: +49-681-38360-22 66123 Saarbrücken Fax: +49-681-38360-20 GERMANY WWW: http://www.AbsInt.com -------------------------------------------------------------------- Geschäftsführung: Dr.-Ing. Christian Ferdinand Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234 _______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel