summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Burgess <pete.burgess@isode.com>2018-05-02 17:09:44 (GMT)
committerKevin Smith <kevin.smith@isode.com>2018-05-09 12:56:55 (GMT)
commit1fef8025841bd86eed4677eeb88ef4a2a2eda398 (patch)
treee7915d37aada64f38a589377da66ae5801c56b6a /SwifTools/URIHandler/UnitTest/XMPPURITest.cpp
parenta64be9c7bf9f9a69881e8fc66069363e6af4de26 (diff)
downloadswift-1fef8025841bd86eed4677eeb88ef4a2a2eda398.zip
swift-1fef8025841bd86eed4677eeb88ef4a2a2eda398.tar.bz2
Add timer for QtChatWindow focus to stop messages appearing unread
When a QtChatWindow's text input receives focus, it initiates a one second timer. When it times out, the QtChatWindow checks whether the QtChatWindow in general has focus. If so, it will reset the unread count to 0. If it doesn't still have focus, it will not alter the message count and the chat will still show as having unread messages. Test-Information: This is in the Qt user interface, so no unit tests have been written. Tested thoroughly on a test server on ubuntu 17.10. Tested what happens when the chat window is changed via both a click on the roster (both old and new) and a click on the tabs. All three scenarios produce the desired results when both keeping focus for the full second, or when losing focus before the second is up. Change-Id: Idfa66990545051cfe6c9853418b2138ee0f1f57c
Diffstat (limited to 'SwifTools/URIHandler/UnitTest/XMPPURITest.cpp')
0 files changed, 0 insertions, 0 deletions