summaryrefslogtreecommitdiffstats
path: root/old/doc/html/qtuitest-inputwidget.html
diff options
context:
space:
mode:
Diffstat (limited to 'old/doc/html/qtuitest-inputwidget.html')
-rw-r--r--old/doc/html/qtuitest-inputwidget.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/old/doc/html/qtuitest-inputwidget.html b/old/doc/html/qtuitest-inputwidget.html
new file mode 100644
index 0000000..e4aab40
--- /dev/null
+++ b/old/doc/html/qtuitest-inputwidget.html
@@ -0,0 +1,60 @@
+<?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">
+<!-- ../../lib/qtuitestwidgetinterface.cpp -->
+<head>
+ <title>InputWidget Class Reference</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://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
+<td width="1">&nbsp;&nbsp;</td><td align="right" valign="top" width="230"></td></tr></table><h1 class="title">InputWidget Class Reference<br /><span class="small-subtitle">(QtUiTest::InputWidget)<br />[QtUiTestModule]</span>
+</h1>
+<p>The InputWidget class provides an abstract base class for all test widgets which allow the user to input text. <a href="#details">More...</a></p>
+<pre> #include &lt;<a href="qtuitest.html">QtUiTest</a>&gt;</pre><p><b>This class is under development and is subject to change.</b></p>
+<p>Inherited by </p>
+<ul>
+<li><a href="qtuitest-inputwidget-members.html">List of all members, including inherited members</a></li>
+</ul>
+<hr />
+<a name="public-functions"></a>
+<h2>Public Functions</h2>
+<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
+<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="qtuitest-inputwidget.html#canEnter">canEnter</a></b> ( const QVariant &amp; <i>item</i> ) const = 0</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="qtuitest-inputwidget.html#enter">enter</a></b> ( const QVariant &amp; <i>item</i>, bool <i>noCommit</i> ) = 0</td></tr>
+</table>
+<hr />
+<a name="signals"></a>
+<h2>Signals</h2>
+<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
+<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtuitest-inputwidget.html#entered">entered</a></b> ( const QVariant &amp; <i>item</i> )</td></tr>
+</table>
+<a name="details"></a>
+<hr />
+<h2>Detailed Description</h2>
+<p>The InputWidget class provides an abstract base class for all test widgets which allow the user to input text.</p>
+<p>QtUiTest::InputWidget encapsulates a widget in which a user may enter and remove text. This is closely related to <a href="qtuitest-textwidget.html">QtUiTest::TextWidget</a>, which provides an interface for retrieving text from a widget. Any widgets which contain user-editable text will typically implement both QtUiTest::InputWidget and <a href="qtuitest-textwidget.html">QtUiTest::TextWidget</a>.</p>
+<p>Examples of widgets suitable for this interface include QLineEdit and QTextEdit.</p>
+<p>See also <a href="qtuitest-textwidget.html">QtUiTest::TextWidget</a>.</p>
+<hr />
+<h2>Member Function Documentation</h2>
+<h3 class="fn"><a name="canEnter"></a>bool InputWidget::canEnter ( const QVariant &amp; <i>item</i> ) const&nbsp;&nbsp;<tt> [pure virtual]</tt></h3>
+<p>Returns true if <i>item</i> can possibly be entered into this widget.</p>
+<p>For example, for a QLineEdit, QLineEdit::validator() would be used to ensure that item.toString() constitutes valid input for this line edit.</p>
+<h3 class="fn"><a name="enter"></a>bool InputWidget::enter ( const QVariant &amp; <i>item</i>, bool <i>noCommit</i> )&nbsp;&nbsp;<tt> [pure virtual]</tt></h3>
+<p>Simulates the user input necessary to enter <i>item</i> into this widget. Returns true on success.</p>
+<p><i>item</i> can potentially be any type representable in a QVariant. Most widgets will only be interested in text, in which case item.toString() can be called to retrieve a string. Examples of widgets which may handle types other than text are QDateEdit and QTimeEdit, which may handle dates and times.</p>
+<p>If <i>noCommit</i> is true, no attempt is made to commit the input (for example, by clicking the Select key). Normally this value will be false, which will result in the input being committed. This value is not applicable to all widget types.</p>
+<p>If <a href="qtuitest-inputwidget.html#canEnter">canEnter</a>() returns true and this function returns false, an error has occurred and this widget is left in an undefined state.</p>
+<h3 class="fn"><a name="entered"></a>void InputWidget::entered ( const QVariant &amp; <i>item</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
+<p>This signal is emitted when <i>item</i> is entered into the widget by the user.</p>
+<p /><address><hr /><div align="center">
+<table width="100%" cellspacing="0" border="0"><tr class="address">
+<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
+<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
+<td width="30%" align="right"><div align="right">QtUiTest</div></td>
+</tr></table></div></address></body>
+</html>