sources/coloredline.cpp

branch
protocol5
changeset 134
644935ff6bc1
parent 133
4d8fa5394d67
child 141
d9073c13dc98
equal deleted inserted replaced
133:4d8fa5394d67 134:644935ff6bc1
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

mercurial