4 Text::Text(const Text
&t
)
14 Text
& Text::operator=(const Text
&t
)
21 bool Text::operator==(const Text
&t
) const
23 if (_text
.size() != t
._text
.size())
26 // _text and t._text has same length so no t._text.end() is needed
27 vector
<QString
*>::const_iterator it
= _text
.begin();
28 vector
<QString
*>::const_iterator it_end
= _text
.end();
29 vector
<QString
*>::const_iterator it2
= t
._text
.begin();
31 for (;it
!= it_end
; it
++, it2
++){
39 void Text::addLine(QString
*qs
)
45 Text::iterator
Text::begin() const
48 iter
.it
= _text
.begin();
52 Text::iterator
Text::end() const
55 iter
.it
= _text
.end();
63 vector
<QString
*>::const_iterator it
= _text
.begin();
64 vector
<QString
*>::const_iterator it_end
= _text
.end();
66 for(;it
!= it_end
; it
++){
72 void Text::copy(const Text
&t
)
74 vector
<QString
*>::const_iterator it
= t
._text
.begin();
75 vector
<QString
*>::const_iterator it_end
= t
._text
.end();
77 for (;it
!= it_end
; it
++){
78 _text
.push_back(new QString(**it
));