Sophie

Sophie

distrib > CentOS > 5 > i386 > by-pkgid > d5f6a048a2b223e97fccd86095a60071 > files > 4291

qt4-doc-4.2.1-1.el5_7.1.i386.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /tmp/qt-4.2.1-harald-1161357942206/qt-x11-opensource-src-4.2.1/src/gui/widgets/qlineedit.cpp -->
<head>
  <title>Qt 4.2: Qt 3 Support Members for QLineEdit</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<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="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QLineEdit</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qlineedit.html">QLineEdit class reference</a></li></ul></p>
<h3>Public Functions</h3>
<ul>
<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>
<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>
<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>
<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>
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#clearModified">clearModified</a></b> ()</li>
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#clearValidator">clearValidator</a></b> ()</li>
<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>
<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>
<li><div class="fn"/>bool <b><a href="qlineedit-qt3.html#edited">edited</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qlineedit-qt3.html#frame">frame</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qlineedit-qt3.html#getSelection">getSelection</a></b> ( int * <i>start</i>, int * <i>end</i> )</li>
<li><div class="fn"/>bool <b><a href="qlineedit-qt3.html#hasMarkedText">hasMarkedText</a></b> () const</li>
<li><div class="fn"/>int <b><a href="qlineedit-qt3.html#margin">margin</a></b> () const</li>
<li><div class="fn"/>QString <b><a href="qlineedit-qt3.html#markedText">markedText</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#setEdited">setEdited</a></b> ( bool <i>on</i> )</li>
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#setMargin">setMargin</a></b> ( int <i>margin</i> )</li>
<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>
</ul>
<ul>
<li><div class="fn"/>60 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li><div class="fn"/>8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li><div class="fn"/>8 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<h3>Signals</h3>
<ul>
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#lostFocus">lostFocus</a></b> ()</li>
</ul>
<h3>Protected Functions</h3>
<ul>
<li><div class="fn"/>void <b><a href="qlineedit-qt3.html#repaintArea">repaintArea</a></b> ( int <i>a</i>, int <i>b</i> )</li>
</ul>
<ul>
<li><div class="fn"/>1 protected function inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<hr />
<h2>Member Function Documentation</h2>
<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>
<p>Constructs a line edit with no text.</p>
<p>The maximum text length is set to 32767 characters.</p>
<p>The <i>parent</i> and <i>name</i> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.</p>
<p>See also <a href="qlineedit.html#text-prop">setText</a>() and <a href="qlineedit.html#maxLength-prop">setMaxLength</a>().</p>
<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>
<p>Constructs a line edit containing the text <i>contents</i>.</p>
<p>The cursor position is set to the end of the line and the maximum text length to 32767 characters.</p>
<p>The <i>parent</i> and <i>name</i> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.</p>
<p>See also <a href="qlineedit.html#text-prop">text</a>() and <a href="qlineedit.html#maxLength-prop">setMaxLength</a>().</p>
<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>
<p>Constructs a line edit with an input <i>inputMask</i> and the text <i>contents</i>.</p>
<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>
<p>The <i>parent</i> and <i>name</i> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.</p>
<p>See also <a href="qwidget.html#setMask">setMask</a>() and <a href="qlineedit.html#text-prop">text</a>().</p>
<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>
<p>There exists no equivalent functionality in Qt 4.</p>
<h3 class="fn"><a name="clearModified"></a>void QLineEdit::clearModified ()</h3>
<p>Use setModified(false) instead.</p>
<p>See also <a href="qlineedit.html#modified-prop">isModified</a>().</p>
<h3 class="fn"><a name="clearValidator"></a>void QLineEdit::clearValidator ()</h3>
<p>Use setValidator(0) instead.</p>
<h3 class="fn"><a name="cursorLeft"></a>void QLineEdit::cursorLeft ( bool <i>mark</i>, int <i>steps</i> = 1 )</h3>
<p>Use <a href="qlineedit.html#cursorForward">cursorForward</a>() with a negative number of steps instead. For example, cursorForward(mark, -steps).</p>
<h3 class="fn"><a name="cursorRight"></a>void QLineEdit::cursorRight ( bool <i>mark</i>, int <i>steps</i> = 1 )</h3>
<p>Use <a href="qlineedit.html#cursorForward">cursorForward</a>() instead.</p>
<h3 class="fn"><a name="edited"></a>bool QLineEdit::edited () const</h3>
<p>Use <a href="qlineedit.html#modified-prop">isModified</a>() instead.</p>
<p>See also <a href="qlineedit-qt3.html#setEdited">setEdited</a>().</p>
<h3 class="fn"><a name="frame"></a>bool QLineEdit::frame () const</h3>
<p>Use <a href="qlineedit.html#frame-prop">hasFrame</a>() instead.</p>
<p>See also <a href="qlineedit.html#frame-prop">setFrame</a>().</p>
<h3 class="fn"><a name="getSelection"></a>bool QLineEdit::getSelection ( int * <i>start</i>, int * <i>end</i> )</h3>
<p>Use <a href="qlineedit.html#selectedText-prop">selectedText</a>() and <a href="qlineedit.html#selectionStart">selectionStart</a>() instead.</p>
<h3 class="fn"><a name="hasMarkedText"></a>bool QLineEdit::hasMarkedText () const</h3>
<p>Use <a href="qlineedit.html#hasSelectedText-prop">hasSelectedText</a>() instead.</p>
<h3 class="fn"><a name="lostFocus"></a>void QLineEdit::lostFocus ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the line edit has lost focus.</p>
<p>Use <a href="qlineedit.html#editingFinished">editingFinished</a>() instead</p>
<p>See also <a href="qlineedit.html#editingFinished">editingFinished</a>() and <a href="qlineedit.html#returnPressed">returnPressed</a>().</p>
<h3 class="fn"><a name="margin"></a>int QLineEdit::margin () const</h3>
<p>Returns the with of the the margin around the contents of the widget.</p>
<p>Use <a href="qwidget.html#getContentsMargins">QWidget::getContentsMargins</a>() instead.</p>
<p>See also <a href="qlineedit-qt3.html#setMargin">setMargin</a>() and <a href="qwidget.html#getContentsMargins">QWidget::getContentsMargins</a>().</p>
<h3 class="fn"><a name="markedText"></a><a href="qstring.html">QString</a> QLineEdit::markedText () const</h3>
<p>Use <a href="qlineedit.html#selectedText-prop">selectedText</a>() instead.</p>
<h3 class="fn"><a name="repaintArea"></a>void QLineEdit::repaintArea ( int <i>a</i>, int <i>b</i> )&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Use <a href="qwidget.html#update">update</a>() instead.</p>
<h3 class="fn"><a name="setEdited"></a>void QLineEdit::setEdited ( bool <i>on</i> )</h3>
<p>Use <a href="qlineedit.html#modified-prop">setModified</a>() or <a href="qlineedit.html#text-prop">setText</a>().</p>
<p>See also <a href="qlineedit-qt3.html#edited">edited</a>().</p>
<h3 class="fn"><a name="setMargin"></a>void QLineEdit::setMargin ( int <i>margin</i> )</h3>
<p>Sets the width of the margin around the contents of the widget to <i>margin</i>.</p>
<p>Use <a href="qwidget.html#setContentsMargins">QWidget::setContentsMargins</a>() instead.</p>
<p>See also <a href="qlineedit-qt3.html#margin">margin</a>() and <a href="qwidget.html#setContentsMargins">QWidget::setContentsMargins</a>().</p>
<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>
<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>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2006 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.2.1</div></td>
</tr></table></div></address></body>
</html>