Make StyledMessage more (space) efficient, clean up ChatlineModelItem
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 3 Oct 2008 21:16:10 +0000 (23:16 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 4 Oct 2008 21:53:28 +0000 (23:53 +0200)
commit94f1513df11401c44e79278c838a0708bcd83823
tree9fff5bc59898bac66f8b233738c5878355a7ee31
parente5f3a784b8c6e6b4fe9b299c3a3553f31fba5601
Make StyledMessage more (space) efficient, clean up ChatlineModelItem

* We really don't need to store styled strings for sender and timestamp
* We use only one format for all timestamps and one for all senders, no need to duplicate
* EditRole now provides raw undecorated data (i.e. QDateTime for timestamp and nickname for sender)
* QDateTime is shorter than a stringified timestamp
* No need to store constant strings (for sender col in non-plain msgs) in every StyledMessage
* Could simplify ChatlineModelItem as a result
src/qtui/chatlinemodelitem.cpp
src/qtui/chatmonitorfilter.cpp
src/uisupport/uistyle.cpp
src/uisupport/uistyle.h