Make text selection stylesheetable
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 24 Jul 2009 04:06:40 +0000 (06:06 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Aug 2009 18:25:05 +0000 (20:25 +0200)
commitc6a6c0e4317986792320826956fd5ead2b3e9e67
tree867b33f27f8b162ba3e8f9a90955f52611afec59
parent0edcf393c9aaab06f7db904bea1da0b7352f1ed7
Make text selection stylesheetable

This adds a new [label="selected"] that you can use in stylesheets to determine how
a text selection should look like in ChatView (i.e. it's no longer hardcoded to the
"highlight" and "highlighted-text" Palette roles).

Note that you probably shouldn't do more than setting the selection colors globally for
ChatLine, as else the painting routines might do funky stuff.
src/qtui/chatitem.cpp
src/qtui/chatitem.h
src/qtui/chatline.cpp
src/qtui/chatlinemodel.h
src/qtui/chatlinemodelitem.cpp
src/qtui/chatlinemodelitem.h
src/qtui/chatview.cpp
src/uisupport/qssparser.cpp