158 } |
158 } |
159 } |
159 } |
160 |
160 |
161 // ------------------------------------------------------------------------------------------------- |
161 // ------------------------------------------------------------------------------------------------- |
162 // |
162 // |
163 void ColoredLine::add_string (const String& text) |
|
164 { |
|
165 for (char a : text) |
|
166 add_char (a); |
|
167 } |
|
168 |
|
169 // ------------------------------------------------------------------------------------------------- |
|
170 // |
|
171 void ColoredLine::activate_color (Color color, bool bold) |
163 void ColoredLine::activate_color (Color color, bool bold) |
172 { |
164 { |
173 if (m_boldActive) |
165 if (m_boldActive) |
174 m_data << RLINE_OFF_BOLD; |
166 m_data << RLINE_OFF_BOLD; |
175 |
167 |