Add convenience methods to map parameters and UI widgets

Review Request #100368 - Created Jan. 11, 2011 and discarded

Information
Dominik Schmidt
ktp-accounts-kcm
Reviewers
telepathy
The external API isn't changed, so there is no need to port any plugins.



Thomas Richard made a suggestion to use QDataWidgetMapper:
http://paste.kde.org/2311/

Tonight I'm too lazy and too tired to merge and test it :-)

It's looking more elegant at first sight (because we dont need to implement "setters" and "getters" for every widget type).
I made my ICQ plugin use it and it works.

If I rename the password parameter to some bogus, the lineedit and the label are hidden.
Dominik Schmidt
Review request changed

Description:

   

The external API isn't changed, so there is no need to port any plugins.

  +
  +

  +
  +

  +
  +

Thomas Richard made a suggestion to use QDataWidgetMapper:

  + http://paste.kde.org/2311/

  +
  +

Tonight I'm too lazy and too tired to merge and test it :-)

  +
  +

It's looking more elegant at first sight (because we dont need to implement "setters" and "getters" for every widget type).

Loading...