Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 440

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 16:59:13 CEST 2007 -->
<TITLE>
QDataWidgetMapper
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QDataWidgetMapper class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QDataWidgetMapper";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QCursor.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.SubmitPolicy.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QDataWidgetMapper.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QDataWidgetMapper.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.gui</FONT>
<BR>
Class QDataWidgetMapper</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QObject</A>
              <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QDataWidgetMapper</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QDataWidgetMapper</B><DT>extends <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></DL>
</PRE>

<P>
<p>The <a href="QDataWidgetMapper.html#QDataWidgetMapper(com.trolltech.qt.core.QObject)"><tt>QDataWidgetMapper</tt></a> class provides mapping between a section of a data model to widgets.</p>
<p><a href="QDataWidgetMapper.html#QDataWidgetMapper(com.trolltech.qt.core.QObject)"><tt>QDataWidgetMapper</tt></a> can be used to create data-aware widgets by mapping them to sections of an item model. A section is a column of a model if the orientation is horizontal (the default), otherwise a row.</p>
<p>Every time the current index changes, each widget is updated with data from the model via the property specified when its mapping was made. If the user edits the contents of a widget, the changes are read using the same property and written back to the model. By default, each widget's user property</tt> is used to transfer data between the model and the widget. Since Qt 4.3, an additional <a href="QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int)"><tt>addMapping</tt></a> function enables a named property to be used instead of the default user property.</p>
<p>It is possible to set an item delegate to support custom widgets. By default, a <a href="QItemDelegate.html"><tt>QItemDelegate</tt></a> is used to synchronize the model with the widgets.</p>
<p>Let us assume that we have an item model named <tt>model</tt> with the following contents:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td>1</td><td>Trolltech ASA</td><td>Oslo</td></tr>
<tr valign="top" class="even"><td>2</td><td>Trolltech Pty</td><td>Brisbane</td></tr>
<tr valign="top" class="odd"><td>3</td><td>Trolltech Inc</td><td>Palo Alto</td></tr>
<tr valign="top" class="even"><td>4</td><td>Trolltech China</td><td>Beijing</td></tr>
<tr valign="top" class="odd"><td>5</td><td>Trolltech GmbH</td><td>Berlin</td></tr>
</table></p>
<p>The following code will map the columns of the model to widgets called <tt>mySpinBox</tt>, <tt>myLineEdit</tt> and <tt>myCountryChooser</tt>:</p>
<pre>    QDataWidgetMapper *mapper = new QDataWidgetMapper;
    mapper-&gt;setModel(model);
    mapper-&gt;addMapping(mySpinBox, 0);
    mapper-&gt;addMapping(myLineEdit, 1);
    mapper-&gt;addMapping(myCountryChooser, 2);
    mapper-&gt;toFirst();</pre>
<p>After the call to <a href="QDataWidgetMapper.html#toFirst()"><tt>toFirst</tt></a>, <tt>mySpinBox</tt> displays the value <tt>1</tt>, <tt>myLineEdit</tt> displays <tt>Trolltech ASA</tt> and <tt>myCountryChooser</tt> displays <tt>Oslo</tt>. The navigational functions <a href="QDataWidgetMapper.html#toFirst()"><tt>toFirst</tt></a>, <a href="QDataWidgetMapper.html#toNext()"><tt>toNext</tt></a>, <a href="QDataWidgetMapper.html#toPrevious()"><tt>toPrevious</tt></a>, <a href="QDataWidgetMapper.html#toLast()"><tt>toLast</tt></a> and <a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a> can be used to navigate in the model and update the widgets with contents from the model.</p>
<p>The <a href="QDataWidgetMapper.html#setRootIndex(com.trolltech.qt.core.QModelIndex)"><tt>setRootIndex</tt></a> function enables a particular item in a model to be specified as the root index - children of this item will be mapped to the relevant widgets in the user interface.</p>
<p><a href="QDataWidgetMapper.html#QDataWidgetMapper(com.trolltech.qt.core.QObject)"><tt>QDataWidgetMapper</tt></a> supports two submit policies, <tt>AutoSubmit</tt> and <tt>ManualSubmit</tt>. <tt>AutoSubmit</tt> will update the model as soon as the current widget loses focus, <tt>ManualSubmit</tt> will not update the model unless <a href="QDataWidgetMapper.html#submit()"><tt>submit</tt></a> is called. <tt>ManualSubmit</tt> is useful when displaying a dialog that lets the user cancel all modifications. Also, other views that display the model won't update until the user finishes all their modifications and submits.</p>
<p>Note that <a href="QDataWidgetMapper.html#QDataWidgetMapper(com.trolltech.qt.core.QObject)"><tt>QDataWidgetMapper</tt></a> keeps track of external modifications. If the contents of the model are updated in another module of the application, the widgets are updated as well.</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="%2E%2E/core/QAbstractItemModel.html"><tt>QAbstractItemModel</tt></a>, 
<a href="QAbstractItemDelegate.html"><tt>QAbstractItemDelegate</tt></a></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.SubmitPolicy.html" title="enum in com.trolltech.qt.gui">QDataWidgetMapper.SubmitPolicy</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the possible submit policies a <a href="QDataWidgetMapper.html#QDataWidgetMapper(com.trolltech.qt.core.QObject)"><tt>QDataWidgetMapper</tt></a> supports.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#currentIndexChanged">currentIndexChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted after the current index has changed and all widgets were populated with new data.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#QDataWidgetMapper()">QDataWidgetMapper</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QDataWidgetMapper.html#QDataWidgetMapper(com.trolltech.qt.core.QObject)"><tt>QDataWidgetMapper</tt></a>(0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#QDataWidgetMapper(com.trolltech.qt.core.QObject)">QDataWidgetMapper</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new <a href="QDataWidgetMapper.html#QDataWidgetMapper(com.trolltech.qt.core.QObject)"><tt>QDataWidgetMapper</tt></a> with parent object <tt>parent</tt>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int)">addMapping</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>&nbsp;widget,
           int&nbsp;section)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a mapping between a <tt>widget</tt> and a <tt>section</tt> from the model.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.QByteArray)">addMapping</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>&nbsp;widget,
           int&nbsp;section,
           <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;propertyName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Essentially the same as <a href="QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int)"><tt>addMapping</tt></a>, but adds the possibility to specify the property to use specifying <tt>propertyName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#clearMapping()">clearMapping</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears all mappings.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#currentIndex()">currentIndex</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current row or column.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html" title="class in com.trolltech.qt.gui">QDataWidgetMapper</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QDataWidgetMapper instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QAbstractItemDelegate.html" title="class in com.trolltech.qt.gui">QAbstractItemDelegate</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#itemDelegate()">itemDelegate</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current item delegate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#mappedPropertyName(com.trolltech.qt.gui.QWidget)">mappedPropertyName</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>&nbsp;widget)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the property that is used when mapping data to the given <tt>widget</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#mappedSection(com.trolltech.qt.gui.QWidget)">mappedSection</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>&nbsp;widget)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the section the <tt>widget</tt> is mapped to or -1 if the widget is not mapped.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#mappedWidgetAt(int)">mappedWidgetAt</A></B>(int&nbsp;section)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the widget that is mapped at <tt>section</tt>, or 0 if no widget is mapped at that section.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html" title="class in com.trolltech.qt.core">QAbstractItemModel</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#model()">model</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current model.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/Qt.Orientation.html" title="enum in com.trolltech.qt.core">Qt.Orientation</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#orientation()">orientation</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the orientation of the model.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#removeMapping(com.trolltech.qt.gui.QWidget)">removeMapping</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>&nbsp;widget)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the mapping for the given <tt>widget</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#revert()">revert</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Repopulates all widgets with the current data of the model.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#rootIndex()">rootIndex</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current root index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#setCurrentIndex(int)">setCurrentIndex</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current row or column to <tt>index</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#setCurrentModelIndex(com.trolltech.qt.core.QModelIndex)">setCurrentModelIndex</A></B>(<A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A>&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current index to the row of the <tt>index</tt> if the orientation is horizontal (the default), otherwise to the column of the <tt>index</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#setItemDelegate(com.trolltech.qt.gui.QAbstractItemDelegate)">setItemDelegate</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QAbstractItemDelegate.html" title="class in com.trolltech.qt.gui">QAbstractItemDelegate</A>&nbsp;delegate)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the item delegate to <tt>delegate</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#setModel(com.trolltech.qt.core.QAbstractItemModel)">setModel</A></B>(<A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html" title="class in com.trolltech.qt.core">QAbstractItemModel</A>&nbsp;model)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current model to <tt>model</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)">setOrientation</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.Orientation.html" title="enum in com.trolltech.qt.core">Qt.Orientation</A>&nbsp;aOrientation)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the orientation of the model to <tt>aOrientation</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#setRootIndex(com.trolltech.qt.core.QModelIndex)">setRootIndex</A></B>(<A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A>&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the root item to <tt>index</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#setSubmitPolicy(com.trolltech.qt.gui.QDataWidgetMapper.SubmitPolicy)">setSubmitPolicy</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.SubmitPolicy.html" title="enum in com.trolltech.qt.gui">QDataWidgetMapper.SubmitPolicy</A>&nbsp;policy)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current submit policy to <tt>policy</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#submit()">submit</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Submits all changes from the mapped widgets to the model.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.SubmitPolicy.html" title="enum in com.trolltech.qt.gui">QDataWidgetMapper.SubmitPolicy</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#submitPolicy()">submitPolicy</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current submit policy.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#toFirst()">toFirst</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Populates the widgets with data from the first row of the model if the orientation is horizontal (the default), otherwise with data from the first column.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#toLast()">toLast</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Populates the widgets with data from the last row of the model if the orientation is horizontal (the default), otherwise with data from the last column.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#toNext()">toNext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Populates the widgets with data from the next row of the model if the orientation is horizontal (the default), otherwise with data from the next column.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html#toPrevious()">toPrevious</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Populates the widgets with data from the previous row of the model if the orientation is horizontal (the default), otherwise with data from the previous column.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.core.QObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QObject.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#childEvent(com.trolltech.qt.core.QChildEvent)">childEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#children()">children</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#connectSlotsByName()">connectSlotsByName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#customEvent(com.trolltech.qt.core.QEvent)">customEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#disposeLater()">disposeLater</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectInfo()">dumpObjectInfo</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectTree()">dumpObjectTree</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dynamicPropertyNames()">dynamicPropertyNames</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#event(com.trolltech.qt.core.QEvent)">event</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#eventFilter(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)">eventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild()">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class, java.lang.String)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren()">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, com.trolltech.qt.core.QRegExp)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, java.lang.String)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#installEventFilter(com.trolltech.qt.core.QObject)">installEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#isWidgetType()">isWidgetType</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#killTimer(int)">killTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#moveToThread(java.lang.Thread)">moveToThread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#objectName()">objectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#parent()">parent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#property(java.lang.String)">property</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#removeEventFilter(com.trolltech.qt.core.QObject)">removeEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setObjectName(java.lang.String)">setObjectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setParent(com.trolltech.qt.core.QObject)">setParent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#startTimer(int)">startTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#thread()">thread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#timerEvent(com.trolltech.qt.core.QTimerEvent)">timerEvent</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="currentIndexChanged"><!-- --></A><H3>
currentIndexChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt; <B>currentIndexChanged</B></PRE>
<DL>
<DD><p>This signal is emitted after the current index has changed and all widgets were populated with new data. <tt>index</tt> is the new current index.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int index)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QDataWidgetMapper.html#currentIndex()"><tt>currentIndex</tt></a>, <a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QDataWidgetMapper()"><!-- --></A><H3>
QDataWidgetMapper</H3>
<PRE>
public <B>QDataWidgetMapper</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QDataWidgetMapper.html#QDataWidgetMapper(com.trolltech.qt.core.QObject)"><tt>QDataWidgetMapper</tt></a>(0).
<P>
</DL>
<HR>

<A NAME="QDataWidgetMapper(com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QDataWidgetMapper</H3>
<PRE>
public <B>QDataWidgetMapper</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Constructs a new <a href="QDataWidgetMapper.html#QDataWidgetMapper(com.trolltech.qt.core.QObject)"><tt>QDataWidgetMapper</tt></a> with parent object <tt>parent</tt>. By default, the orientation is horizontal and the submit policy is <tt>AutoSubmit</tt>.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)"><tt>setOrientation</tt></a>, 
<a href="QDataWidgetMapper.html#setSubmitPolicy(com.trolltech.qt.gui.QDataWidgetMapper.SubmitPolicy)"><tt>setSubmitPolicy</tt></a></DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="addMapping(com.trolltech.qt.gui.QWidget, int)"><!-- --></A><H3>
addMapping</H3>
<PRE>
public final void <B>addMapping</B>(<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>&nbsp;widget,
                             int&nbsp;section)</PRE>
<DL>
<DD><p>Adds a mapping between a <tt>widget</tt> and a <tt>section</tt> from the model. The <tt>section</tt> is a column in the model if the orientation is horizontal (the default), otherwise a row.</p>
<p>For the following example, we assume a model <tt>myModel</tt> that has two columns: the first one contains the names of people in a group, and the second column contains their ages. The first column is mapped to the <a href="QLineEdit.html"><tt>QLineEdit</tt></a> <tt>nameLineEdit</tt>, and the second is mapped to the <a href="QSpinBox.html"><tt>QSpinBox</tt></a> <tt>ageSpinBox</tt>:</p>
<pre>    QDataWidgetMapper *mapper = new QDataWidgetMapper();
    mapper-&gt;setModel(myModel);
    mapper-&gt;addMapping(nameLineEdit, 0);
    mapper-&gt;addMapping(ageSpinBox, 1);</pre>
<p><b>Notes:</b></p>
<ul>
<li>If the <tt>widget</tt> is already mapped to a section, the old mapping will be replaced by the new one.</li>
<li>Only one-to-one mappings between sections and widgets are allowed. It is not possible to map a single section to multiple widgets, or to map a single widget to multiple sections.</li>
</ul>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#removeMapping(com.trolltech.qt.gui.QWidget)"><tt>removeMapping</tt></a>, 
<a href="QDataWidgetMapper.html#mappedSection(com.trolltech.qt.gui.QWidget)"><tt>mappedSection</tt></a>, 
<a href="QDataWidgetMapper.html#clearMapping()"><tt>clearMapping</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="addMapping(com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
addMapping</H3>
<PRE>
public final void <B>addMapping</B>(<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>&nbsp;widget,
                             int&nbsp;section,
                             <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;propertyName)</PRE>
<DL>
<DD><p>Essentially the same as <a href="QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int)"><tt>addMapping</tt></a>, but adds the possibility to specify the property to use specifying <tt>propertyName</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int)"><tt>addMapping</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="clearMapping()"><!-- --></A><H3>
clearMapping</H3>
<PRE>
public final void <B>clearMapping</B>()</PRE>
<DL>
<DD><p>Clears all mappings.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int)"><tt>addMapping</tt></a>, 
<a href="QDataWidgetMapper.html#removeMapping(com.trolltech.qt.gui.QWidget)"><tt>removeMapping</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="currentIndex()"><!-- --></A><H3>
currentIndex</H3>
<PRE>
public final int <B>currentIndex</B>()</PRE>
<DL>
<DD><p>Returns the current row or column.</p>
<p>The widgets are populated with with data from the row at <tt>index</tt> if the orientation is horizontal (the default), otherwise with data from the column at <tt>index</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a>, 
<a href="QDataWidgetMapper.html#setCurrentModelIndex(com.trolltech.qt.core.QModelIndex)"><tt>setCurrentModelIndex</tt></a>, 
<a href="QDataWidgetMapper.html#toFirst()"><tt>toFirst</tt></a>, 
<a href="QDataWidgetMapper.html#toNext()"><tt>toNext</tt></a>, 
<a href="QDataWidgetMapper.html#toPrevious()"><tt>toPrevious</tt></a>, 
<a href="QDataWidgetMapper.html#toLast()"><tt>toLast</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="itemDelegate()"><!-- --></A><H3>
itemDelegate</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QAbstractItemDelegate.html" title="class in com.trolltech.qt.gui">QAbstractItemDelegate</A> <B>itemDelegate</B>()</PRE>
<DL>
<DD><p>Returns the current item delegate.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#setItemDelegate(com.trolltech.qt.gui.QAbstractItemDelegate)"><tt>setItemDelegate</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="mappedPropertyName(com.trolltech.qt.gui.QWidget)"><!-- --></A><H3>
mappedPropertyName</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>mappedPropertyName</B>(<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>&nbsp;widget)</PRE>
<DL>
<DD><p>Returns the name of the property that is used when mapping data to the given <tt>widget</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#mappedSection(com.trolltech.qt.gui.QWidget)"><tt>mappedSection</tt></a>, 
<a href="QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int)"><tt>addMapping</tt></a>, 
<a href="QDataWidgetMapper.html#removeMapping(com.trolltech.qt.gui.QWidget)"><tt>removeMapping</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="mappedSection(com.trolltech.qt.gui.QWidget)"><!-- --></A><H3>
mappedSection</H3>
<PRE>
public final int <B>mappedSection</B>(<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>&nbsp;widget)</PRE>
<DL>
<DD><p>Returns the section the <tt>widget</tt> is mapped to or -1 if the widget is not mapped.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int)"><tt>addMapping</tt></a>, 
<a href="QDataWidgetMapper.html#removeMapping(com.trolltech.qt.gui.QWidget)"><tt>removeMapping</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="mappedWidgetAt(int)"><!-- --></A><H3>
mappedWidgetAt</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A> <B>mappedWidgetAt</B>(int&nbsp;section)</PRE>
<DL>
<DD><p>Returns the widget that is mapped at <tt>section</tt>, or 0 if no widget is mapped at that section.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int)"><tt>addMapping</tt></a>, 
<a href="QDataWidgetMapper.html#removeMapping(com.trolltech.qt.gui.QWidget)"><tt>removeMapping</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="model()"><!-- --></A><H3>
model</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html" title="class in com.trolltech.qt.core">QAbstractItemModel</A> <B>model</B>()</PRE>
<DL>
<DD><p>Returns the current model.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#setModel(com.trolltech.qt.core.QAbstractItemModel)"><tt>setModel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="orientation()"><!-- --></A><H3>
orientation</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/Qt.Orientation.html" title="enum in com.trolltech.qt.core">Qt.Orientation</A> <B>orientation</B>()</PRE>
<DL>
<DD><p>Returns the orientation of the model.</p>
<p>If the orientation is Qt::Horizontal (the default), a widget is mapped to a column of a data model. The widget will be populated with the model's data from its mapped column and the row that <a href="QDataWidgetMapper.html#currentIndex()"><tt>currentIndex</tt></a> points at.</p>
<p>Use Qt::Horizontal for tabular data that looks like this:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td>1</td><td>Trolltech ASA</td><td>Oslo</td></tr>
<tr valign="top" class="even"><td>2</td><td>Trolltech Pty</td><td>Brisbane</td></tr>
<tr valign="top" class="odd"><td>3</td><td>Trolltech Inc</td><td>Silicon Valley</td></tr>
<tr valign="top" class="even"><td>4</td><td>Trolltech China</td><td>Beijing</td></tr>
<tr valign="top" class="odd"><td>5</td><td>Trolltech GmbH</td><td>Berlin</td></tr>
</table></p>
<p>If the orientation is set to Qt::Vertical, a widget is mapped to a row. Calling <a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a> will change the current column. The widget will be populates with the model's data from its mapped row and the column that <a href="QDataWidgetMapper.html#currentIndex()"><tt>currentIndex</tt></a> points at.</p>
<p>Use Qt::Vertical for tabular data that looks like this:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
<tr valign="top" class="even"><td>Trolltech ASA</td><td>Trolltech Pty</td><td>Trolltech Inc</td><td>Trolltech China</td><td>Trolltech GmbH</td></tr>
<tr valign="top" class="odd"><td>Oslo</td><td>Brisbane</td><td>Silicon Valley</td><td>Beijing</td><td>Berlin</td></tr>
</table></p>
<p>Changing the orientation clears all existing mappings.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)"><tt>setOrientation</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="removeMapping(com.trolltech.qt.gui.QWidget)"><!-- --></A><H3>
removeMapping</H3>
<PRE>
public final void <B>removeMapping</B>(<A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>&nbsp;widget)</PRE>
<DL>
<DD><p>Removes the mapping for the given <tt>widget</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#addMapping(com.trolltech.qt.gui.QWidget, int)"><tt>addMapping</tt></a>, 
<a href="QDataWidgetMapper.html#clearMapping()"><tt>clearMapping</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="revert()"><!-- --></A><H3>
revert</H3>
<PRE>
public final void <B>revert</B>()</PRE>
<DL>
<DD><p>Repopulates all widgets with the current data of the model. All unsubmitted changes will be lost.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#submit()"><tt>submit</tt></a>, 
<a href="QDataWidgetMapper.html#setSubmitPolicy(com.trolltech.qt.gui.QDataWidgetMapper.SubmitPolicy)"><tt>setSubmitPolicy</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="rootIndex()"><!-- --></A><H3>
rootIndex</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A> <B>rootIndex</B>()</PRE>
<DL>
<DD><p>Returns the current root index.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#setRootIndex(com.trolltech.qt.core.QModelIndex)"><tt>setRootIndex</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setCurrentModelIndex(com.trolltech.qt.core.QModelIndex)"><!-- --></A><H3>
setCurrentModelIndex</H3>
<PRE>
public final void <B>setCurrentModelIndex</B>(<A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A>&nbsp;index)</PRE>
<DL>
<DD><p>Sets the current index to the row of the <tt>index</tt> if the orientation is horizontal (the default), otherwise to the column of the <tt>index</tt>.</p>
<p>Calls <a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a> internally. This convenience slot can be connected to the signal currentRowChanged() or currentColumnChanged() of another view's <a href="QItemSelectionModel.html">selection model</tt></a>.</p>
<p>The following example illustrates how to update all widgets with new data whenever the selection of a <a href="QTableView.html"><tt>QTableView</tt></a> named <tt>myTableView</tt> changes:</p>
<pre>    QDataWidgetMapper *mapper = new QDataWidgetMapper();
    connect(myTableView-&gt;selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)),
            mapper, SLOT(setCurrentModelIndex(QModelIndex)));</pre>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#currentIndex()"><tt>currentIndex</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setItemDelegate(com.trolltech.qt.gui.QAbstractItemDelegate)"><!-- --></A><H3>
setItemDelegate</H3>
<PRE>
public final void <B>setItemDelegate</B>(<A HREF="../../../../com/trolltech/qt/gui/QAbstractItemDelegate.html" title="class in com.trolltech.qt.gui">QAbstractItemDelegate</A>&nbsp;delegate)</PRE>
<DL>
<DD><p>Sets the item delegate to <tt>delegate</tt>. The delegate will be used to write data from the model into the widget and from the widget to the model, using QAbstractItemDelegate::setEditorData() and QAbstractItemDelegate::setModelData().</p>
<p>The delegate also decides when to apply data and when to change the editor, using QAbstractItemDelegate::commitData() and QAbstractItemDelegate::closeEditor().</p>
<p><b>Warning:</b> You should not share the same instance of a delegate between widget mappers or views. Doing so can cause incorrect or unintuitive editing behavior since each view connected to a given delegate may receive the closeEditor() signal, and attempt to access, modify or close an editor that has already been closed.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#itemDelegate()"><tt>itemDelegate</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setModel(com.trolltech.qt.core.QAbstractItemModel)"><!-- --></A><H3>
setModel</H3>
<PRE>
public final void <B>setModel</B>(<A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html" title="class in com.trolltech.qt.core">QAbstractItemModel</A>&nbsp;model)</PRE>
<DL>
<DD><p>Sets the current model to <tt>model</tt>. If another model was set, all mappings to that old model are cleared.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#model()"><tt>model</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setOrientation(com.trolltech.qt.core.Qt.Orientation)"><!-- --></A><H3>
setOrientation</H3>
<PRE>
public final void <B>setOrientation</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.Orientation.html" title="enum in com.trolltech.qt.core">Qt.Orientation</A>&nbsp;aOrientation)</PRE>
<DL>
<DD><p>Sets the orientation of the model to <tt>aOrientation</tt>.</p>
<p>If the orientation is Qt::Horizontal (the default), a widget is mapped to a column of a data model. The widget will be populated with the model's data from its mapped column and the row that <a href="QDataWidgetMapper.html#currentIndex()"><tt>currentIndex</tt></a> points at.</p>
<p>Use Qt::Horizontal for tabular data that looks like this:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td>1</td><td>Trolltech ASA</td><td>Oslo</td></tr>
<tr valign="top" class="even"><td>2</td><td>Trolltech Pty</td><td>Brisbane</td></tr>
<tr valign="top" class="odd"><td>3</td><td>Trolltech Inc</td><td>Silicon Valley</td></tr>
<tr valign="top" class="even"><td>4</td><td>Trolltech China</td><td>Beijing</td></tr>
<tr valign="top" class="odd"><td>5</td><td>Trolltech GmbH</td><td>Berlin</td></tr>
</table></p>
<p>If the orientation is set to Qt::Vertical, a widget is mapped to a row. Calling <a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a> will change the current column. The widget will be populates with the model's data from its mapped row and the column that <a href="QDataWidgetMapper.html#currentIndex()"><tt>currentIndex</tt></a> points at.</p>
<p>Use Qt::Vertical for tabular data that looks like this:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
<tr valign="top" class="even"><td>Trolltech ASA</td><td>Trolltech Pty</td><td>Trolltech Inc</td><td>Trolltech China</td><td>Trolltech GmbH</td></tr>
<tr valign="top" class="odd"><td>Oslo</td><td>Brisbane</td><td>Silicon Valley</td><td>Beijing</td><td>Berlin</td></tr>
</table></p>
<p>Changing the orientation clears all existing mappings.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#orientation()"><tt>orientation</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setRootIndex(com.trolltech.qt.core.QModelIndex)"><!-- --></A><H3>
setRootIndex</H3>
<PRE>
public final void <B>setRootIndex</B>(<A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A>&nbsp;index)</PRE>
<DL>
<DD><p>Sets the root item to <tt>index</tt>. This can be used to display a branch of a tree. Pass an invalid model index to display the top-most branch.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#rootIndex()"><tt>rootIndex</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setSubmitPolicy(com.trolltech.qt.gui.QDataWidgetMapper.SubmitPolicy)"><!-- --></A><H3>
setSubmitPolicy</H3>
<PRE>
public final void <B>setSubmitPolicy</B>(<A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.SubmitPolicy.html" title="enum in com.trolltech.qt.gui">QDataWidgetMapper.SubmitPolicy</A>&nbsp;policy)</PRE>
<DL>
<DD><p>Sets the current submit policy to <tt>policy</tt>.</p>
<p>Changing the current submit policy will revert all widgets to the current data from the model.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#submitPolicy()"><tt>submitPolicy</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="submit()"><!-- --></A><H3>
submit</H3>
<PRE>
public final boolean <B>submit</B>()</PRE>
<DL>
<DD><p>Submits all changes from the mapped widgets to the model.</p>
<p>For every mapped section, the item delegate reads the current value from the widget and sets it in the model. Finally, the model's submit() method is invoked.</p>
<p>Returns true if all the values were submitted, otherwise false.</p>
<p>Note: For database models, QSqlQueryModel::lastError() can be used to retrieve the last error.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#revert()"><tt>revert</tt></a>, 
<a href="QDataWidgetMapper.html#setSubmitPolicy(com.trolltech.qt.gui.QDataWidgetMapper.SubmitPolicy)"><tt>setSubmitPolicy</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="submitPolicy()"><!-- --></A><H3>
submitPolicy</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.SubmitPolicy.html" title="enum in com.trolltech.qt.gui">QDataWidgetMapper.SubmitPolicy</A> <B>submitPolicy</B>()</PRE>
<DL>
<DD><p>Returns the current submit policy.</p>
<p>Changing the current submit policy will revert all widgets to the current data from the model.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#setSubmitPolicy(com.trolltech.qt.gui.QDataWidgetMapper.SubmitPolicy)"><tt>setSubmitPolicy</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="toFirst()"><!-- --></A><H3>
toFirst</H3>
<PRE>
public final void <B>toFirst</B>()</PRE>
<DL>
<DD><p>Populates the widgets with data from the first row of the model if the orientation is horizontal (the default), otherwise with data from the first column.</p>
<p>This is equivalent to calling <tt>setCurrentIndex(0)</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#toLast()"><tt>toLast</tt></a>, 
<a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="toLast()"><!-- --></A><H3>
toLast</H3>
<PRE>
public final void <B>toLast</B>()</PRE>
<DL>
<DD><p>Populates the widgets with data from the last row of the model if the orientation is horizontal (the default), otherwise with data from the last column.</p>
<p>Calls <a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a> internally.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#toFirst()"><tt>toFirst</tt></a>, 
<a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="toNext()"><!-- --></A><H3>
toNext</H3>
<PRE>
public final void <B>toNext</B>()</PRE>
<DL>
<DD><p>Populates the widgets with data from the next row of the model if the orientation is horizontal (the default), otherwise with data from the next column.</p>
<p>Calls <a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a> internally. Does nothing if there is no next row in the model.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#toPrevious()"><tt>toPrevious</tt></a>, 
<a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="toPrevious()"><!-- --></A><H3>
toPrevious</H3>
<PRE>
public final void <B>toPrevious</B>()</PRE>
<DL>
<DD><p>Populates the widgets with data from the previous row of the model if the orientation is horizontal (the default), otherwise with data from the previous column.</p>
<p>Calls <a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a> internally. Does nothing if there is no previous row in the model.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#toNext()"><tt>toNext</tt></a>, 
<a href="QDataWidgetMapper.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setCurrentIndex(int)"><!-- --></A><H3>
setCurrentIndex</H3>
<PRE>
public void <B>setCurrentIndex</B>(int&nbsp;index)</PRE>
<DL>
<DD><p>Sets the current row or column to <tt>index</tt>.</p>
<p>The widgets are populated with with data from the row at <tt>index</tt> if the orientation is horizontal (the default), otherwise with data from the column at <tt>index</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDataWidgetMapper.html#currentIndex()"><tt>currentIndex</tt></a>, 
<a href="QDataWidgetMapper.html#setCurrentModelIndex(com.trolltech.qt.core.QModelIndex)"><tt>setCurrentModelIndex</tt></a>, 
<a href="QDataWidgetMapper.html#toFirst()"><tt>toFirst</tt></a>, 
<a href="QDataWidgetMapper.html#toNext()"><tt>toNext</tt></a>, 
<a href="QDataWidgetMapper.html#toPrevious()"><tt>toPrevious</tt></a>, 
<a href="QDataWidgetMapper.html#toLast()"><tt>toLast</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.html" title="class in com.trolltech.qt.gui">QDataWidgetMapper</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QDataWidgetMapper instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QCursor.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QDataWidgetMapper.SubmitPolicy.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QDataWidgetMapper.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QDataWidgetMapper.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>