6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <escher/message_table_cell_with_gauge.h>
#include <escher/palette.h>
MessageTableCellWithGauge::MessageTableCellWithGauge(I18n::Message message, KDText::FontSize size) :
MessageTableCell(message, size),
m_accessoryView()
{
}
View * MessageTableCellWithGauge::accessoryView() const {
return (View *)&m_accessoryView;
}
void MessageTableCellWithGauge::setHighlighted(bool highlight) {
MessageTableCell::setHighlighted(highlight);
KDColor backgroundColor = highlight? Palette::Select : KDColorWhite;
m_accessoryView.setBackgroundColor(backgroundColor);
}
|