123 } |
123 } |
124 } |
124 } |
125 |
125 |
126 // ------------------------------------------------------------------------------------------------- |
126 // ------------------------------------------------------------------------------------------------- |
127 // |
127 // |
|
128 void ColoredLine::add_string (const String& text) |
|
129 { |
|
130 for (char a : text) |
|
131 add_char (a); |
|
132 } |
|
133 |
|
134 // ------------------------------------------------------------------------------------------------- |
|
135 // |
128 void ColoredLine::set_color (Color a, bool on) |
136 void ColoredLine::set_color (Color a, bool on) |
129 { |
137 { |
130 switch (a) |
138 switch (a) |
131 { |
139 { |
132 case BLACK: m_data << (on ? RLINE_ON_BLACK : RLINE_OFF_BLACK); break; |
140 case BLACK: m_data << (on ? RLINE_ON_BLACK : RLINE_OFF_BLACK); break; |