1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/widgets/qmultilineedit.cpp:54 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QMultiLineEdit Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QMultiLineEdit Class Reference<br><small>[obsolete]</small></h1>
|
---|
33 |
|
---|
34 | <p>The QMultiLineEdit widget is a simple editor for inputting text.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qmultilineedit-h.html">qmultilineedit.h</a>></tt>
|
---|
37 | <p>Inherits <a href="qtextedit.html">QTextEdit</a>.
|
---|
38 | <p><a href="qmultilineedit-members.html">List of all member functions.</a>
|
---|
39 | <h2>Public Members</h2>
|
---|
40 | <ul>
|
---|
41 | <li class=fn><a href="#QMultiLineEdit"><b>QMultiLineEdit</b></a> ( QWidget * parent = 0, const char * name = 0 )</li>
|
---|
42 | <li class=fn>QString <a href="#textLine"><b>textLine</b></a> ( int line ) const</li>
|
---|
43 | <li class=fn>int <a href="#numLines"><b>numLines</b></a> () const</li>
|
---|
44 | <li class=fn>virtual void <a href="#insertLine"><b>insertLine</b></a> ( const QString & txt, int line = -1 )</li>
|
---|
45 | <li class=fn>virtual void <a href="#insertAt"><b>insertAt</b></a> ( const QString & s, int line, int col, bool mark )</li>
|
---|
46 | <li class=fn>virtual void <a href="#removeLine"><b>removeLine</b></a> ( int paragraph )</li>
|
---|
47 | <li class=fn>virtual void <a href="#setCursorPosition"><b>setCursorPosition</b></a> ( int line, int col, bool mark )</li>
|
---|
48 | <li class=fn>bool <a href="#atBeginning"><b>atBeginning</b></a> () const</li>
|
---|
49 | <li class=fn>bool <a href="#atEnd"><b>atEnd</b></a> () const</li>
|
---|
50 | <li class=fn>virtual void <a href="#setAlignment"><b>setAlignment</b></a> ( int flags )</li>
|
---|
51 | <li class=fn>int <a href="#alignment"><b>alignment</b></a> () const</li>
|
---|
52 | <li class=fn>void <a href="#setEdited"><b>setEdited</b></a> ( bool )</li>
|
---|
53 | <li class=fn>bool <a href="#edited"><b>edited</b></a> () const</li>
|
---|
54 | <li class=fn>bool <a href="#hasMarkedText"><b>hasMarkedText</b></a> () const</li>
|
---|
55 | <li class=fn>QString <a href="#markedText"><b>markedText</b></a> () const</li>
|
---|
56 | <li class=fn>void <a href="#cursorWordForward"><b>cursorWordForward</b></a> ( bool mark )</li>
|
---|
57 | <li class=fn>void <a href="#cursorWordBackward"><b>cursorWordBackward</b></a> ( bool mark )</li>
|
---|
58 | <li class=fn>bool autoUpdate () const <em>(obsolete)</em></li>
|
---|
59 | <li class=fn>virtual void setAutoUpdate ( bool ) <em>(obsolete)</em></li>
|
---|
60 | <li class=fn>int totalWidth () const <em>(obsolete)</em></li>
|
---|
61 | <li class=fn>int totalHeight () const <em>(obsolete)</em></li>
|
---|
62 | <li class=fn>int maxLines () const <em>(obsolete)</em></li>
|
---|
63 | <li class=fn>void setMaxLines ( int ) <em>(obsolete)</em></li>
|
---|
64 | </ul>
|
---|
65 | <h2>Public Slots</h2>
|
---|
66 | <ul>
|
---|
67 | <li class=fn>void deselect () <em>(obsolete)</em></li>
|
---|
68 | </ul>
|
---|
69 | <h2>Properties</h2>
|
---|
70 | <ul>
|
---|
71 | <li class=fn>Alignment <a href="#alignment-prop"><b>alignment</b></a> - the editor's paragraph alignment</li>
|
---|
72 | <li class=fn>bool <a href="#atBeginning-prop"><b>atBeginning</b></a> - whether the cursor is placed at the beginning of the text <em>(read only)</em></li>
|
---|
73 | <li class=fn>bool <a href="#atEnd-prop"><b>atEnd</b></a> - whether the cursor is placed at the end of the text <em>(read only)</em></li>
|
---|
74 | <li class=fn>bool <a href="#edited-prop"><b>edited</b></a> - whether the document has been edited by the user</li>
|
---|
75 | <li class=fn>int <a href="#numLines-prop"><b>numLines</b></a> - the number of paragraphs in the editor <em>(read only)</em></li>
|
---|
76 | </ul>
|
---|
77 | <h2>Protected Members</h2>
|
---|
78 | <ul>
|
---|
79 | <li class=fn>QPoint <a href="#cursorPoint"><b>cursorPoint</b></a> () const</li>
|
---|
80 | <li class=fn>virtual void <a href="#insertAndMark"><b>insertAndMark</b></a> ( const QString & str, bool mark )</li>
|
---|
81 | <li class=fn>virtual void <a href="#newLine"><b>newLine</b></a> ()</li>
|
---|
82 | <li class=fn>virtual void <a href="#killLine"><b>killLine</b></a> ()</li>
|
---|
83 | <li class=fn>virtual void <a href="#pageUp"><b>pageUp</b></a> ( bool mark = FALSE )</li>
|
---|
84 | <li class=fn>virtual void <a href="#pageDown"><b>pageDown</b></a> ( bool mark = FALSE )</li>
|
---|
85 | <li class=fn>virtual void <a href="#cursorLeft"><b>cursorLeft</b></a> ( bool mark = FALSE, bool wrap = TRUE )</li>
|
---|
86 | <li class=fn>virtual void <a href="#cursorRight"><b>cursorRight</b></a> ( bool mark = FALSE, bool wrap = TRUE )</li>
|
---|
87 | <li class=fn>virtual void <a href="#cursorUp"><b>cursorUp</b></a> ( bool mark = FALSE )</li>
|
---|
88 | <li class=fn>virtual void <a href="#cursorDown"><b>cursorDown</b></a> ( bool mark = FALSE )</li>
|
---|
89 | <li class=fn>virtual void <a href="#backspace"><b>backspace</b></a> ()</li>
|
---|
90 | <li class=fn>virtual void <a href="#home"><b>home</b></a> ( bool mark = FALSE )</li>
|
---|
91 | <li class=fn>virtual void <a href="#end"><b>end</b></a> ( bool mark = FALSE )</li>
|
---|
92 | <li class=fn>bool <a href="#getMarkedRegion"><b>getMarkedRegion</b></a> ( int * line1, int * col1, int * line2, int * col2 ) const</li>
|
---|
93 | <li class=fn>int <a href="#lineLength"><b>lineLength</b></a> ( int row ) const</li>
|
---|
94 | </ul>
|
---|
95 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
96 |
|
---|
97 |
|
---|
98 | <b>This class is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
99 | <p> The QMultiLineEdit widget is a simple editor for inputting text.
|
---|
100 | <p>
|
---|
101 | <p> The QMultiLineEdit was a simple editor widget in former Qt versions. Qt
|
---|
102 | 3.0 includes a new richtext engine which obsoletes QMultiLineEdit. It is
|
---|
103 | still included for compatibility reasons. It is now a subclass of
|
---|
104 | <a href="qtextedit.html">QTextEdit</a>, and provides enough of the old QMultiLineEdit API to keep old
|
---|
105 | applications working.
|
---|
106 | <p> If you implement something new with QMultiLineEdit, we suggest using
|
---|
107 | <a href="qtextedit.html">QTextEdit</a> instead and call <a href="qtextedit.html#setTextFormat">QTextEdit::setTextFormat</a>(Qt::PlainText).
|
---|
108 | <p> Although most of the old QMultiLineEdit API is still available, there is
|
---|
109 | a few difference. The old QMultiLineEdit operated on lines, not on
|
---|
110 | paragraphs. As lines change all the time during wordwrap, the new
|
---|
111 | richtext engine uses paragraphs as basic elements in the data structure.
|
---|
112 | All functions (<a href="#numLines">numLines</a>(), <a href="#textLine">textLine</a>(), etc.) that operated on lines, now
|
---|
113 | operate on paragraphs. Further, getString() has been removed completely.
|
---|
114 | It revealed too much of the internal data structure.
|
---|
115 | <p> Applications which made normal and reasonable use of QMultiLineEdit
|
---|
116 | should still work without problems. Some odd usage will require some
|
---|
117 | porting. In these cases, it may be better to use <a href="qtextedit.html">QTextEdit</a> now.
|
---|
118 | <p> <img src=qmlined-m.png> <img src=qmlined-w.png>
|
---|
119 | <p> <p>See also <a href="qtextedit.html">QTextEdit</a> and <a href="advanced.html">Advanced Widgets</a>.
|
---|
120 |
|
---|
121 | <hr><h2>Member Function Documentation</h2>
|
---|
122 | <h3 class=fn><a name="QMultiLineEdit"></a>QMultiLineEdit::QMultiLineEdit ( <a href="qwidget.html">QWidget</a> * parent = 0, const char * name = 0 )
|
---|
123 | </h3>
|
---|
124 | Constructs a new, empty, QMultiLineEdit with parent <em>parent</em> called
|
---|
125 | <em>name</em>.
|
---|
126 |
|
---|
127 | <h3 class=fn>int <a name="alignment"></a>QMultiLineEdit::alignment () const
|
---|
128 | </h3><p>Returns the editor's paragraph alignment.
|
---|
129 | See the <a href="qmultilineedit.html#alignment-prop">"alignment"</a> property for details.
|
---|
130 | <h3 class=fn>bool <a name="atBeginning"></a>QMultiLineEdit::atBeginning () const
|
---|
131 | </h3><p>Returns TRUE if the cursor is placed at the beginning of the text; otherwise returns FALSE.
|
---|
132 | See the <a href="qmultilineedit.html#atBeginning-prop">"atBeginning"</a> property for details.
|
---|
133 | <h3 class=fn>bool <a name="atEnd"></a>QMultiLineEdit::atEnd () const
|
---|
134 | </h3><p>Returns TRUE if the cursor is placed at the end of the text; otherwise returns FALSE.
|
---|
135 | See the <a href="qmultilineedit.html#atEnd-prop">"atEnd"</a> property for details.
|
---|
136 | <h3 class=fn>bool <a name="autoUpdate"></a>QMultiLineEdit::autoUpdate () const
|
---|
137 | </h3>
|
---|
138 |
|
---|
139 | <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
140 | <p>
|
---|
141 | <h3 class=fn>void <a name="backspace"></a>QMultiLineEdit::backspace ()<tt> [virtual protected]</tt>
|
---|
142 | </h3> Deletes the character on the left side of the text cursor and
|
---|
143 | moves the cursor one position to the left. If a text has been selected
|
---|
144 | by the user (e.g. by clicking and dragging) the cursor is put at the
|
---|
145 | beginning of the selected text and the selected text is removed.
|
---|
146 | <a href="qtextedit.html#del">del</a>()
|
---|
147 |
|
---|
148 | <h3 class=fn>void <a name="cursorDown"></a>QMultiLineEdit::cursorDown ( bool mark = FALSE )<tt> [virtual protected]</tt>
|
---|
149 | </h3>
|
---|
150 | Moves the cursor one line down. If <em>mark</em> is TRUE, the text
|
---|
151 | is selected.
|
---|
152 | <p>See also <a href="#cursorUp">cursorUp</a>(), <a href="#cursorLeft">cursorLeft</a>(), and <a href="#cursorRight">cursorRight</a>().
|
---|
153 |
|
---|
154 | <h3 class=fn>void <a name="cursorLeft"></a>QMultiLineEdit::cursorLeft ( bool mark = FALSE, bool wrap = TRUE )<tt> [virtual protected]</tt>
|
---|
155 | </h3> Moves the cursor one character to the left. If <em>mark</em> is TRUE,
|
---|
156 | the text is selected.
|
---|
157 | The <em>wrap</em> parameter is currently ignored.
|
---|
158 | <p> <p>See also <a href="#cursorRight">cursorRight</a>(), <a href="#cursorUp">cursorUp</a>(), and <a href="#cursorDown">cursorDown</a>().
|
---|
159 |
|
---|
160 | <h3 class=fn><a href="qpoint.html">QPoint</a> <a name="cursorPoint"></a>QMultiLineEdit::cursorPoint () const<tt> [protected]</tt>
|
---|
161 | </h3> Returns the top center point where the cursor is drawn.
|
---|
162 |
|
---|
163 | <h3 class=fn>void <a name="cursorRight"></a>QMultiLineEdit::cursorRight ( bool mark = FALSE, bool wrap = TRUE )<tt> [virtual protected]</tt>
|
---|
164 | </h3> Moves the cursor one character to the right. If <em>mark</em> is TRUE,
|
---|
165 | the text is selected.
|
---|
166 | The <em>wrap</em> parameter is currently ignored.
|
---|
167 | <p> <p>See also <a href="#cursorLeft">cursorLeft</a>(), <a href="#cursorUp">cursorUp</a>(), and <a href="#cursorDown">cursorDown</a>().
|
---|
168 |
|
---|
169 | <h3 class=fn>void <a name="cursorUp"></a>QMultiLineEdit::cursorUp ( bool mark = FALSE )<tt> [virtual protected]</tt>
|
---|
170 | </h3> Moves the cursor up one line. If <em>mark</em> is TRUE, the text is
|
---|
171 | selected.
|
---|
172 | <p> <p>See also <a href="#cursorDown">cursorDown</a>(), <a href="#cursorLeft">cursorLeft</a>(), and <a href="#cursorRight">cursorRight</a>().
|
---|
173 |
|
---|
174 | <h3 class=fn>void <a name="cursorWordBackward"></a>QMultiLineEdit::cursorWordBackward ( bool mark )
|
---|
175 | </h3> Moves the cursor one word to the left. If <em>mark</em> is TRUE, the
|
---|
176 | text is selected.
|
---|
177 | <p> <p>See also <a href="#cursorWordForward">cursorWordForward</a>().
|
---|
178 |
|
---|
179 | <h3 class=fn>void <a name="cursorWordForward"></a>QMultiLineEdit::cursorWordForward ( bool mark )
|
---|
180 | </h3> Moves the cursor one word to the right. If <em>mark</em> is TRUE, the text
|
---|
181 | is selected.
|
---|
182 | <p> <p>See also <a href="#cursorWordBackward">cursorWordBackward</a>().
|
---|
183 |
|
---|
184 | <h3 class=fn>void <a name="deselect"></a>QMultiLineEdit::deselect ()<tt> [slot]</tt>
|
---|
185 | </h3>
|
---|
186 |
|
---|
187 | <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
188 | <p>
|
---|
189 | <h3 class=fn>bool <a name="edited"></a>QMultiLineEdit::edited () const
|
---|
190 | </h3><p>Returns TRUE if the document has been edited by the user; otherwise returns FALSE.
|
---|
191 | See the <a href="qmultilineedit.html#edited-prop">"edited"</a> property for details.
|
---|
192 | <h3 class=fn>void <a name="end"></a>QMultiLineEdit::end ( bool mark = FALSE )<tt> [virtual protected]</tt>
|
---|
193 | </h3> Moves the text cursor to the right end of the line. If <em>mark</em> is
|
---|
194 | TRUE, text is selected toward the last position. If it is FALSE and the
|
---|
195 | cursor is moved, all selected text is unselected.
|
---|
196 | <p> <p>See also <a href="#home">home</a>().
|
---|
197 |
|
---|
198 | <h3 class=fn>bool <a name="getMarkedRegion"></a>QMultiLineEdit::getMarkedRegion ( int * line1, int * col1, int * line2, int * col2 ) const<tt> [protected]</tt>
|
---|
199 | </h3>
|
---|
200 | If there is selected text, sets <em>line1</em>, <em>col1</em>, <em>line2</em> and <em>col2</em>
|
---|
201 | to the start and end of the selected region and returns TRUE. Returns
|
---|
202 | FALSE if there is no selected text.
|
---|
203 |
|
---|
204 | <h3 class=fn>bool <a name="hasMarkedText"></a>QMultiLineEdit::hasMarkedText () const
|
---|
205 | </h3>
|
---|
206 | Returns TRUE if there is selected text.
|
---|
207 |
|
---|
208 | <h3 class=fn>void <a name="home"></a>QMultiLineEdit::home ( bool mark = FALSE )<tt> [virtual protected]</tt>
|
---|
209 | </h3> Moves the text cursor to the left end of the line. If <em>mark</em> is
|
---|
210 | TRUE, text is selected toward the first position. If it is FALSE and the
|
---|
211 | cursor is moved, all selected text is unselected.
|
---|
212 | <p> <p>See also <a href="#end">end</a>().
|
---|
213 |
|
---|
214 | <h3 class=fn>void <a name="insertAndMark"></a>QMultiLineEdit::insertAndMark ( const <a href="qstring.html">QString</a> & str, bool mark )<tt> [virtual protected]</tt>
|
---|
215 | </h3> Inserts <em>str</em> at the current cursor position and selects the
|
---|
216 | text if <em>mark</em> is TRUE.
|
---|
217 |
|
---|
218 | <h3 class=fn>void <a name="insertAt"></a>QMultiLineEdit::insertAt ( const <a href="qstring.html">QString</a> & s, int line, int col, bool mark )<tt> [virtual]</tt>
|
---|
219 | </h3> Inserts string <em>s</em> at paragraph number <em>line</em>, after character
|
---|
220 | number <em>col</em> in the paragraph. If <em>s</em> contains newline
|
---|
221 | characters, new lines are inserted.
|
---|
222 | If <em>mark</em> is TRUE the inserted string will be selected.
|
---|
223 | <p> The cursor position is adjusted.
|
---|
224 |
|
---|
225 | <h3 class=fn>void <a name="insertLine"></a>QMultiLineEdit::insertLine ( const <a href="qstring.html">QString</a> & txt, int line = -1 )<tt> [virtual]</tt>
|
---|
226 | </h3> Inserts <em>txt</em> at paragraph number <em>line</em>. If <em>line</em> is less
|
---|
227 | than zero, or larger than the number of paragraphs, the new text is
|
---|
228 | put at the end. If <em>txt</em> contains newline characters, several
|
---|
229 | paragraphs are inserted.
|
---|
230 | <p> The cursor position is not changed.
|
---|
231 |
|
---|
232 | <h3 class=fn>void <a name="killLine"></a>QMultiLineEdit::killLine ()<tt> [virtual protected]</tt>
|
---|
233 | </h3> Deletes text from the current cursor position to the end of the
|
---|
234 | line. (Note that this function still operates on lines, not paragraphs.)
|
---|
235 |
|
---|
236 | <h3 class=fn>int <a name="lineLength"></a>QMultiLineEdit::lineLength ( int row ) const<tt> [protected]</tt>
|
---|
237 | </h3> Returns the number of characters at paragraph number <em>row</em>. If
|
---|
238 | <em>row</em> is out of range, -1 is returned.
|
---|
239 |
|
---|
240 | <h3 class=fn><a href="qstring.html">QString</a> <a name="markedText"></a>QMultiLineEdit::markedText () const
|
---|
241 | </h3>
|
---|
242 | Returns a copy of the selected text.
|
---|
243 |
|
---|
244 | <h3 class=fn>int <a name="maxLines"></a>QMultiLineEdit::maxLines () const
|
---|
245 | </h3>
|
---|
246 |
|
---|
247 | <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
248 | <p>
|
---|
249 | <h3 class=fn>void <a name="newLine"></a>QMultiLineEdit::newLine ()<tt> [virtual protected]</tt>
|
---|
250 | </h3> Splits the paragraph at the current cursor position.
|
---|
251 |
|
---|
252 | <h3 class=fn>int <a name="numLines"></a>QMultiLineEdit::numLines () const
|
---|
253 | </h3><p>Returns the number of paragraphs in the editor.
|
---|
254 | See the <a href="qmultilineedit.html#numLines-prop">"numLines"</a> property for details.
|
---|
255 | <h3 class=fn>void <a name="pageDown"></a>QMultiLineEdit::pageDown ( bool mark = FALSE )<tt> [virtual protected]</tt>
|
---|
256 | </h3>
|
---|
257 | Moves the cursor one page down. If <em>mark</em> is TRUE, the text
|
---|
258 | is selected.
|
---|
259 |
|
---|
260 | <h3 class=fn>void <a name="pageUp"></a>QMultiLineEdit::pageUp ( bool mark = FALSE )<tt> [virtual protected]</tt>
|
---|
261 | </h3>
|
---|
262 | Moves the cursor one page up. If <em>mark</em> is TRUE, the text
|
---|
263 | is selected.
|
---|
264 |
|
---|
265 | <h3 class=fn>void <a name="removeLine"></a>QMultiLineEdit::removeLine ( int paragraph )<tt> [virtual]</tt>
|
---|
266 | </h3> Deletes the paragraph at paragraph number <em>paragraph</em>. If <em>paragraph</em> is less than zero or larger than the number of paragraphs,
|
---|
267 | nothing is deleted.
|
---|
268 |
|
---|
269 | <h3 class=fn>void <a name="setAlignment"></a>QMultiLineEdit::setAlignment ( int flags )<tt> [virtual]</tt>
|
---|
270 | </h3><p>Sets the editor's paragraph alignment to <em>flags</em>.
|
---|
271 | See the <a href="qmultilineedit.html#alignment-prop">"alignment"</a> property for details.
|
---|
272 | <p>Reimplemented from <a href="qtextedit.html#setAlignment">QTextEdit</a>.
|
---|
273 | <h3 class=fn>void <a name="setAutoUpdate"></a>QMultiLineEdit::setAutoUpdate ( bool )<tt> [virtual]</tt>
|
---|
274 | </h3>
|
---|
275 |
|
---|
276 | <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
277 | <p>
|
---|
278 | <p>Example: <a href="qwerty-example.html#x376">qwerty/qwerty.cpp</a>.
|
---|
279 | <h3 class=fn>void <a name="setCursorPosition"></a>QMultiLineEdit::setCursorPosition ( int line, int col, bool mark )<tt> [virtual]</tt>
|
---|
280 | </h3> Sets the cursor position to character number <em>col</em> in paragraph
|
---|
281 | number <em>line</em>. The parameters are adjusted to lie within the legal
|
---|
282 | range.
|
---|
283 | <p> If <em>mark</em> is FALSE, the selection is cleared. otherwise it is extended.
|
---|
284 | <p>
|
---|
285 | <h3 class=fn>void <a name="setEdited"></a>QMultiLineEdit::setEdited ( bool )
|
---|
286 | </h3><p>Sets whether the document has been edited by the user.
|
---|
287 | See the <a href="qmultilineedit.html#edited-prop">"edited"</a> property for details.
|
---|
288 | <h3 class=fn>void <a name="setMaxLines"></a>QMultiLineEdit::setMaxLines ( int )
|
---|
289 | </h3>
|
---|
290 |
|
---|
291 | <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
292 | <p>
|
---|
293 | <h3 class=fn><a href="qstring.html">QString</a> <a name="textLine"></a>QMultiLineEdit::textLine ( int line ) const
|
---|
294 | </h3> Returns the text at line number <em>line</em> (possibly the empty
|
---|
295 | string), or a <a href="qstring.html#operator!">null string</a> if <em>line</em> is invalid.
|
---|
296 |
|
---|
297 | <p>Example: <a href="qwerty-example.html#x377">qwerty/qwerty.cpp</a>.
|
---|
298 | <h3 class=fn>int <a name="totalHeight"></a>QMultiLineEdit::totalHeight () const
|
---|
299 | </h3>
|
---|
300 |
|
---|
301 | <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
302 | <p>
|
---|
303 | <h3 class=fn>int <a name="totalWidth"></a>QMultiLineEdit::totalWidth () const
|
---|
304 | </h3>
|
---|
305 |
|
---|
306 | <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
307 | <p>
|
---|
308 | <hr><h2>Property Documentation</h2>
|
---|
309 | <h3 class=fn>Alignment <a name="alignment-prop"></a>alignment</h3> <p>This property holds the editor's paragraph alignment.
|
---|
310 | <p>Sets the alignment to flag, which must be <a href="qt.html#AlignmentFlags-enum">AlignLeft</a>, <a href="qt.html#AlignmentFlags-enum">AlignHCenter</a> or <a href="qt.html#AlignmentFlags-enum">AlignRight</a>.
|
---|
311 | <p> If flag is an illegal flag nothing happens.
|
---|
312 | <p> <p>See also <a href="qt.html#AlignmentFlags-enum">Qt::AlignmentFlags</a>.
|
---|
313 |
|
---|
314 | <p>Set this property's value with <a href="#setAlignment">setAlignment</a>() and get this property's value with <a href="#alignment">alignment</a>().
|
---|
315 | <h3 class=fn>bool <a name="atBeginning-prop"></a>atBeginning</h3> <p>This property holds whether the cursor is placed at the beginning of the text.
|
---|
316 | <p>Get this property's value with <a href="#atBeginning">atBeginning</a>().
|
---|
317 | <p><p>See also <a href="#atEnd-prop">atEnd</a>.
|
---|
318 |
|
---|
319 | <h3 class=fn>bool <a name="atEnd-prop"></a>atEnd</h3> <p>This property holds whether the cursor is placed at the end of the text.
|
---|
320 | <p>Get this property's value with <a href="#atEnd">atEnd</a>().
|
---|
321 | <p><p>See also <a href="#atBeginning-prop">atBeginning</a>.
|
---|
322 |
|
---|
323 | <h3 class=fn>bool <a name="edited-prop"></a>edited</h3> <p>This property holds whether the document has been edited by the user.
|
---|
324 | <p>This is the same as <a href="qtextedit.html">QTextEdit</a>'s "modifed" property.
|
---|
325 | <p> <p>See also <a href="qtextedit.html#modified-prop">QTextEdit::modified</a>.
|
---|
326 |
|
---|
327 | <p>Set this property's value with <a href="#setEdited">setEdited</a>() and get this property's value with <a href="#edited">edited</a>().
|
---|
328 | <h3 class=fn>int <a name="numLines-prop"></a>numLines</h3> <p>This property holds the number of paragraphs in the editor.
|
---|
329 | <p>The count includes any empty paragraph at top and bottom, so for an
|
---|
330 | empty editor this method returns 1.
|
---|
331 |
|
---|
332 | <p>Get this property's value with <a href="#numLines">numLines</a>().
|
---|
333 | <!-- eof -->
|
---|
334 | <hr><p>
|
---|
335 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
336 | Copyright © 1995-2007
|
---|
337 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
338 | <table width=100% cellspacing=0 border=0><tr>
|
---|
339 | <td>Copyright © 2007
|
---|
340 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
341 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
342 | </table></div></address></body>
|
---|
343 | </html>
|
---|