aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_syncmonitor.cpp
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-18 15:25:14 +0200
committerDanilo M. <danix@danix.xyz>2026-09-18 15:25:14 +0200
commit9d4fb5444438bdf188a6149a6667788dc3fc7bc0 (patch)
tree10d4a63f18334ed68d65805b78e16fe1b0dfe9a5 /tests/test_syncmonitor.cpp
parent729fd1465718ef1da5f61452bcb7eb23d02c9c9a (diff)
downloadqtmaildir-9d4fb5444438bdf188a6149a6667788dc3fc7bc0.tar.gz
qtmaildir-9d4fb5444438bdf188a6149a6667788dc3fc7bc0.zip
feat: complete contacts in the composer recipients
One shared QCompleter serves To, Cc and Bcc, attached with setWidget and never setCompleter, which resets the prefix to the whole field and stops matching after the first comma. The prefix is the comma-delimited token under the cursor, set by hand from textEdited; accepting replaces only that token and leaves the rest of the field alone. Candidates match the name and the address case-insensitively. A display name containing a comma is quoted on insertion, and splitRecipients() is now quote-aware so the quoted name survives as one recipient. Contacts reach the composer through setContacts() rather than a fourth constructor argument, so every existing three-argument construction and test stays as it was. An empty list leaves the fields behaving exactly as before completion existed.
Diffstat (limited to 'tests/test_syncmonitor.cpp')
0 files changed, 0 insertions, 0 deletions