java.lang.Object
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QItemSelectionRange>
,Collection<QItemSelectionRange>
,List<QItemSelectionRange>
public class QItemSelection extends QList<QItemSelectionRange> implements Cloneable
Manages information about selected items in a model
Java wrapper for Qt class QItemSelection
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QItemSelection()
QItemSelection(QModelIndex topLeft, QModelIndex bottomRight)
protected
QItemSelection(QtObject.QPrivateConstructor p)
Constructor for internal use only.QItemSelection(Collection<QItemSelectionRange> other)
-
Method Summary
Modifier and Type Method Description QItemSelection
clone()
boolean
contains(QModelIndex index)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
hashCode()
QList<QModelIndex>
indexes()
void
merge(QItemSelection other, QItemSelectionModel.SelectionFlag... command)
Overloaded function formerge(io.qt.core.QItemSelection, io.qt.core.QItemSelectionModel.SelectionFlags)
.void
merge(QItemSelection other, QItemSelectionModel.SelectionFlags command)
void
select(QModelIndex topLeft, QModelIndex bottomRight)
static QItemSelection
split(QItemSelectionRange range, QItemSelectionRange other)
Methods inherited from class io.qt.core.QList
add, add, append, append, at, begin, capacity, clear, contains, count, count, createVariantList, end, endsWith, fill, fill, first, get, indexOf, indexOf, insert, insert, isEmpty, last, lastIndexOf, lastIndexOf, length, mid, mid, move, of, prepend, readFrom, remove, remove, removeAll, removeAt, removeAtIndex, removeFirst, removeLast, removeOne, replace, reserve, resize, set, size, squeeze, startsWith, swapItemsAt, takeAt, takeFirst, takeLast, value, value, writeTo
Methods inherited from class io.qt.internal.QtJambiListObject
addAll, addAll, listIterator, listIterator, remove, retainAll, subList
Methods inherited from class io.qt.internal.QtJambiCollectionObject
containsAll, descendingIterator, iterator, removeAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.List
containsAll, iterator, removeAll, replaceAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
QItemSelection
-
QItemSelection
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QItemSelection
-
QItemSelection
public QItemSelection()
-
-
Method Details
-
contains
-
indexes
-
merge
@QtUninvokable public final void merge(QItemSelection other, QItemSelectionModel.SelectionFlag... command)Overloaded function for
merge(io.qt.core.QItemSelection, io.qt.core.QItemSelectionModel.SelectionFlags)
. -
merge
@QtUninvokable public final void merge(QItemSelection other, QItemSelectionModel.SelectionFlags command) -
select
-
split
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation.- Specified by:
equals
in interfaceCollection<QItemSelectionRange>
- Specified by:
equals
in interfaceList<QItemSelectionRange>
- Overrides:
equals
in classQList<QItemSelectionRange>
- Parameters:
other
- The object with which to compare- Returns:
- true if the native resources of the two objects are one and the same.
-
hashCode
- Specified by:
hashCode
in interfaceCollection<QItemSelectionRange>
- Specified by:
hashCode
in interfaceList<QItemSelectionRange>
- Overrides:
hashCode
in classQList<QItemSelectionRange>
-
clone
- Overrides:
clone
in classQList<QItemSelectionRange>
-