Rework mergedFormats() to handle pre-set formats
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 20 Mar 2009 21:01:36 +0000 (22:01 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Aug 2009 18:23:28 +0000 (20:23 +0200)
commit62b20e0c6c13ea7bfb713da68c85a5e94c951d1b
treefc0d317c533129212af6af1f6efb1b98834b26dc
parent6634119e9a8e6a5e2e5b1397a4060dc2cc84b6f8
Rework mergedFormats() to handle pre-set formats

This allows us to seed the format cache with information from a stylesheet.
mergedFormats() now handles sensible combinations of pre-set values in order
to construct the requested format. For example, if the stylesheet sets a format
for the sender column in a highlighted message, this is now used to construct
derivations from that rather than using the hardcoded stock formats.
src/uisupport/uistyle.cpp
src/uisupport/uistyle.h