~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qlineedit-qt3.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/widgets/qlineedit.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: Qt 3 Support Members for QLineEdit</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
19
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">Qt 3 Support Members for QLineEdit</h1>
 
21
<p><b>The following class members are part of the Qt 3 support layer.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
 
22
<p><ul><li><a href="qlineedit.html">QLineEdit class reference</a></li></ul></p>
 
23
<h3>Public Functions</h3>
 
24
<ul>
 
25
<li><div class="fn"/><b><a href="qlineedit-qt3.html#QLineEdit-3">QLineEdit</a></b> ( QWidget * <i>parent</i>, const char * <i>name</i> )</li>
 
26
<li><div class="fn"/><b><a href="qlineedit-qt3.html#QLineEdit-4">QLineEdit</a></b> ( const QString &amp; <i>contents</i>, QWidget * <i>parent</i>, const char * <i>name</i> )</li>
 
27
<li><div class="fn"/><b><a href="qlineedit-qt3.html#QLineEdit-5">QLineEdit</a></b> ( const QString &amp; <i>contents</i>, const QString &amp; <i>inputMask</i>, QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</li>
 
28
<li><div class="fn"/>int <b><a href="qlineedit-qt3.html#characterAt">characterAt</a></b> ( int <i>xpos</i>, QChar * <i>chr</i> ) const</li>
 
29
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#clearModified">clearModified</a></b> ()</li>
 
30
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#clearValidator">clearValidator</a></b> ()</li>
 
31
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#cursorLeft">cursorLeft</a></b> ( bool <i>mark</i>, int <i>steps</i> = 1 )</li>
 
32
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#cursorRight">cursorRight</a></b> ( bool <i>mark</i>, int <i>steps</i> = 1 )</li>
 
33
<li><div class="fn"/>bool <b><a href="qlineedit-qt3.html#edited">edited</a></b> () const</li>
 
34
<li><div class="fn"/>bool <b><a href="qlineedit-qt3.html#frame">frame</a></b> () const</li>
 
35
<li><div class="fn"/>bool <b><a href="qlineedit-qt3.html#getSelection">getSelection</a></b> ( int * <i>start</i>, int * <i>end</i> )</li>
 
36
<li><div class="fn"/>bool <b><a href="qlineedit-qt3.html#hasMarkedText">hasMarkedText</a></b> () const</li>
 
37
<li><div class="fn"/>QString <b><a href="qlineedit-qt3.html#markedText">markedText</a></b> () const</li>
 
38
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#setEdited">setEdited</a></b> ( bool <i>on</i> )</li>
 
39
<li><div class="fn"/>bool <b><a href="qlineedit-qt3.html#validateAndSet">validateAndSet</a></b> ( const QString &amp; <i>newText</i>, int <i>newPos</i>, int <i>newMarkAnchor</i>, int <i>newMarkDrag</i> )</li>
 
40
</ul>
 
41
<ul>
 
42
<li><div class="fn"/>60 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
 
43
<li><div class="fn"/>8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
 
44
<li><div class="fn"/>8 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
 
45
</ul>
 
46
<h3>Signals</h3>
 
47
<ul>
 
48
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#lostFocus">lostFocus</a></b> ()</li>
 
49
</ul>
 
50
<h3>Protected Functions</h3>
 
51
<ul>
 
52
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#repaintArea">repaintArea</a></b> ( int <i>a</i>, int <i>b</i> )</li>
 
53
</ul>
 
54
<ul>
 
55
<li><div class="fn"/>1 protected function inherited from <a href="qobject.html#protected-functions">QObject</a></li>
 
56
</ul>
 
57
<hr />
 
58
<h2>Member Function Documentation</h2>
 
59
<h3 class="fn"><a name="QLineEdit-3"></a>QLineEdit::QLineEdit ( <a href="qwidget.html">QWidget</a> * <i>parent</i>, const char * <i>name</i> )</h3>
 
60
<p>Constructs a line edit with no text.</p>
 
61
<p>The maximum text length is set to 32767 characters.</p>
 
62
<p>The <i>parent</i> and <i>name</i> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.</p>
 
63
<p>See also <a href="qlineedit.html#text-prop">setText</a>() and <a href="qlineedit.html#maxLength-prop">setMaxLength</a>().</p>
 
64
<h3 class="fn"><a name="QLineEdit-4"></a>QLineEdit::QLineEdit ( const <a href="qstring.html">QString</a> &amp; <i>contents</i>, <a href="qwidget.html">QWidget</a> * <i>parent</i>, const char * <i>name</i> )</h3>
 
65
<p>Constructs a line edit containing the text <i>contents</i>.</p>
 
66
<p>The cursor position is set to the end of the line and the maximum text length to 32767 characters.</p>
 
67
<p>The <i>parent</i> and <i>name</i> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.</p>
 
68
<p>See also <a href="qlineedit.html#text-prop">text</a>() and <a href="qlineedit.html#maxLength-prop">setMaxLength</a>().</p>
 
69
<h3 class="fn"><a name="QLineEdit-5"></a>QLineEdit::QLineEdit ( const <a href="qstring.html">QString</a> &amp; <i>contents</i>, const <a href="qstring.html">QString</a> &amp; <i>inputMask</i>, <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0, const char * <i>name</i> = 0 )</h3>
 
70
<p>Constructs a line edit with an input <i>inputMask</i> and the text <i>contents</i>.</p>
 
71
<p>The cursor position is set to the end of the line and the maximum text length is set to the length of the mask (the number of mask characters and separators).</p>
 
72
<p>The <i>parent</i> and <i>name</i> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.</p>
 
73
<p>See also <a href="qwidget.html#setMask">setMask</a>() and <a href="qlineedit.html#text-prop">text</a>().</p>
 
74
<h3 class="fn"><a name="characterAt"></a>int QLineEdit::characterAt ( int <i>xpos</i>, <a href="qchar.html">QChar</a> * <i>chr</i> ) const</h3>
 
75
<p>There exists no equivalent functionality in Qt 4.</p>
 
76
<h3 class="fn"><a name="clearModified"></a>void QLineEdit::clearModified ()</h3>
 
77
<p>Use setModified(false) instead.</p>
 
78
<p>See also <a href="qlineedit.html#modified-prop">isModified</a>().</p>
 
79
<h3 class="fn"><a name="clearValidator"></a>void QLineEdit::clearValidator ()</h3>
 
80
<p>Use setValidator(0) instead.</p>
 
81
<h3 class="fn"><a name="cursorLeft"></a>void QLineEdit::cursorLeft ( bool <i>mark</i>, int <i>steps</i> = 1 )</h3>
 
82
<p>Use <a href="qlineedit.html#cursorForward">cursorForward</a>() with a negative number of steps instead. For example, cursorForward(mark, -steps).</p>
 
83
<h3 class="fn"><a name="cursorRight"></a>void QLineEdit::cursorRight ( bool <i>mark</i>, int <i>steps</i> = 1 )</h3>
 
84
<p>Use <a href="qlineedit.html#cursorForward">cursorForward</a>() instead.</p>
 
85
<h3 class="fn"><a name="edited"></a>bool QLineEdit::edited () const</h3>
 
86
<p>Use <a href="qlineedit.html#modified-prop">isModified</a>() instead.</p>
 
87
<h3 class="fn"><a name="frame"></a>bool QLineEdit::frame () const</h3>
 
88
<p>Use <a href="qlineedit.html#frame-prop">hasFrame</a>() instead.</p>
 
89
<h3 class="fn"><a name="getSelection"></a>bool QLineEdit::getSelection ( int * <i>start</i>, int * <i>end</i> )</h3>
 
90
<p>Use <a href="qlineedit.html#selectedText-prop">selectedText</a>() and <a href="qlineedit.html#selectionStart">selectionStart</a>() instead.</p>
 
91
<h3 class="fn"><a name="hasMarkedText"></a>bool QLineEdit::hasMarkedText () const</h3>
 
92
<p>Use <a href="qlineedit.html#hasSelectedText-prop">hasSelectedText</a>() instead.</p>
 
93
<h3 class="fn"><a name="lostFocus"></a>void QLineEdit::lostFocus ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
 
94
<p>This signal is emitted when the line edit has lost focus.</p>
 
95
<p>Use <a href="qlineedit.html#editingFinished">editingFinished</a>() instead</p>
 
96
<p>See also <a href="qlineedit.html#editingFinished">editingFinished</a>() and <a href="qlineedit.html#returnPressed">returnPressed</a>().</p>
 
97
<h3 class="fn"><a name="markedText"></a><a href="qstring.html">QString</a> QLineEdit::markedText () const</h3>
 
98
<p>Use <a href="qlineedit.html#selectedText-prop">selectedText</a>() instead.</p>
 
99
<h3 class="fn"><a name="repaintArea"></a>void QLineEdit::repaintArea ( int <i>a</i>, int <i>b</i> )&nbsp;&nbsp;<tt> [protected]</tt></h3>
 
100
<p>Use <a href="qwidget.html#update">update</a>() instead.</p>
 
101
<h3 class="fn"><a name="setEdited"></a>void QLineEdit::setEdited ( bool <i>on</i> )</h3>
 
102
<p>Use <a href="qlineedit.html#modified-prop">setModified</a>() or <a href="qlineedit.html#text-prop">setText</a>().</p>
 
103
<h3 class="fn"><a name="validateAndSet"></a>bool QLineEdit::validateAndSet ( const <a href="qstring.html">QString</a> &amp; <i>newText</i>, int <i>newPos</i>, int <i>newMarkAnchor</i>, int <i>newMarkDrag</i> )</h3>
 
104
<p>Use <a href="qlineedit.html#text-prop">setText</a>(), <a href="qlineedit.html#cursorPosition-prop">setCursorPosition</a>() and <a href="qlineedit.html#setSelection">setSelection</a>() instead.</p>
 
105
<p /><address><hr /><div align="center">
 
106
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
107
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
108
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
109
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
110
</tr></table></div></address></body>
 
111
</html>