diff options
Diffstat (limited to 'old/doc/html/qtuitest-selectwidget.html')
-rw-r--r-- | old/doc/html/qtuitest-selectwidget.html | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/old/doc/html/qtuitest-selectwidget.html b/old/doc/html/qtuitest-selectwidget.html new file mode 100644 index 0000000..ed8fecd --- /dev/null +++ b/old/doc/html/qtuitest-selectwidget.html @@ -0,0 +1,71 @@ +<?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>SelectWidget 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"> </td><td align="right" valign="top" width="230"></td></tr></table><h1 class="title">SelectWidget Class Reference<br /><span class="small-subtitle">(QtUiTest::SelectWidget)<br />[QtUiTestModule]</span> +</h1> +<p>The SelectWidget class provides an abstract base class for all test widgets which allow the user to select from a range of items. <a href="#details">More...</a></p> +<pre> #include <<a href="qtuitest.html">QtUiTest</a>></pre><p><b>This class is under development and is subject to change.</b></p> +<ul> +<li><a href="qtuitest-selectwidget-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-selectwidget.html#canSelect">canSelect</a></b> ( const QString & <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-selectwidget.html#canSelectMulti">canSelectMulti</a></b> ( const QStringList & <i>items</i> ) const</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="qtuitest-selectwidget.html#isMultiSelection">isMultiSelection</a></b> () const</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="qtuitest-selectwidget.html#select">select</a></b> ( const QString & <i>item</i> ) = 0</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="qtuitest-selectwidget.html#selectMulti">selectMulti</a></b> ( const QStringList & <i>items</i> )</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-selectwidget.html#selected">selected</a></b> ( const QString & <i>item</i> )</td></tr> +</table> +<a name="details"></a> +<hr /> +<h2>Detailed Description</h2> +<p>The SelectWidget class provides an abstract base class for all test widgets which allow the user to select from a range of items.</p> +<p>QtUiTest::SelectWidget encapsulates a widget which provides the user with a choice from a (possibly unlimited) range. This is closely related to <a href="qtuitest-listwidget.html">QtUiTest::ListWidget</a>, which may be implemented to allow a user to enumerate all items from a list.</p> +<p>Examples of widgets suitable for this interface include QAbstractItemView, QComboBox and QMenu.</p> +<p>See also <a href="qtuitest-listwidget.html">QtUiTest::ListWidget</a>.</p> +<hr /> +<h2>Member Function Documentation</h2> +<h3 class="fn"><a name="canSelect"></a>bool SelectWidget::canSelect ( const QString & <i>item</i> ) const <tt> [pure virtual]</tt></h3> +<p>Returns true if <i>item</i> can possibly be selected from this widget.</p> +<h3 class="fn"><a name="canSelectMulti"></a>bool SelectWidget::canSelectMulti ( const QStringList & <i>items</i> ) const <tt> [virtual]</tt></h3> +<p>Returns true if all of the given <i>items</i> can be selected from this widget at the same time.</p> +<p>The base implementation returns true if <a href="qtuitest-selectwidget.html#isMultiSelection">isMultiSelection</a>() returns true and <a href="qtuitest-selectwidget.html#canSelect">canSelect</a>() returns true for every item in <i>items</i>.</p> +<h3 class="fn"><a name="isMultiSelection"></a>bool SelectWidget::isMultiSelection () const <tt> [virtual]</tt></h3> +<p>Returns true if this widget supports the selection of multiple items at the same time.</p> +<p>The base implementation returns false.</p> +<h3 class="fn"><a name="select"></a>bool SelectWidget::select ( const QString & <i>item</i> ) <tt> [pure virtual]</tt></h3> +<p>Simulates the user input necessary to select <i>item</i> from this widget.</p> +<p>Returns true if <i>item</i> was successfully selected.</p> +<p>If <a href="qtuitest-selectwidget.html#canSelect">canSelect</a>() returns true and this function returns false, an error has occurred and this widget's state is undefined.</p> +<h3 class="fn"><a name="selectMulti"></a>bool SelectWidget::selectMulti ( const QStringList & <i>items</i> ) <tt> [virtual]</tt></h3> +<p>Simulates the user input necessary to select all <i>items</i> from this widget at the same time.</p> +<p>Returns true if <i>items</i> were all successfully selected.</p> +<p>If <a href="qtuitest-selectwidget.html#canSelectMulti">canSelectMulti</a>() returns true and this function returns false, an error has occurred and this widget's state is undefined.</p> +<p>The base implementation calls <a href="qtuitest-selectwidget.html#canSelectMulti">canSelectMulti</a>() to check if <i>items</i> can be selected, then calls <a href="qtuitest-selectwidget.html#select">select</a>() on each item in <i>items</i>.</p> +<h3 class="fn"><a name="selected"></a>void SelectWidget::selected ( const QString & <i>item</i> ) <tt> [signal]</tt></h3> +<p>This signal is emitted when <i>item</i> is selected from this widget.</p> +<p /><address><hr /><div align="center"> +<table width="100%" cellspacing="0" border="0"><tr class="address"> +<td width="30%" align="left">Copyright © 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> |