~nick-dedekind/qmenumodel/lp1199423

Viewing all changes in revision 92.

  • Committer: Tarmac
  • Author(s): Lars Uebernickel
  • Date: 2013-10-01 15:46:27 UTC
  • mfrom: (91.1.1 trunk)
  • Revision ID: tarmac-20131001154627-n4u0nes4m7p2e9bl
QStateAction: try to maintain the type of the action's state

QML likes to convert doubles to integers if the number is close enough to an integer. This tries to circumvent that by explicitly casting to the right action type, because that's what exporters of GActionGroups expect.
. Fixes: https://bugs.launchpad.net/bugs/1233274.

Approved by Sebastien Bacher, PS Jenkins bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: