<class name="QSortFilterProxyModel" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; class provides support for sorting and filtering data passed between another model and a view.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; can be used for sorting items, filtering out items, or both. The model transforms the structure of a source model by mapping the model indexes it supplies to new indexes, corresponding to different locations, for views to use. This approach allows a given source model to be restructured as far as views are concerned without requiring any transformations on the underlying data, and without duplicating the data in memory.&lt;/p&gt;
&lt;p&gt;Let's assume that we want to sort and filter the items provided by a custom model. The code to set up the model and the view, &lt;i&gt;without&lt;/i&gt; sorting and filtering, would look like this:&lt;/p&gt;
&lt;pre&gt;            QTreeView *treeView = new QTreeView;
            MyItemModel *model = new MyItemModel(this);

            treeView-&amp;gt;setModel(model);&lt;/pre&gt;
&lt;p&gt;To add sorting and filtering support to &lt;tt&gt;MyItemModel&lt;/tt&gt;, we need to create a &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt;, call &lt;a href=&quot;QSortFilterProxyModel.html#setSourceModel(com.trolltech.qt.core.QAbstractItemModel)&quot;&gt;&lt;tt&gt;setSourceModel&lt;/tt&gt;&lt;/a&gt; with the &lt;tt&gt;MyItemModel&lt;/tt&gt; as argument, and install the &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; on the view:&lt;/p&gt;
&lt;pre&gt;            QTreeView *treeView = new QTreeView;
            MyItemModel *sourceModel = new MyItemModel(this);
            QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(this);

            proxyModel-&amp;gt;setSourceModel(sourceModel);
            treeView-&amp;gt;setModel(proxyModel);&lt;/pre&gt;
&lt;p&gt;At this point, neither sorting nor filtering is enabled; the original data is displayed in the view. Any changes made through the &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; are applied to the original model.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; acts as a wrapper for the original model. If you need to convert source &lt;tt&gt;QModelIndex&lt;/tt&gt;es to sorted/filtered model indexes or vice versa, use &lt;a href=&quot;QSortFilterProxyModel.html#mapToSource(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;mapToSource&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSortFilterProxyModel.html#mapFromSource(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;mapFromSource&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSortFilterProxyModel.html#mapSelectionToSource(com.trolltech.qt.gui.QItemSelection)&quot;&gt;&lt;tt&gt;mapSelectionToSource&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QSortFilterProxyModel.html#mapSelectionFromSource(com.trolltech.qt.gui.QItemSelection)&quot;&gt;&lt;tt&gt;mapSelectionFromSource&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; By default, the model does not dynamically re-sort and re-filter data whenever the original model changes. This behavior can be changed by setting the &lt;a href=&quot;QSortFilterProxyModel.html#dynamicSortFilter()&quot;&gt;&lt;tt&gt;dynamicSortFilter&lt;/tt&gt;&lt;/a&gt; property.&lt;/p&gt;
&lt;p&gt;The Basic Sort/Filter Model&lt;/tt&gt; and Custom Sort/Filter Model&lt;/tt&gt; examples illustrate how to use &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; to perform basic sorting and filtering and how to subclass it to implement custom behavior.&lt;/p&gt;
&lt;a name=&quot;sorting&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Sorting&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QTableView.html&quot;&gt;&lt;tt&gt;QTableView&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTreeView.html&quot;&gt;&lt;tt&gt;QTreeView&lt;/tt&gt;&lt;/a&gt; have a sortingEnabled property that controls whether the user can sort the view by clicking the view's horizontal header. For example:&lt;/p&gt;
&lt;pre&gt;            treeView-&amp;gt;setSortingEnabled(true);&lt;/pre&gt;
&lt;p&gt;When this feature is on (the default is off), clicking on a header section sorts the items according to that column. By clicking repeatedly, the user can alternate between ascending and descending order.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qsortfilterproxymodel-sorting.png&quot; alt=&quot;A sorted QTreeView&quot; /&gt;&lt;/p&gt;&lt;p&gt;Behind the scene, the view calls the &lt;a href=&quot;QSortFilterProxyModel.html#sort(int, com.trolltech.qt.core.Qt.SortOrder)&quot;&gt;&lt;tt&gt;sort&lt;/tt&gt;&lt;/a&gt; virtual function on the model to reorder the data in the model. To make your data sortable, you can either implement &lt;a href=&quot;QSortFilterProxyModel.html#sort(int, com.trolltech.qt.core.Qt.SortOrder)&quot;&gt;&lt;tt&gt;sort&lt;/tt&gt;&lt;/a&gt; in your model, or you use a &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; to wrap your model -- &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; provides a generic &lt;a href=&quot;QSortFilterProxyModel.html#sort(int, com.trolltech.qt.core.Qt.SortOrder)&quot;&gt;&lt;tt&gt;sort&lt;/tt&gt;&lt;/a&gt; reimplementation that operates on the &lt;a href=&quot;QSortFilterProxyModel.html#sortRole()&quot;&gt;&lt;tt&gt;sortRole&lt;/tt&gt;&lt;/a&gt; (Qt::DisplayRole by default) of the items and that understands several data types, including &lt;tt&gt;int&lt;/tt&gt;, &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;%2E%2E/core/QDateTime.html&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt;. For hierarchical models, sorting is applied recursively to all child items. String comparisons are case sensitive by default; this can be changed by setting the &lt;a href=&quot;QSortFilterProxyModel.html#sortCaseSensitivity()&quot;&gt;&lt;tt&gt;sortCaseSensitivity&lt;/tt&gt;&lt;/a&gt; property.&lt;/p&gt;
&lt;p&gt;Custom sorting behavior is achieved by subclassing &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; and reimplementing &lt;a href=&quot;QSortFilterProxyModel.html#lessThan(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;lessThan&lt;/tt&gt;&lt;/a&gt;, which is used to compare items. For example:&lt;/p&gt;
&lt;pre&gt;    bool MySortFilterProxyModel::lessThan(const QModelIndex &amp;amp;left,
                                          const QModelIndex &amp;amp;right) const
    {
        QVariant leftData = sourceModel()-&amp;gt;data(left);
        QVariant rightData = sourceModel()-&amp;gt;data(right);

        if (leftData.type() == QVariant::DateTime) {
            return leftData.toDateTime() &amp;lt; rightData.toDateTime();
        } else {
            QRegExp *emailPattern = new QRegExp(&amp;quot;([\\w\\.]*@[\\w\\.]*)&amp;quot;);

            QString leftString = leftData.toString();
            if(left.column() == 1 &amp;amp;&amp;amp; emailPattern-&amp;gt;indexIn(leftString) != -1)
                leftString = emailPattern-&amp;gt;cap(1);

            QString rightString = rightData.toString();
            if(right.column() == 1 &amp;amp;&amp;amp; emailPattern-&amp;gt;indexIn(rightString) != -1)
                rightString = emailPattern-&amp;gt;cap(1);

            return QString::localeAwareCompare(leftString, rightString) &amp;lt; 0;
        }
    }&lt;/pre&gt;
&lt;p&gt;(This code snippet comes from the Custom Sort/Filter Model&lt;/tt&gt; example.)&lt;/p&gt;
&lt;p&gt;An alternative approach to sorting is to disable sorting on the view and to impose a certain order to the user. This is done by explicitly calling &lt;a href=&quot;QSortFilterProxyModel.html#sort(int, com.trolltech.qt.core.Qt.SortOrder)&quot;&gt;&lt;tt&gt;sort&lt;/tt&gt;&lt;/a&gt; with the desired column and order as arguments on the &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; (or on the original model if it implements &lt;a href=&quot;QSortFilterProxyModel.html#sort(int, com.trolltech.qt.core.Qt.SortOrder)&quot;&gt;&lt;tt&gt;sort&lt;/tt&gt;&lt;/a&gt;). For example:&lt;/p&gt;
&lt;pre&gt;            proxyModel-&amp;gt;sort(2, Qt::AscendingOrder);&lt;/pre&gt;
&lt;a name=&quot;filtering&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Filtering&lt;/h3&gt;
&lt;p&gt;In addition to sorting, &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; can be used to hide items that don't match a certain filter. The filter is specified using a &lt;a href=&quot;%2E%2E/core/QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; object and is applied to the &lt;a href=&quot;QSortFilterProxyModel.html#filterRole()&quot;&gt;&lt;tt&gt;filterRole&lt;/tt&gt;&lt;/a&gt; (Qt::DisplayRole by default) of each item, for a given column. The &lt;a href=&quot;%2E%2E/core/QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; object can be used to match a regular expression, a wildcard pattern, or a fixed string. For example:&lt;/p&gt;
&lt;pre&gt;            proxyModel-&amp;gt;setFilterRegExp(QRegExp(&amp;quot;.png&amp;quot;, Qt::CaseInsensitive,
                                                QRegExp::FixedString));
            proxyModel-&amp;gt;setFilterKeyColumn(1);&lt;/pre&gt;
&lt;p&gt;For hierarchical models, the filter is applied recursively to all children. If a parent item doesn't match the filter, none of its children will be shown.&lt;/p&gt;
&lt;p&gt;A common use case is to let the user specify the filter regexp, wildcard pattern, or fixed string in a &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt; and to connect the textChanged() signal to &lt;a href=&quot;QSortFilterProxyModel.html#setFilterRegExp(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterRegExp&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSortFilterProxyModel.html#setFilterWildcard(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterWildcard&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QSortFilterProxyModel.html#setFilterFixedString(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterFixedString&lt;/tt&gt;&lt;/a&gt; to reapply the filter.&lt;/p&gt;
&lt;p&gt;Custom filtering behavior can be achieved by reimplementing the &lt;a href=&quot;QSortFilterProxyModel.html#filterAcceptsRow(int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;filterAcceptsRow&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSortFilterProxyModel.html#filterAcceptsColumn(int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;filterAcceptsColumn&lt;/tt&gt;&lt;/a&gt; functions. For example, the following implementation ignores the &lt;a href=&quot;QSortFilterProxyModel.html#filterKeyColumn()&quot;&gt;&lt;tt&gt;filterKeyColumn&lt;/tt&gt;&lt;/a&gt; property and performs filtering on columns 0, 1, and 2:&lt;/p&gt;
&lt;pre&gt;    bool MySortFilterProxyModel::filterAcceptsRow(int sourceRow,
            const QModelIndex &amp;amp;sourceParent) const
    {
        QModelIndex index0 = sourceModel()-&amp;gt;index(sourceRow, 0, sourceParent);
        QModelIndex index1 = sourceModel()-&amp;gt;index(sourceRow, 1, sourceParent);
        QModelIndex index2 = sourceModel()-&amp;gt;index(sourceRow, 2, sourceParent);

        return (sourceModel()-&amp;gt;data(index0).toString().contains(filterRegExp())
                || sourceModel()-&amp;gt;data(index1).toString().contains(filterRegExp()))
               &amp;amp;&amp;amp; dateInRange(sourceModel()-&amp;gt;data(index2).toDate());
    }&lt;/pre&gt;
&lt;p&gt;(This code snippet comes from the Custom Sort/Filter Model&lt;/tt&gt; example.)&lt;/p&gt;
&lt;p&gt;If you are working with large amounts of filtering and have to invoke &lt;a href=&quot;QSortFilterProxyModel.html#invalidateFilter()&quot;&gt;&lt;tt&gt;invalidateFilter&lt;/tt&gt;&lt;/a&gt; repeatedly, using &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt; may be more efficient, depending on the implementation of your model. However, note that &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt; returns the proxy model to its original state, losing selection information, and will cause the proxy model to be repopulated.&lt;/p&gt;
&lt;a name=&quot;subclassing&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Subclassing&lt;/h3&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; Some general guidelines for subclassing models are available in the &lt;a href=&quot;%2E%2E/model-view-model-subclassing.html&quot;&gt;Model Subclassing Reference&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Since &lt;a href=&quot;QAbstractProxyModel.html#QAbstractProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAbstractProxyModel&lt;/tt&gt;&lt;/a&gt; and its subclasses are derived from &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#QAbstractItemModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAbstractItemModel&lt;/tt&gt;&lt;/a&gt;, much of the same advice about subclassing normal models also applies to proxy models. In addition, it is worth noting that many of the default implementations of functions in this class are written so that they call the equivalent functions in the relevant source model. This simple proxying mechanism may need to be overridden for source models with more complex behavior; for example, if the source model provides a custom &lt;a href=&quot;QSortFilterProxyModel.html#hasChildren(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;hasChildren&lt;/tt&gt;&lt;/a&gt; implementation, you should also provide one in the proxy model.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractProxyModel.html#QAbstractProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAbstractProxyModel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#QAbstractItemModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAbstractItemModel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/model-view-programming.html&quot;&gt;Model/View Programming&lt;/tt&gt;&lt;/a&gt;
@see Basic Sort/Filter Model Example&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-customfilter.html&quot;&gt;Custom Sort/Filter Model Example&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void dataChanged(com.trolltech.qt.core.QModelIndex topLeft, com.trolltech.qt.core.QModelIndex bottomRight)" doc="/**
&lt;p&gt;This signal is emitted whenever the data in an existing item changes. The affected items are those between &lt;tt&gt;topLeft&lt;/tt&gt; and &lt;tt&gt;bottomRight&lt;/tt&gt; inclusive (of the same parent).&lt;/p&gt;
&lt;p&gt;Note that this signal must be emitted explicitly when reimplementing the &lt;a href=&quot;QSortFilterProxyModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QModelIndex topLeft, com.trolltech.qt.core.QModelIndex bottomRight)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QModelIndex topLeft)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QSortFilterProxyModel.html#headerDataChanged(com.trolltech.qt.core.Qt.Orientation, int, int)&quot;&gt;&lt;tt&gt;headerDataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSortFilterProxyModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSortFilterProxyModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void headerDataChanged(com.trolltech.qt.core.Qt.Orientation orientation, int first, int last)" doc="/**
&lt;p&gt;This signal is emitted whenever a header is changed. The &lt;tt&gt;orientation&lt;/tt&gt; indicates whether the horizontal or vertical header has changed. The sections in the header from the &lt;tt&gt;first&lt;/tt&gt; to the &lt;tt&gt;last&lt;/tt&gt; need to be updated.&lt;/p&gt;
&lt;p&gt;Note that this signal must be emitted explicitly when reimplementing the &lt;a href=&quot;QSortFilterProxyModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setHeaderData&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;If you are changing the number of columns or rows you don't need to emit this signal, but use the begin/end functions.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.Qt.Orientation orientation, int first, int last)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.Qt.Orientation orientation, int first)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.Qt.Orientation orientation)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QSortFilterProxyModel.html#headerData(int, com.trolltech.qt.core.Qt.Orientation, int)&quot;&gt;&lt;tt&gt;headerData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSortFilterProxyModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setHeaderData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSortFilterProxyModel.html#dataChanged(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;dataChanged&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void layoutAboutToBeChanged()" doc="/**
&lt;p&gt;This signal is emitted just before the layout of a model is changed. Components connected to this signal use it to adapt to changes in the model's layout.&lt;/p&gt;
&lt;p&gt;Subclasses should update any persistent model indexes after emitting &lt;a href=&quot;QSortFilterProxyModel.html#layoutAboutToBeChanged()&quot;&gt;&lt;tt&gt;layoutAboutToBeChanged&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QSortFilterProxyModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#changePersistentIndex(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;changePersistentIndex&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void layoutChanged()" doc="/**
&lt;p&gt;This signal is emitted whenever the layout of items exposed by the model has changed; for example, when the model has been sorted. When this signal is received by a view, it should update the layout of items to reflect this change.&lt;/p&gt;
&lt;p&gt;When subclassing &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#QAbstractItemModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAbstractItemModel&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QAbstractProxyModel.html#QAbstractProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAbstractProxyModel&lt;/tt&gt;&lt;/a&gt;, ensure that you emit &lt;a href=&quot;QSortFilterProxyModel.html#layoutAboutToBeChanged()&quot;&gt;&lt;tt&gt;layoutAboutToBeChanged&lt;/tt&gt;&lt;/a&gt; before changing the order of items or altering the structure of the data you expose to views, and emit &lt;a href=&quot;QSortFilterProxyModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt; after changing the layout.&lt;/p&gt;
&lt;p&gt;Subclasses should update any persistent model indexes before emitting &lt;a href=&quot;QSortFilterProxyModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QSortFilterProxyModel.html#layoutAboutToBeChanged()&quot;&gt;&lt;tt&gt;layoutAboutToBeChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSortFilterProxyModel.html#dataChanged(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;dataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSortFilterProxyModel.html#headerDataChanged(com.trolltech.qt.core.Qt.Orientation, int, int)&quot;&gt;&lt;tt&gt;headerDataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#changePersistentIndex(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;changePersistentIndex&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QSortFilterProxyModel(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a sorting filter model with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QSortFilterProxyModel()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final boolean dynamicSortFilter()" doc="/**
&lt;p&gt;Returns whether the proxy model is dynamically sorted and filtered whenever the contents of the source model change.&lt;/p&gt;
&lt;p&gt;The default value is false.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setDynamicSortFilter(boolean)&quot;&gt;&lt;tt&gt;setDynamicSortFilter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.CaseSensitivity filterCaseSensitivity()" doc="/**
&lt;p&gt;Returns the case sensitivity of the &lt;a href=&quot;%2E%2E/core/QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; pattern used to filter the contents of the source model.&lt;/p&gt;
&lt;p&gt;By default, the filter is case sensitive.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setFilterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterRegExp()&quot;&gt;&lt;tt&gt;filterRegExp&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#sortCaseSensitivity()&quot;&gt;&lt;tt&gt;sortCaseSensitivity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int filterKeyColumn()" doc="/**
&lt;p&gt;Returns the column where the key used to filter the contents of the source model is read from..&lt;/p&gt;
&lt;p&gt;The default value is 0. If the value is -1, the keys will be read from all columns.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterKeyColumn(int)&quot;&gt;&lt;tt&gt;setFilterKeyColumn&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRegExp filterRegExp()" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;%2E%2E/core/QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; used to filter the contents of the source model.&lt;/p&gt;
&lt;p&gt;Setting this property overwrites the current &lt;a href=&quot;QSortFilterProxyModel.html#filterCaseSensitivity()&quot;&gt;&lt;tt&gt;filterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;. By default, the &lt;a href=&quot;%2E%2E/core/QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; is an empty string matching all contents.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterRegExp(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterRegExp&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterCaseSensitivity()&quot;&gt;&lt;tt&gt;filterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterWildcard(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterWildcard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterFixedString(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterFixedString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int filterRole()" doc="/**
&lt;p&gt;Returns the item role that is used to query the source model's data when filtering items.&lt;/p&gt;
&lt;p&gt;The default value is Qt::DisplayRole.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterRole(int)&quot;&gt;&lt;tt&gt;setFilterRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterAcceptsRow(int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;filterAcceptsRow&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void invalidate()" doc="/**
&lt;p&gt;Invalidates the current sorting and filtering.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#invalidateFilter()&quot;&gt;&lt;tt&gt;invalidateFilter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final void invalidateFilter()" doc="/**
&lt;p&gt;Invalidates the current filtering.&lt;/p&gt;
&lt;p&gt;This function should be called if you are implementing custom filtering (e.g&amp;#x2e; &lt;a href=&quot;QSortFilterProxyModel.html#filterAcceptsRow(int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;filterAcceptsRow&lt;/tt&gt;&lt;/a&gt;), and your filter parameters have changed.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#invalidate()&quot;&gt;&lt;tt&gt;invalidate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isSortLocaleAware()" doc="/**
&lt;p&gt;Returns the local aware setting used for comparing strings when sorting.&lt;/p&gt;
&lt;p&gt;By default, sorting is not local aware.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#sortCaseSensitivity()&quot;&gt;&lt;tt&gt;sortCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#lessThan(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;lessThan&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDynamicSortFilter(boolean enable)" doc="/**
&lt;p&gt;Sets whether the proxy model is dynamically sorted and filtered whenever the contents of the source model change to &lt;tt&gt;enable&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is false.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#dynamicSortFilter()&quot;&gt;&lt;tt&gt;dynamicSortFilter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFilterCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity cs)" doc="/**
&lt;p&gt;Sets the case sensitivity of the &lt;a href=&quot;%2E%2E/core/QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; pattern used to filter the contents of the source model to &lt;tt&gt;cs&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, the filter is case sensitive.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#filterCaseSensitivity()&quot;&gt;&lt;tt&gt;filterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterRegExp()&quot;&gt;&lt;tt&gt;filterRegExp&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#sortCaseSensitivity()&quot;&gt;&lt;tt&gt;sortCaseSensitivity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFilterFixedString(java.lang.String pattern)" doc="/**
&lt;p&gt;Sets the fixed string used to filter the contents of the source model to the given &lt;tt&gt;pattern&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setFilterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterRegExp(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterRegExp&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterWildcard(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterWildcard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterRegExp()&quot;&gt;&lt;tt&gt;filterRegExp&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFilterKeyColumn(int column)" doc="/**
&lt;p&gt;Sets the column where the key used to filter the contents of the source model is read from. to &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is 0. If the value is -1, the keys will be read from all columns.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#filterKeyColumn()&quot;&gt;&lt;tt&gt;filterKeyColumn&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFilterRegExp(com.trolltech.qt.core.QRegExp regExp)" doc="/**
&lt;p&gt;Sets the &lt;a href=&quot;%2E%2E/core/QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; used to filter the contents of the source model to &lt;tt&gt;regExp&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Setting this property overwrites the current &lt;a href=&quot;QSortFilterProxyModel.html#filterCaseSensitivity()&quot;&gt;&lt;tt&gt;filterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;. By default, the &lt;a href=&quot;%2E%2E/core/QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; is an empty string matching all contents.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#filterCaseSensitivity()&quot;&gt;&lt;tt&gt;filterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterWildcard(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterWildcard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterFixedString(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterFixedString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFilterRegExp(java.lang.String pattern)" doc="/**
&lt;p&gt;Sets the &lt;a href=&quot;%2E%2E/core/QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; used to filter the contents of the source model to &lt;tt&gt;pattern&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Setting this property overwrites the current &lt;a href=&quot;QSortFilterProxyModel.html#filterCaseSensitivity()&quot;&gt;&lt;tt&gt;filterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;. By default, the &lt;a href=&quot;%2E%2E/core/QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; is an empty string matching all contents.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#filterRegExp()&quot;&gt;&lt;tt&gt;filterRegExp&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterCaseSensitivity()&quot;&gt;&lt;tt&gt;filterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterWildcard(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterWildcard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterFixedString(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterFixedString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFilterRole(int role)" doc="/**
&lt;p&gt;Sets the item role that is used to query the source model's data when filtering items to &lt;tt&gt;role&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is Qt::DisplayRole.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#filterRole()&quot;&gt;&lt;tt&gt;filterRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterAcceptsRow(int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;filterAcceptsRow&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFilterWildcard(java.lang.String pattern)" doc="/**
&lt;p&gt;Sets the wildcard expression used to filter the contents of the source model to the given &lt;tt&gt;pattern&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setFilterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterRegExp(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterRegExp&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#setFilterFixedString(java.lang.String)&quot;&gt;&lt;tt&gt;setFilterFixedString&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterRegExp()&quot;&gt;&lt;tt&gt;filterRegExp&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSortCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity cs)" doc="/**
&lt;p&gt;Sets the case sensitivity setting used for comparing strings when sorting to &lt;tt&gt;cs&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, sorting is case sensitive.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#sortCaseSensitivity()&quot;&gt;&lt;tt&gt;sortCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterCaseSensitivity()&quot;&gt;&lt;tt&gt;filterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#lessThan(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;lessThan&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSortLocaleAware(boolean on)" doc="/**
&lt;p&gt;Sets the local aware setting used for comparing strings when sorting to &lt;tt&gt;on&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, sorting is not local aware.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#isSortLocaleAware()&quot;&gt;&lt;tt&gt;isSortLocaleAware&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#sortCaseSensitivity()&quot;&gt;&lt;tt&gt;sortCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#lessThan(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;lessThan&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSortRole(int role)" doc="/**
&lt;p&gt;Sets the item role that is used to query the source model's data when sorting items to &lt;tt&gt;role&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is Qt::DisplayRole.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#sortRole()&quot;&gt;&lt;tt&gt;sortRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#lessThan(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;lessThan&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.CaseSensitivity sortCaseSensitivity()" doc="/**
&lt;p&gt;Returns the case sensitivity setting used for comparing strings when sorting.&lt;/p&gt;
&lt;p&gt;By default, sorting is case sensitive.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setSortCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setSortCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterCaseSensitivity()&quot;&gt;&lt;tt&gt;filterCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#lessThan(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;lessThan&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int sortRole()" doc="/**
&lt;p&gt;Returns the item role that is used to query the source model's data when sorting items.&lt;/p&gt;
&lt;p&gt;The default value is Qt::DisplayRole.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setSortRole(int)&quot;&gt;&lt;tt&gt;setSortRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#lessThan(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;lessThan&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.core.QModelIndex buddy(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean canFetchMore(com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public int columnCount(com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final int columnCount()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#columnCount(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;columnCount&lt;/tt&gt;&lt;/a&gt;(QModelIndex()). */"/>
    <method name="public java.lang.Object data(com.trolltech.qt.core.QModelIndex index, int role)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.Object data(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#data(com.trolltech.qt.core.QModelIndex, int)&quot;&gt;data&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;index&lt;/tt&gt;, Qt::DisplayRole). */"/>
    <method name="public boolean dropMimeData(com.trolltech.qt.gui.QMimeData data, com.trolltech.qt.core.Qt.DropAction action, int row, int column, com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void fetchMore(com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected boolean filterAcceptsColumn(int source_column, com.trolltech.qt.core.QModelIndex source_parent)" doc="/**
&lt;p&gt;Returns true if the value in the item in the column indicated by the given &lt;tt&gt;source_column&lt;/tt&gt; and &lt;tt&gt;source_parent&lt;/tt&gt; should be included in the model.&lt;/p&gt;
&lt;p&gt;The default implementation returns true.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#filterAcceptsRow(int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;filterAcceptsRow&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected boolean filterAcceptsRow(int source_row, com.trolltech.qt.core.QModelIndex source_parent)" doc="/**
&lt;p&gt;Returns true if the value in the item in the row indicated by the given &lt;tt&gt;source_row&lt;/tt&gt; and &lt;tt&gt;source_parent&lt;/tt&gt; should be included in the model.&lt;/p&gt;
&lt;p&gt;By default, the Qt::DisplayRole is used to determine if the row should be accepted or not. This can be changed by setting the &lt;a href=&quot;QSortFilterProxyModel.html#filterRole()&quot;&gt;&lt;tt&gt;filterRole&lt;/tt&gt;&lt;/a&gt; property.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#filterRole()&quot;&gt;&lt;tt&gt;filterRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterKeyColumn()&quot;&gt;&lt;tt&gt;filterKeyColumn&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterRegExp()&quot;&gt;&lt;tt&gt;filterRegExp&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#filterAcceptsColumn(int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;filterAcceptsColumn&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.core.Qt.ItemFlags flags(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean hasChildren(com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final boolean hasChildren()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#hasChildren(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;hasChildren&lt;/tt&gt;&lt;/a&gt;(QModelIndex()). */"/>
    <method name="public java.lang.Object headerData(int section, com.trolltech.qt.core.Qt.Orientation orientation, int role)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setHeaderData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.Object headerData(int section, com.trolltech.qt.core.Qt.Orientation orientation)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#headerData(int, com.trolltech.qt.core.Qt.Orientation, int)&quot;&gt;&lt;tt&gt;headerData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;section&lt;/tt&gt;, &lt;tt&gt;orientation&lt;/tt&gt;, Qt::EditRole). */"/>
    <method name="public com.trolltech.qt.core.QModelIndex index(int row, int column, com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QModelIndex index(int row, int column)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#index(int, int, com.trolltech.qt.core.QModelIndex)&quot;&gt;index&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;row&lt;/tt&gt;, &lt;tt&gt;column&lt;/tt&gt;, QModelIndex()). */"/>
    <method name="public boolean insertColumns(int column, int count, com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final boolean insertColumns(int column, int count)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#insertColumns(int, int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;insertColumns&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;column&lt;/tt&gt;, &lt;tt&gt;count&lt;/tt&gt;, QModelIndex()). */"/>
    <method name="public boolean insertRows(int row, int count, com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final boolean insertRows(int row, int count)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#insertRows(int, int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;insertRows&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;row&lt;/tt&gt;, &lt;tt&gt;count&lt;/tt&gt;, QModelIndex()). */"/>
    <method name="protected boolean lessThan(com.trolltech.qt.core.QModelIndex left, com.trolltech.qt.core.QModelIndex right)" doc="/**
&lt;p&gt;Returns true if the value of the item referred to by the given index &lt;tt&gt;left&lt;/tt&gt; is less than the value of the item referred to by the given index &lt;tt&gt;right&lt;/tt&gt;, otherwise returns false.&lt;/p&gt;
&lt;p&gt;This function is used as the &amp;lt; operator when sorting, and handles the following &lt;a href=&quot;%2E%2E/porting4.html#qvariant&quot;&gt;&lt;tt&gt;QVariant&lt;/tt&gt;&lt;/a&gt; types:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;QVariant::Int&lt;/li&gt;
&lt;li&gt;QVariant::UInt&lt;/li&gt;
&lt;li&gt;QVariant::LongLong&lt;/li&gt;
&lt;li&gt;QVariant::ULongLong&lt;/li&gt;
&lt;li&gt;QVariant::Double&lt;/li&gt;
&lt;li&gt;QVariant::Char&lt;/li&gt;
&lt;li&gt;QVariant::Date&lt;/li&gt;
&lt;li&gt;QVariant::Time&lt;/li&gt;
&lt;li&gt;QVariant::DateTime&lt;/li&gt;
&lt;li&gt;QVariant::String&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Any other type will be converted to a &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; using QVariant::toString().&lt;/p&gt;
&lt;p&gt;Comparison of &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;s is case sensitive by default; this can be changed using the &lt;a href=&quot;QSortFilterProxyModel.html#sortCaseSensitivity()&quot;&gt;&lt;tt&gt;sortCaseSensitivity&lt;/tt&gt;&lt;/a&gt; property.&lt;/p&gt;
&lt;p&gt;By default, the Qt::DisplayRole associated with the &lt;tt&gt;QModelIndex&lt;/tt&gt;es is used for comparisons. This can be changed by setting the &lt;a href=&quot;QSortFilterProxyModel.html#sortRole()&quot;&gt;&lt;tt&gt;sortRole&lt;/tt&gt;&lt;/a&gt; property.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#sortRole()&quot;&gt;&lt;tt&gt;sortRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#sortCaseSensitivity()&quot;&gt;&lt;tt&gt;sortCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#dynamicSortFilter()&quot;&gt;&lt;tt&gt;dynamicSortFilter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.core.QModelIndex mapFromSource(com.trolltech.qt.core.QModelIndex sourceIndex)" doc="/**
&lt;p&gt;Returns the model index in the &lt;a href=&quot;QSortFilterProxyModel.html#QSortFilterProxyModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QSortFilterProxyModel&lt;/tt&gt;&lt;/a&gt; given the &lt;tt&gt;sourceIndex&lt;/tt&gt; from the source model.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#mapToSource(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;mapToSource&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.gui.QItemSelection mapSelectionFromSource(com.trolltech.qt.gui.QItemSelection sourceSelection)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.gui.QItemSelection mapSelectionToSource(com.trolltech.qt.gui.QItemSelection proxySelection)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QModelIndex mapToSource(com.trolltech.qt.core.QModelIndex proxyIndex)" doc="/**
&lt;p&gt;Returns the source model index corresponding to the given &lt;tt&gt;proxyIndex&lt;/tt&gt; from the sorting filter model.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#mapFromSource(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;mapFromSource&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public java.util.List&lt;com.trolltech.qt.core.QModelIndex&gt; match(com.trolltech.qt.core.QModelIndex start, int role, java.lang.Object value, int hits, com.trolltech.qt.core.Qt.MatchFlags flags)" doc="/**
&lt;p&gt;Returns a list of indexes for the items in the column of the &lt;tt&gt;start&lt;/tt&gt; index where the data stored under the given &lt;tt&gt;role&lt;/tt&gt; matches the specified &lt;tt&gt;value&lt;/tt&gt;. The way the search is performed is defined by the &lt;tt&gt;flags&lt;/tt&gt; given. The list that is returned may be empty.&lt;/p&gt;
&lt;p&gt;The search starts from the &lt;tt&gt;start&lt;/tt&gt; index, and continues until the number of matching data items equals &lt;tt&gt;hits&lt;/tt&gt;, the search reaches the last row, or the search reaches &lt;tt&gt;start&lt;/tt&gt; again, depending on whether &lt;tt&gt;MatchWrap&lt;/tt&gt; is specified in &lt;tt&gt;flags&lt;/tt&gt;. If you want to search for all matching items, use &lt;tt&gt;hits&lt;/tt&gt; = -1.&lt;/p&gt;
&lt;p&gt;By default, this function will perform a wrapping, string-based comparison on all items, searching for items that begin with the search term specified by &lt;tt&gt;value&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; The default implementation of this function only searches columns, This function can be reimplemented to include other search behavior.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QModelIndex&gt; match(com.trolltech.qt.core.QModelIndex start, int role, java.lang.Object value, int hits)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#match(com.trolltech.qt.core.QModelIndex, int, java.lang.Object, int, com.trolltech.qt.core.Qt.MatchFlags)&quot;&gt;match&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;start&lt;/tt&gt;, &lt;tt&gt;role&lt;/tt&gt;, &lt;tt&gt;value&lt;/tt&gt;, &lt;tt&gt;hits&lt;/tt&gt;, Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap )). */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QModelIndex&gt; match(com.trolltech.qt.core.QModelIndex start, int role, java.lang.Object value)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#match(com.trolltech.qt.core.QModelIndex, int, java.lang.Object, int, com.trolltech.qt.core.Qt.MatchFlags)&quot;&gt;match&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;start&lt;/tt&gt;, &lt;tt&gt;role&lt;/tt&gt;, &lt;tt&gt;value&lt;/tt&gt;, 1, Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap )). */"/>
    <method name="public com.trolltech.qt.gui.QMimeData mimeData(java.util.List&lt;com.trolltech.qt.core.QModelIndex&gt; indexes)" doc="/**
&lt;p&gt;Returns an object that contains serialized items of data corresponding to the list of &lt;tt&gt;indexes&lt;/tt&gt; specified. The formats used to describe the encoded data is obtained from the &lt;a href=&quot;QSortFilterProxyModel.html#mimeTypes()&quot;&gt;&lt;tt&gt;mimeTypes&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;If the list of indexes is empty, or there are no supported MIME types, 0 is returned rather than a serialized empty list.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#mimeTypes()&quot;&gt;&lt;tt&gt;mimeTypes&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSortFilterProxyModel.html#dropMimeData(com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.DropAction, int, int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;dropMimeData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public java.util.List&lt;java.lang.String&gt; mimeTypes()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QModelIndex parent(com.trolltech.qt.core.QModelIndex child)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean removeColumns(int column, int count, com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final boolean removeColumns(int column, int count)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#removeColumns(int, int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;removeColumns&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;column&lt;/tt&gt;, &lt;tt&gt;count&lt;/tt&gt;, QModelIndex()). */"/>
    <method name="public boolean removeRows(int row, int count, com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final boolean removeRows(int row, int count)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#removeRows(int, int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;removeRows&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;row&lt;/tt&gt;, &lt;tt&gt;count&lt;/tt&gt;, QModelIndex()). */"/>
    <method name="public int rowCount(com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final int rowCount()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#rowCount(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;rowCount&lt;/tt&gt;&lt;/a&gt;(QModelIndex()). */"/>
    <method name="public boolean setData(com.trolltech.qt.core.QModelIndex index, java.lang.Object value, int role)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#data(com.trolltech.qt.core.QModelIndex, int)&quot;&gt;&lt;tt&gt;data&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean setData(com.trolltech.qt.core.QModelIndex index, java.lang.Object value)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;index&lt;/tt&gt;, &lt;tt&gt;value&lt;/tt&gt;, Qt::EditRole). */"/>
    <method name="public boolean setHeaderData(int section, com.trolltech.qt.core.Qt.Orientation orientation, java.lang.Object value, int role)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QSortFilterProxyModel.html#headerData(int, com.trolltech.qt.core.Qt.Orientation, int)&quot;&gt;&lt;tt&gt;headerData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean setHeaderData(int section, com.trolltech.qt.core.Qt.Orientation orientation, java.lang.Object value)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setHeaderData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;section&lt;/tt&gt;, &lt;tt&gt;orientation&lt;/tt&gt;, &lt;tt&gt;value&lt;/tt&gt;, Qt::EditRole). */"/>
    <method name="public void setSourceModel(com.trolltech.qt.core.QAbstractItemModel sourceModel)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void sort(int column, com.trolltech.qt.core.Qt.SortOrder order)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final void sort(int column)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSortFilterProxyModel.html#sort(int, com.trolltech.qt.core.Qt.SortOrder)&quot;&gt;sort&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;column&lt;/tt&gt;, Qt::AscendingOrder). */"/>
    <method name="public com.trolltech.qt.core.QSize span(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.Qt.DropActions supportedDropActions()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
</class>
