[frameworks-kcontacts] [Bug 446665] Cannot set Addressee birthday from QML (e.g., from plasma-phonebook)

Kevin Kofler bugzilla_noreply at kde.org
Thu Mar 31 00:06:03 BST 2022


Kevin Kofler <kevin.kofler at chello.at> changed:

           What    |Removed                     |Added
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kcontacts/commit/8b4
                   |                            |ba9c0ed465ded679e626071feeb
                   |                            |e8aabe481c
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Kevin Kofler <kevin.kofler at chello.at> ---
Git commit 8b4ba9c0ed465ded679e626071feebe8aabe481c by Kevin Kofler.
Committed on 30/03/2022 at 23:03.
Pushed by kkofler into branch 'master'.

Addressee: make birthday writable from QML

Add a private Addressee::setBirthdayProperty(const QDateTime &) wrapper
method that guesses the extra withTime argument and use that as the
WRITE method for the Q_PROPERTY birthday.

A non-midnight time spec will lead to the birthday being recorded with
the time, a time spec exactly at midnight to a date-only birthday (the
common case). This is the best we can do for a property setter.

This should make setting the birthday in Plasma Phonebook work again.
(It last worked when Plasma Phonebook had its own QML wrapper for the
Addressee class, which has been dropped since.)

See also:

M  +5    -0    src/addressee.cpp
M  +2    -1    src/addressee.h


You are receiving this mail because:
You are the assignee for the bug.

More information about the Kdepim-bugs mailing list