Update ChatView properly on style changes
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 30 Jul 2009 15:45:52 +0000 (17:45 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Aug 2009 18:25:58 +0000 (20:25 +0200)
commitd7a7c6e5242fd0f500b2c1c75579c9db81a91d0c
treee4d56ea7b7e7ed0b609ca1d87c996fc23c36459c
parent00f633d013c9c9b87ae811c62daca40c1f73d1b8
Update ChatView properly on style changes

Since we have the cached wraplists back for the moment, we need to invalidate the caches
for all ChatLineModelItems before relayouting the scene. So instead of having each ChatView trigger
the layout change for his scene, we now inform the ChatLineModel itself, which invalidates its
items' caches and then emits a dataChanged() signal that is caught by the scenes.
src/qtui/chatlinemodel.cpp
src/qtui/chatlinemodel.h
src/qtui/chatlinemodelitem.h
src/qtui/chatscene.cpp
src/qtui/chatscene.h
src/qtui/chatview.cpp
src/qtui/chatview.h