Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1950

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

<class name="QCompleter" doc="/**
&lt;p&gt;The &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; class provides completions based on an item model.&lt;/p&gt;
&lt;p&gt;You can use &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; to provide auto completions in any Qt widget, such as &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QComboBox.html&quot;&gt;&lt;tt&gt;QComboBox&lt;/tt&gt;&lt;/a&gt;. When the user starts typing a word, &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; suggests possible ways of completing the word, based on a word list. The word list is provided as a &lt;a href=&quot;%2E%2E/core/QAbstractItemModel.html&quot;&gt;&lt;tt&gt;QAbstractItemModel&lt;/tt&gt;&lt;/a&gt;. (For simple applications, where the word list is static, you can pass a &lt;a href=&quot;%2E%2E/porting4.html#qstringlist&quot;&gt;&lt;tt&gt;QStringList&lt;/tt&gt;&lt;/a&gt; to &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt;'s constructor.)&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;#basic-usage&quot;&gt;Basic Usage&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#iterating-through-completions&quot;&gt;Iterating Through Completions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#the-completion-model&quot;&gt;The Completion Model&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#handling-tree-models&quot;&gt;Handling Tree Models&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a name=&quot;basic-usage&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Basic Usage&lt;/h3&gt;
&lt;p&gt;A &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; is used typically with a &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QComboBox.html&quot;&gt;&lt;tt&gt;QComboBox&lt;/tt&gt;&lt;/a&gt;. For example, here's how to provide auto completions from a simple word list in a &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;    QStringList wordList;
    wordList &amp;lt;&amp;lt; &amp;quot;alpha&amp;quot; &amp;lt;&amp;lt; &amp;quot;omega&amp;quot; &amp;lt;&amp;lt; &amp;quot;omicron&amp;quot; &amp;lt;&amp;lt; &amp;quot;zeta&amp;quot;;

    QLineEdit *lineEdit = new QLineEdit(this);

    QCompleter *completer = new QCompleter(wordList, this);
    completer-&amp;gt;setCaseSensitivity(Qt::CaseInsensitive);
    lineEdit-&amp;gt;setCompleter(completer);&lt;/pre&gt;
&lt;p&gt;A &lt;a href=&quot;QDirModel.html&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt; can be used to provide auto completion of file names. For example:&lt;/p&gt;
&lt;pre&gt;    QCompleter *completer = new QCompleter(this);
    completer-&amp;gt;setModel(new QDirModel(completer));
    lineEdit-&amp;gt;setCompleter(completer);&lt;/pre&gt;
&lt;p&gt;To set the model on which &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; should operate, call &lt;a href=&quot;QCompleter.html#setModel(com.trolltech.qt.core.QAbstractItemModel)&quot;&gt;&lt;tt&gt;setModel&lt;/tt&gt;&lt;/a&gt;. By default, &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; will attempt to match the &lt;a href=&quot;QCompleter.html#completionPrefix()&quot;&gt;completion prefix&lt;/tt&gt;&lt;/a&gt; (i.e&amp;#x2e;, the word that the user has started typing) against the Qt::EditRole data stored in column 0 in the model case sensitively. This can be changed using &lt;a href=&quot;QCompleter.html#setCompletionRole(int)&quot;&gt;&lt;tt&gt;setCompletionRole&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QCompleter.html#setCompletionColumn(int)&quot;&gt;&lt;tt&gt;setCompletionColumn&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QCompleter.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setCaseSensitivity&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the model is sorted on the column and role that are used for completion, you can call &lt;a href=&quot;QCompleter.html#setModelSorting(com.trolltech.qt.gui.QCompleter.ModelSorting)&quot;&gt;&lt;tt&gt;setModelSorting&lt;/tt&gt;&lt;/a&gt; with either QCompleter::CaseSensitivelySortedModel or QCompleter::CaseInsensitivelySortedModel as the argument. On large models, this can lead to significant performance improvements, because &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; can then use binary search instead of linear search.&lt;/p&gt;
&lt;p&gt;The model can be a &lt;a href=&quot;%2E%2E/core/QAbstractListModel.html&quot;&gt;list model&lt;/tt&gt;&lt;/a&gt;, a &lt;a href=&quot;QAbstractTableModel.html&quot;&gt;table model&lt;/tt&gt;&lt;/a&gt;, or a &lt;a href=&quot;%2E%2E/core/QAbstractItemModel.html&quot;&gt;tree model&lt;/tt&gt;&lt;/a&gt;. Completion on tree models is slightly more involved and is covered in the &lt;a href=&quot;QCompleter.html#handling-tree-models&quot;&gt;Handling Tree Models&lt;/tt&gt;&lt;/a&gt; section below.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QCompleter.html#completionMode()&quot;&gt;&lt;tt&gt;completionMode&lt;/tt&gt;&lt;/a&gt; determines the mode used to provide completions to the user.&lt;/p&gt;
&lt;a name=&quot;iterating-through-completions&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Iterating Through Completions&lt;/h3&gt;
&lt;p&gt;To retrieve a single candidate string, call &lt;a href=&quot;QCompleter.html#setCompletionPrefix(java.lang.String)&quot;&gt;&lt;tt&gt;setCompletionPrefix&lt;/tt&gt;&lt;/a&gt; with the text that needs to be completed and call &lt;a href=&quot;QCompleter.html#currentCompletion()&quot;&gt;&lt;tt&gt;currentCompletion&lt;/tt&gt;&lt;/a&gt;. You can iterate through the list of completions as below:&lt;/p&gt;
&lt;pre&gt;    for (int i = 0; completer-&amp;gt;setCurrentRow(i); i++)
        qDebug() &amp;lt;&amp;lt; completer-&amp;gt;currentCompletion() &amp;lt;&amp;lt; &amp;quot; is match number &amp;quot; &amp;lt;&amp;lt; i;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;QCompleter.html#completionCount()&quot;&gt;&lt;tt&gt;completionCount&lt;/tt&gt;&lt;/a&gt; returns the total number of completions for the current prefix. &lt;a href=&quot;QCompleter.html#completionCount()&quot;&gt;&lt;tt&gt;completionCount&lt;/tt&gt;&lt;/a&gt; should be avoided when possible, since it requires a scan of the entire model.&lt;/p&gt;
&lt;a name=&quot;the-completion-model&quot;&gt;&lt;/a&gt;
&lt;h3&gt;The Completion Model&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QCompleter.html#completionModel()&quot;&gt;&lt;tt&gt;completionModel&lt;/tt&gt;&lt;/a&gt; return a list model that contains all possible completions for the current completion prefix, in the order in which they appear in the model. This model can be used to display the current completions in a custom view. Calling &lt;a href=&quot;QCompleter.html#setCompletionPrefix(java.lang.String)&quot;&gt;&lt;tt&gt;setCompletionPrefix&lt;/tt&gt;&lt;/a&gt; automatically refreshes the completion model.&lt;/p&gt;
&lt;a name=&quot;handling-tree-models&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Handling Tree Models&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; can look for completions in tree models, assuming that any item (or sub-item or sub-sub-item) can be unambiguously represented as a string by specifying the path to the item. The completion is then performed one level at a time.&lt;/p&gt;
&lt;p&gt;Let's take the example of a user typing in a file system path. The model is a (hierarchical) &lt;a href=&quot;QDirModel.html&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt;. The completion occurs for every element in the path. For example, if the current text is &lt;tt&gt;C:\Wind&lt;/tt&gt;, &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; might suggest &lt;tt&gt;Windows&lt;/tt&gt; to complete the current path element. Similarly, if the current text is &lt;tt&gt;C:\Windows\Sy&lt;/tt&gt;, &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; might suggest &lt;tt&gt;System&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;For this kind of completion to work, &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; needs to be able to split the path into a list of strings that are matched at each level. For &lt;tt&gt;C:\Windows\Sy&lt;/tt&gt;, it needs to be split as &amp;quot;C:&amp;quot;, &amp;quot;Windows&amp;quot; and &amp;quot;Sy&amp;quot;. The default implementation of &lt;a href=&quot;QCompleter.html#splitPath(java.lang.String)&quot;&gt;&lt;tt&gt;splitPath&lt;/tt&gt;&lt;/a&gt;, splits the &lt;a href=&quot;QCompleter.html#completionPrefix()&quot;&gt;&lt;tt&gt;completionPrefix&lt;/tt&gt;&lt;/a&gt; using QDir::separator() if the model is a &lt;a href=&quot;QDirModel.html&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To provide completions, &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; needs to know the path from an index. This is provided by &lt;a href=&quot;QCompleter.html#pathFromIndex(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;pathFromIndex&lt;/tt&gt;&lt;/a&gt;. The default implementation of &lt;a href=&quot;QCompleter.html#pathFromIndex(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;pathFromIndex&lt;/tt&gt;&lt;/a&gt;, returns the data for the &lt;a href=&quot;QCompleter.html#completionRole()&quot;&gt;&lt;tt&gt;completionRole&lt;/tt&gt;&lt;/a&gt; for list models and the absolute file path if the mode is a &lt;a href=&quot;QDirModel.html&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/core/QAbstractItemModel.html&quot;&gt;&lt;tt&gt;QAbstractItemModel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QComboBox.html&quot;&gt;&lt;tt&gt;QComboBox&lt;/tt&gt;&lt;/a&gt;
@see Completer Example&lt;/tt&gt; */">
    <signal name="protected final void activatedIndex(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;This signal is sent when an item in the &lt;a href=&quot;QCompleter.html#popup()&quot;&gt;&lt;tt&gt;popup&lt;/tt&gt;&lt;/a&gt; is activated by the user. (by clicking or pressing return). The item's &lt;tt&gt;index&lt;/tt&gt; in the &lt;a href=&quot;QCompleter.html#completionModel()&quot;&gt;&lt;tt&gt;completionModel&lt;/tt&gt;&lt;/a&gt; is given.&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 index)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void activated(java.lang.String text)" doc="/**
&lt;p&gt;This signal is sent when an item in the &lt;a href=&quot;QCompleter.html#popup()&quot;&gt;&lt;tt&gt;popup&lt;/tt&gt;&lt;/a&gt; is activated by the user (by clicking or pressing return). The item's &lt;tt&gt;text&lt;/tt&gt; is given.&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(java.lang.String text)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void highlighted(java.lang.String text)" doc="/**
&lt;p&gt;This signal is sent when an item in the &lt;a href=&quot;QCompleter.html#popup()&quot;&gt;&lt;tt&gt;popup&lt;/tt&gt;&lt;/a&gt; is highlighted by the user. It is also sent if &lt;a href=&quot;QCompleter.html#complete(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;complete&lt;/tt&gt;&lt;/a&gt; is called with the &lt;a href=&quot;QCompleter.html#completionMode()&quot;&gt;&lt;tt&gt;completionMode&lt;/tt&gt;&lt;/a&gt; set to QCOmpleter::InlineCompletion. The item's &lt;tt&gt;text&lt;/tt&gt; is given.&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(java.lang.String text)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void highlightedIndex(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;This signal is sent when an item in the &lt;a href=&quot;QCompleter.html#popup()&quot;&gt;&lt;tt&gt;popup&lt;/tt&gt;&lt;/a&gt; is highlighted by the user. It is also sent if &lt;a href=&quot;QCompleter.html#complete(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;complete&lt;/tt&gt;&lt;/a&gt; is called with the &lt;a href=&quot;QCompleter.html#completionMode()&quot;&gt;&lt;tt&gt;completionMode&lt;/tt&gt;&lt;/a&gt; set to QCompleter::InlineCompletion. The item's &lt;tt&gt;index&lt;/tt&gt; in the &lt;a href=&quot;QCompleter.html#completionModel()&quot;&gt;&lt;tt&gt;completionModel&lt;/tt&gt;&lt;/a&gt; is given.&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 index)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QCompleter(java.util.List&lt;java.lang.String&gt; completions, com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; object with the given &lt;tt&gt;parent&lt;/tt&gt; that uses the specified &lt;tt&gt;completions&lt;/tt&gt; as a source of possible completions.&lt;/p&gt;
 */"/>
    <method name="public QCompleter(java.util.List&lt;java.lang.String&gt; completions)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;completions&lt;/tt&gt;, 0). */"/>
    <method name="public QCompleter(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a completer object with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QCompleter()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public QCompleter(com.trolltech.qt.core.QAbstractItemModel model, com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a completer object with the given &lt;tt&gt;parent&lt;/tt&gt; that provides completions from the specified &lt;tt&gt;model&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QCompleter(com.trolltech.qt.core.QAbstractItemModel model)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;model&lt;/tt&gt;, 0). */"/>
    <method name="public final com.trolltech.qt.core.Qt.CaseSensitivity caseSensitivity()" doc="/**
&lt;p&gt;Returns the case sensitivity of the matching.&lt;/p&gt;
&lt;p&gt;The default is Qt::CaseSensitive.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#completionColumn()&quot;&gt;&lt;tt&gt;completionColumn&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#completionRole()&quot;&gt;&lt;tt&gt;completionRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#modelSorting()&quot;&gt;&lt;tt&gt;modelSorting&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void complete(com.trolltech.qt.core.QRect rect)" doc="/**
&lt;p&gt;For QCompleter::PopupCompletion and QCompletion::UnfilteredPopupCompletion modes, calling this function displays the popup displaying the current completions. By default, if &lt;tt&gt;rect&lt;/tt&gt; is not specified, the popup is displayed on the bottom of the &lt;a href=&quot;QCompleter.html#widget()&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt;. If &lt;tt&gt;rect&lt;/tt&gt; is specified the popup is displayed on the left edge of the rectangle.&lt;/p&gt;
&lt;p&gt;For QCompleter::InlineCompletion mode, the &lt;a href=&quot;QCompleter.html#highlighted(java.lang.String)&quot;&gt;&lt;tt&gt;highlighted&lt;/tt&gt;&lt;/a&gt; signal is fired with the current completion.&lt;/p&gt;
 */"/>
    <method name="public final void complete()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QCompleter.html#complete(com.trolltech.qt.core.QRect)&quot;&gt;complete&lt;/tt&gt;&lt;/a&gt;(QRect()). */"/>
    <method name="public final int completionColumn()" doc="/**
&lt;p&gt;Returns the column in the model in which completions are searched for..&lt;/p&gt;
&lt;p&gt;If the &lt;a href=&quot;QCompleter.html#popup()&quot;&gt;&lt;tt&gt;popup&lt;/tt&gt;&lt;/a&gt; is a &lt;a href=&quot;QListView.html&quot;&gt;&lt;tt&gt;QListView&lt;/tt&gt;&lt;/a&gt;, it is automatically setup to display this column.&lt;/p&gt;
&lt;p&gt;By default, the match column is 0.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setCompletionColumn(int)&quot;&gt;&lt;tt&gt;setCompletionColumn&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#completionRole()&quot;&gt;&lt;tt&gt;completionRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#caseSensitivity()&quot;&gt;&lt;tt&gt;caseSensitivity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int completionCount()" doc="/**
&lt;p&gt;Returns the number of completions for the current prefix. For an unsorted model with a large number of items this can be expensive. Use &lt;a href=&quot;QCompleter.html#setCurrentRow(int)&quot;&gt;&lt;tt&gt;setCurrentRow&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QCompleter.html#currentCompletion()&quot;&gt;&lt;tt&gt;currentCompletion&lt;/tt&gt;&lt;/a&gt; to iterate through all the completions.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QCompleter.CompletionMode completionMode()" doc="/**
&lt;p&gt;Returns how the completions are provided to the user.&lt;/p&gt;
&lt;p&gt;The default value is QCompleter::PopupCompletion.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setCompletionMode(com.trolltech.qt.gui.QCompleter.CompletionMode)&quot;&gt;&lt;tt&gt;setCompletionMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QAbstractItemModel completionModel()" doc="/**
&lt;p&gt;Returns the completion model. The completion model is a read-only list model that contains all the possible matches for the current completion prefix. The completion model is auto-updated to reflect the current completions.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#completionPrefix()&quot;&gt;&lt;tt&gt;completionPrefix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#model()&quot;&gt;&lt;tt&gt;model&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String completionPrefix()" doc="/**
&lt;p&gt;Returns the completion prefix used to provide completions..&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QCompleter.html#completionModel()&quot;&gt;&lt;tt&gt;completionModel&lt;/tt&gt;&lt;/a&gt; is updated to reflect the list of possible matches for &lt;tt&gt;prefix&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setCompletionPrefix(java.lang.String)&quot;&gt;&lt;tt&gt;setCompletionPrefix&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int completionRole()" doc="/**
&lt;p&gt;Returns the item role to be used to query the contents of items for matching..&lt;/p&gt;
&lt;p&gt;The default role is Qt::EditRole.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setCompletionRole(int)&quot;&gt;&lt;tt&gt;setCompletionRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#completionColumn()&quot;&gt;&lt;tt&gt;completionColumn&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#caseSensitivity()&quot;&gt;&lt;tt&gt;caseSensitivity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String currentCompletion()" doc="/**
&lt;p&gt;Returns the current completion string. This includes the &lt;a href=&quot;QCompleter.html#completionPrefix()&quot;&gt;&lt;tt&gt;completionPrefix&lt;/tt&gt;&lt;/a&gt;. When used alongside &lt;a href=&quot;QCompleter.html#setCurrentRow(int)&quot;&gt;&lt;tt&gt;setCurrentRow&lt;/tt&gt;&lt;/a&gt;, it can be used to iterate through all the matches.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setCurrentRow(int)&quot;&gt;&lt;tt&gt;setCurrentRow&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#currentIndex()&quot;&gt;&lt;tt&gt;currentIndex&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QModelIndex currentIndex()" doc="/**
&lt;p&gt;Returns the model index of the current completion in the &lt;a href=&quot;QCompleter.html#completionModel()&quot;&gt;&lt;tt&gt;completionModel&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setCurrentRow(int)&quot;&gt;&lt;tt&gt;setCurrentRow&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#currentCompletion()&quot;&gt;&lt;tt&gt;currentCompletion&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#model()&quot;&gt;&lt;tt&gt;model&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int currentRow()" doc="/**
&lt;p&gt;Returns the current row.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setCurrentRow(int)&quot;&gt;&lt;tt&gt;setCurrentRow&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QAbstractItemModel model()" doc="/**
&lt;p&gt;Returns the model that provides completion strings.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setModel(com.trolltech.qt.core.QAbstractItemModel)&quot;&gt;&lt;tt&gt;setModel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#completionModel()&quot;&gt;&lt;tt&gt;completionModel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QCompleter.ModelSorting modelSorting()" doc="/**
&lt;p&gt;Returns the way the model is sorted.&lt;/p&gt;
&lt;p&gt;By default, no assumptions are made about the order of the items in the model that provides the completions.&lt;/p&gt;
&lt;p&gt;If the model's data for the &lt;a href=&quot;QCompleter.html#completionColumn()&quot;&gt;&lt;tt&gt;completionColumn&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QCompleter.html#completionRole()&quot;&gt;&lt;tt&gt;completionRole&lt;/tt&gt;&lt;/a&gt; is sorted in ascending order, you can set this property to &lt;a href=&quot;QCompleter.html#ModelSorting-enum&quot;&gt;&lt;tt&gt;CaseSensitivelySortedModel&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QCompleter.html#ModelSorting-enum&quot;&gt;&lt;tt&gt;CaseInsensitivelySortedModel&lt;/tt&gt;&lt;/a&gt;. On large models, this can lead to significant performance improvements because the completer object can then use a binary search algorithm instead of linear search algorithm.&lt;/p&gt;
&lt;p&gt;The sort order (i.e ascending or descending order) of the model is determined dynamically by inspecting the contents of the model.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; The performance improvements described above cannot take place when the completer's &lt;a href=&quot;QCompleter.html#caseSensitivity()&quot;&gt;&lt;tt&gt;caseSensitivity&lt;/tt&gt;&lt;/a&gt; is different to the case sensitivity used by the model's when sorting.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setModelSorting(com.trolltech.qt.gui.QCompleter.ModelSorting)&quot;&gt;&lt;tt&gt;setModelSorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QCompleter::ModelSorting&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAbstractItemView popup()" doc="/**
&lt;p&gt;Returns the popup used to display completions.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setPopup(com.trolltech.qt.gui.QAbstractItemView)&quot;&gt;&lt;tt&gt;setPopup&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity caseSensitivity)" doc="/**
&lt;p&gt;Sets the case sensitivity of the matching to &lt;tt&gt;caseSensitivity&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is Qt::CaseSensitive.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#caseSensitivity()&quot;&gt;&lt;tt&gt;caseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#completionColumn()&quot;&gt;&lt;tt&gt;completionColumn&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#completionRole()&quot;&gt;&lt;tt&gt;completionRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#modelSorting()&quot;&gt;&lt;tt&gt;modelSorting&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCompletionColumn(int column)" doc="/**
&lt;p&gt;Sets the column in the model in which completions are searched for. to &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the &lt;a href=&quot;QCompleter.html#popup()&quot;&gt;&lt;tt&gt;popup&lt;/tt&gt;&lt;/a&gt; is a &lt;a href=&quot;QListView.html&quot;&gt;&lt;tt&gt;QListView&lt;/tt&gt;&lt;/a&gt;, it is automatically setup to display this column.&lt;/p&gt;
&lt;p&gt;By default, the match column is 0.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#completionColumn()&quot;&gt;&lt;tt&gt;completionColumn&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#completionRole()&quot;&gt;&lt;tt&gt;completionRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#caseSensitivity()&quot;&gt;&lt;tt&gt;caseSensitivity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCompletionMode(com.trolltech.qt.gui.QCompleter.CompletionMode mode)" doc="/**
&lt;p&gt;Sets how the completions are provided to the user to &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is QCompleter::PopupCompletion.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#completionMode()&quot;&gt;&lt;tt&gt;completionMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCompletionPrefix(java.lang.String prefix)" doc="/**
&lt;p&gt;Sets the completion prefix used to provide completions. to &lt;tt&gt;prefix&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QCompleter.html#completionModel()&quot;&gt;&lt;tt&gt;completionModel&lt;/tt&gt;&lt;/a&gt; is updated to reflect the list of possible matches for &lt;tt&gt;prefix&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#completionPrefix()&quot;&gt;&lt;tt&gt;completionPrefix&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCompletionRole(int role)" doc="/**
&lt;p&gt;Sets the item role to be used to query the contents of items for matching. to &lt;tt&gt;role&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default role is Qt::EditRole.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#completionRole()&quot;&gt;&lt;tt&gt;completionRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#completionColumn()&quot;&gt;&lt;tt&gt;completionColumn&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#caseSensitivity()&quot;&gt;&lt;tt&gt;caseSensitivity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean setCurrentRow(int row)" doc="/**
&lt;p&gt;Sets the current row to the &lt;tt&gt;row&lt;/tt&gt; specified. Returns true if successful; otherwise returns false.&lt;/p&gt;
&lt;p&gt;This function may be used along with &lt;a href=&quot;QCompleter.html#currentCompletion()&quot;&gt;&lt;tt&gt;currentCompletion&lt;/tt&gt;&lt;/a&gt; to iterate through all the possible completions.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#currentRow()&quot;&gt;&lt;tt&gt;currentRow&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#currentCompletion()&quot;&gt;&lt;tt&gt;currentCompletion&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#completionCount()&quot;&gt;&lt;tt&gt;completionCount&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setModel(com.trolltech.qt.core.QAbstractItemModel c)" doc="/**
&lt;p&gt;Sets the model which provides completions to &lt;tt&gt;c&lt;/tt&gt;. The &lt;tt&gt;c&lt;/tt&gt; can be list model or a tree model. If a model has been already previously set and it has the &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; as its parent, it is deleted.&lt;/p&gt;
&lt;p&gt;For convenience, if &lt;tt&gt;c&lt;/tt&gt; is a &lt;a href=&quot;QDirModel.html&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; switches its &lt;a href=&quot;QCompleter.html#caseSensitivity()&quot;&gt;&lt;tt&gt;caseSensitivity&lt;/tt&gt;&lt;/a&gt; to Qt::CaseInsensitive on Windows and Qt::CaseSensitive on other platforms.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#completionModel()&quot;&gt;&lt;tt&gt;completionModel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#modelSorting()&quot;&gt;&lt;tt&gt;modelSorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#handling-tree-models&quot;&gt;Handling Tree Models&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setModelSorting(com.trolltech.qt.gui.QCompleter.ModelSorting sorting)" doc="/**
&lt;p&gt;Sets the way the model is sorted to &lt;tt&gt;sorting&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, no assumptions are made about the order of the items in the model that provides the completions.&lt;/p&gt;
&lt;p&gt;If the model's data for the &lt;a href=&quot;QCompleter.html#completionColumn()&quot;&gt;&lt;tt&gt;completionColumn&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QCompleter.html#completionRole()&quot;&gt;&lt;tt&gt;completionRole&lt;/tt&gt;&lt;/a&gt; is sorted in ascending order, you can set this property to &lt;a href=&quot;QCompleter.html#ModelSorting-enum&quot;&gt;&lt;tt&gt;CaseSensitivelySortedModel&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QCompleter.html#ModelSorting-enum&quot;&gt;&lt;tt&gt;CaseInsensitivelySortedModel&lt;/tt&gt;&lt;/a&gt;. On large models, this can lead to significant performance improvements because the completer object can then use a binary search algorithm instead of linear search algorithm.&lt;/p&gt;
&lt;p&gt;The sort order (i.e ascending or descending order) of the model is determined dynamically by inspecting the contents of the model.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; The performance improvements described above cannot take place when the completer's &lt;a href=&quot;QCompleter.html#caseSensitivity()&quot;&gt;&lt;tt&gt;caseSensitivity&lt;/tt&gt;&lt;/a&gt; is different to the case sensitivity used by the model's when sorting.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#modelSorting()&quot;&gt;&lt;tt&gt;modelSorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QCompleter::ModelSorting&lt;/tt&gt; */"/>
    <method name="public final void setPopup(com.trolltech.qt.gui.QAbstractItemView popup)" doc="/**
&lt;p&gt;Sets the popup used to display completions to &lt;tt&gt;popup&lt;/tt&gt;. &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; takes ownership of the view.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QListView.html&quot;&gt;&lt;tt&gt;QListView&lt;/tt&gt;&lt;/a&gt; is automatically created when the &lt;a href=&quot;QCompleter.html#completionMode()&quot;&gt;&lt;tt&gt;completionMode&lt;/tt&gt;&lt;/a&gt; is set to QCompleter::PopupCompletion or QCompleter::UnfilteredPopupCompletion. The default popup displays the &lt;a href=&quot;QCompleter.html#completionColumn()&quot;&gt;&lt;tt&gt;completionColumn&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Ensure that this function is called before the view settings are modified. This is required since view's properties may require that a model has been set on the view (for example, hiding columns in the view requires a model to be set on the view).&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#popup()&quot;&gt;&lt;tt&gt;popup&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWidget(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Sets the widget for which completion are provided for to &lt;tt&gt;widget&lt;/tt&gt;. This function is automatically called when a &lt;a href=&quot;QCompleter.html#QCompleter(com.trolltech.qt.core.QAbstractItemModel, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QCompleter&lt;/tt&gt;&lt;/a&gt; is set on a &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt; using QLineEdit::setCompleter() or on a &lt;a href=&quot;QComboBox.html&quot;&gt;&lt;tt&gt;QComboBox&lt;/tt&gt;&lt;/a&gt; using QComboBox::setCompleter(). The widget needs to be set explicitly when providing completions for custom widgets.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#widget()&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#setModel(com.trolltech.qt.core.QAbstractItemModel)&quot;&gt;&lt;tt&gt;setModel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#setPopup(com.trolltech.qt.gui.QAbstractItemView)&quot;&gt;&lt;tt&gt;setPopup&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWrapAround(boolean wrap)" doc="/**
&lt;p&gt;Sets the completions wrap around when navigating through items to &lt;tt&gt;wrap&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is true.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#wrapAround()&quot;&gt;&lt;tt&gt;wrapAround&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget widget()" doc="/**
&lt;p&gt;Returns the widget for which the completer object is providing completions.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean wrapAround()" doc="/**
&lt;p&gt;Returns the completions wrap around when navigating through items.&lt;/p&gt;
&lt;p&gt;The default is true.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setWrapAround(boolean)&quot;&gt;&lt;tt&gt;setWrapAround&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean eventFilter(com.trolltech.qt.core.QObject o, com.trolltech.qt.core.QEvent e)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public java.lang.String pathFromIndex(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Returns the path for the given &lt;tt&gt;index&lt;/tt&gt;. The completer object uses this to obtain the completion text from the underlying model.&lt;/p&gt;
&lt;p&gt;The default implementation returns the edit role&lt;/tt&gt; of the item for list models. It returns the absolute file path if the model is a &lt;a href=&quot;QDirModel.html&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#splitPath(java.lang.String)&quot;&gt;&lt;tt&gt;splitPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public java.util.List&lt;java.lang.String&gt; splitPath(java.lang.String path)" doc="/**
&lt;p&gt;Splits the given &lt;tt&gt;path&lt;/tt&gt; into strings that are used to match at each level in the &lt;a href=&quot;QCompleter.html#model()&quot;&gt;&lt;tt&gt;model&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The default implementation of &lt;a href=&quot;QCompleter.html#splitPath(java.lang.String)&quot;&gt;&lt;tt&gt;splitPath&lt;/tt&gt;&lt;/a&gt; splits a file system path based on QDir::separator() when the sourceModel() is a &lt;a href=&quot;QDirModel.html&quot;&gt;&lt;tt&gt;QDirModel&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When used with list models, the first item in the returned list is used for matching.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#pathFromIndex(com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;pathFromIndex&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCompleter.html#handling-tree-models&quot;&gt;Handling Tree Models&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="ModelSorting" doc="/**
&lt;p&gt;This enum specifies how the items in the model are sorted.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setModelSorting(com.trolltech.qt.gui.QCompleter.ModelSorting)&quot;&gt;&lt;tt&gt;setModelSorting&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="UnsortedModel" doc="/**
&lt;p&gt;The model is unsorted.&lt;/p&gt;
 */"/>
        <enum-value name="CaseSensitivelySortedModel" doc="/**
&lt;p&gt;The model is sorted case sensitively.&lt;/p&gt;
 */"/>
        <enum-value name="CaseInsensitivelySortedModel" doc="/**
&lt;p&gt;The model is sorted case insensitively.&lt;/p&gt;
 */"/>
</enum>
    <enum name="CompletionMode" doc="/**
&lt;p&gt;This enum specifies how completions are provided to the user.&lt;/p&gt;

@see &lt;a href=&quot;QCompleter.html#setCompletionMode(com.trolltech.qt.gui.QCompleter.CompletionMode)&quot;&gt;&lt;tt&gt;setCompletionMode&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="PopupCompletion" doc="/**
&lt;p&gt;Current completions are displayed in a popup window.&lt;/p&gt;
 */"/>
        <enum-value name="UnfilteredPopupCompletion" doc="/**
&lt;p&gt;All possible completions are displayed in a popup window with the most likely suggestion selected.&lt;/p&gt;
 */"/>
        <enum-value name="InlineCompletion" doc="/**
&lt;p&gt;Completions appear inline (as selected text).&lt;/p&gt;
 */"/>
</enum>
</class>