io.qt.widgets.QListWidget Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Item-based list widget
* Java wrapper for Qt class QListWidget
*/
public class QListWidget extends io.qt.widgets.QListView
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QListWidget.class);
/**
* See QListWidget:: currentItemChanged(QListWidgetItem*, QListWidgetItem*)
*/
public final @NonNull Signal2 currentItemChanged = new Signal2<>();
/**
* See QListWidget:: currentRowChanged(int)
*/
@QtPropertyNotify(name="currentRow")
public final @NonNull Signal1 currentRowChanged = new Signal1<>();
/**
* See QListWidget:: currentTextChanged(QString)
*/
public final @NonNull Signal1 currentTextChanged = new Signal1<>();
/**
* See QListWidget:: itemActivated(QListWidgetItem*)
*/
public final @NonNull Signal1 itemActivated = new Signal1<>();
/**
* See QListWidget:: itemChanged(QListWidgetItem*)
*/
public final @NonNull Signal1 itemChanged = new Signal1<>();
/**
* See QListWidget:: itemClicked(QListWidgetItem*)
*/
public final @NonNull Signal1 itemClicked = new Signal1<>();
/**
* See QListWidget:: itemDoubleClicked(QListWidgetItem*)
*/
public final @NonNull Signal1 itemDoubleClicked = new Signal1<>();
/**
* See QListWidget:: itemEntered(QListWidgetItem*)
*/
public final @NonNull Signal1 itemEntered = new Signal1<>();
/**
* See QListWidget:: itemPressed(QListWidgetItem*)
*/
public final @NonNull Signal1 itemPressed = new Signal1<>();
/**
* See QListWidget:: itemSelectionChanged()
*/
public final @NonNull Signal0 itemSelectionChanged = new Signal0();
/**
* See QListWidget:: QListWidget(QWidget*)
*/
public QListWidget(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QListWidget instance, io.qt.widgets.QWidget parent);
/**
* See QListWidget:: addItem(QListWidgetItem*)
*/
@QtUninvokable
public final void addItem(io.qt.widgets.@Nullable QListWidgetItem item){
addItem_native_QListWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@QtUninvokable
private native void addItem_native_QListWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QListWidget:: addItem(QString)
*/
@QtUninvokable
public final void addItem(java.lang.@NonNull String label){
addItem_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), label);
}
@QtUninvokable
private native void addItem_native_cref_QString(long __this__nativeId, java.lang.String label);
/**
* See QListWidget:: addItems(QStringList)
*/
@QtUninvokable
public final void addItems(java.util.@NonNull Collection labels){
addItems_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), labels);
}
@QtUninvokable
private native void addItems_native_cref_QStringList(long __this__nativeId, java.util.Collection labels);
/**
*
*/
public final void clear(){
clear_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void clear_native(long __this__nativeId);
/**
* See QListWidget:: closePersistentEditor(QListWidgetItem*)
*/
@QtUninvokable
public final void closePersistentEditor(io.qt.widgets.@Nullable QListWidgetItem item){
closePersistentEditor_native_QListWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native void closePersistentEditor_native_QListWidgetItem_ptr(long __this__nativeId, long item);
/**
*
*/
@QtPropertyReader(name="count")
@QtUninvokable
public final int count(){
return count_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int count_native_constfct(long __this__nativeId);
/**
* See QListWidget:: currentItem()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QListWidgetItem currentItem(){
return currentItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QListWidgetItem currentItem_native_constfct(long __this__nativeId);
/**
* See QListWidget:: currentRow()const
*/
@QtPropertyReader(name="currentRow")
@QtPropertyUser
@QtUninvokable
public final int currentRow(){
return currentRow_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int currentRow_native_constfct(long __this__nativeId);
/**
* See QListWidget:: editItem(QListWidgetItem*)
*/
@QtUninvokable
public final void editItem(io.qt.widgets.@Nullable QListWidgetItem item){
editItem_native_QListWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native void editItem_native_QListWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QListWidget:: findItems(QString, Qt::MatchFlags)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList findItems(java.lang.@NonNull String text, io.qt.core.Qt.@NonNull MatchFlags flags){
return findItems_native_cref_QString_Qt_MatchFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), text, flags.value());
}
@QtUninvokable
private native io.qt.core.QList findItems_native_cref_QString_Qt_MatchFlags_constfct(long __this__nativeId, java.lang.String text, int flags);
/**
* See QListWidget:: indexFromItem(const QListWidgetItem*)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QModelIndex indexFromItem(io.qt.widgets.@Nullable QListWidgetItem item){
return indexFromItem_native_const_QListWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native io.qt.core.QModelIndex indexFromItem_native_const_QListWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QListWidget:: insertItem(int, QListWidgetItem*)
*/
@QtUninvokable
public final void insertItem(int row, io.qt.widgets.@Nullable QListWidgetItem item){
insertItem_native_int_QListWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@QtUninvokable
private native void insertItem_native_int_QListWidgetItem_ptr(long __this__nativeId, int row, long item);
/**
* See QListWidget:: insertItem(int, QString)
*/
@QtUninvokable
public final void insertItem(int row, java.lang.@NonNull String label){
insertItem_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), row, label);
}
@QtUninvokable
private native void insertItem_native_int_cref_QString(long __this__nativeId, int row, java.lang.String label);
/**
* See QListWidget:: insertItems(int, QStringList)
*/
@QtUninvokable
public final void insertItems(int row, java.util.@NonNull Collection labels){
insertItems_native_int_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), row, labels);
}
@QtUninvokable
private native void insertItems_native_int_cref_QStringList(long __this__nativeId, int row, java.util.Collection labels);
/**
* See QListWidget:: isPersistentEditorOpen(QListWidgetItem*)const
*/
@QtUninvokable
public final boolean isPersistentEditorOpen(io.qt.widgets.@Nullable QListWidgetItem item){
return isPersistentEditorOpen_native_QListWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native boolean isPersistentEditorOpen_native_QListWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QListWidget:: isSortingEnabled()const
*/
@QtPropertyReader(name="sortingEnabled")
@QtUninvokable
public final boolean isSortingEnabled(){
return isSortingEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSortingEnabled_native_constfct(long __this__nativeId);
/**
* See QListWidget:: item(int)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QListWidgetItem item(int row){
return item_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row);
}
@QtUninvokable
private native io.qt.widgets.QListWidgetItem item_native_int_constfct(long __this__nativeId, int row);
/**
* See QListWidget:: itemAt(QPoint)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QListWidgetItem itemAt(io.qt.core.@NonNull QPoint p){
return itemAt_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@QtUninvokable
private native io.qt.widgets.QListWidgetItem itemAt_native_cref_QPoint_constfct(long __this__nativeId, long p);
/**
* See QListWidget:: itemAt(int, int)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QListWidgetItem itemAt(int x, int y){
return itemAt_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), x, y);
}
@QtUninvokable
private native io.qt.widgets.QListWidgetItem itemAt_native_int_int_constfct(long __this__nativeId, int x, int y);
/**
* See QListWidget:: itemFromIndex(QModelIndex)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QListWidgetItem itemFromIndex(io.qt.core.@NonNull QModelIndex index){
return itemFromIndex_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.widgets.QListWidgetItem itemFromIndex_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QListWidget:: itemWidget(QListWidgetItem*)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget itemWidget(io.qt.widgets.@Nullable QListWidgetItem item){
return itemWidget_native_QListWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native io.qt.widgets.QWidget itemWidget_native_QListWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QListWidget:: items(const QMimeData*)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList items(io.qt.core.@Nullable QMimeData data){
return items_native_const_QMimeData_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data));
}
@QtUninvokable
private native io.qt.core.QList items_native_const_QMimeData_ptr_constfct(long __this__nativeId, long data);
/**
* See QListWidget:: openPersistentEditor(QListWidgetItem*)
*/
@QtUninvokable
public final void openPersistentEditor(io.qt.widgets.@Nullable QListWidgetItem item){
openPersistentEditor_native_QListWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native void openPersistentEditor_native_QListWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QListWidget:: removeItemWidget(QListWidgetItem*)
*/
@QtUninvokable
public final void removeItemWidget(io.qt.widgets.@Nullable QListWidgetItem item){
removeItemWidget_native_QListWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native void removeItemWidget_native_QListWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QListWidget:: row(const QListWidgetItem*)const
*/
@QtUninvokable
public final int row(io.qt.widgets.@Nullable QListWidgetItem item){
return row_native_const_QListWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native int row_native_const_QListWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QListWidget:: scrollToItem(const QListWidgetItem*, QAbstractItemView::ScrollHint)
*/
public final void scrollToItem(io.qt.widgets.@Nullable QListWidgetItem item, io.qt.widgets.QAbstractItemView.@NonNull ScrollHint hint){
scrollToItem_native_const_QListWidgetItem_ptr_QAbstractItemView_ScrollHint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), hint.value());
}
private native void scrollToItem_native_const_QListWidgetItem_ptr_QAbstractItemView_ScrollHint(long __this__nativeId, long item, int hint);
/**
* See QListWidget:: selectedItems()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList selectedItems(){
return selectedItems_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList selectedItems_native_constfct(long __this__nativeId);
/**
* See QListWidget:: setCurrentItem(QListWidgetItem*)
*/
@QtUninvokable
public final void setCurrentItem(io.qt.widgets.@Nullable QListWidgetItem item){
setCurrentItem_native_QListWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native void setCurrentItem_native_QListWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QListWidget:: setCurrentItem(QListWidgetItem*, QItemSelectionModel::SelectionFlags)
*/
@QtUninvokable
public final void setCurrentItem(io.qt.widgets.@Nullable QListWidgetItem item, io.qt.core.QItemSelectionModel.@NonNull SelectionFlags command){
setCurrentItem_native_QListWidgetItem_ptr_QItemSelectionModel_SelectionFlags(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), command.value());
}
@QtUninvokable
private native void setCurrentItem_native_QListWidgetItem_ptr_QItemSelectionModel_SelectionFlags(long __this__nativeId, long item, int command);
/**
* See QListWidget:: setCurrentRow(int)
*/
@QtPropertyWriter(name="currentRow")
@QtUninvokable
public final void setCurrentRow(int row){
setCurrentRow_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), row);
}
@QtUninvokable
private native void setCurrentRow_native_int(long __this__nativeId, int row);
/**
* See QListWidget:: setCurrentRow(int, QItemSelectionModel::SelectionFlags)
*/
@QtPropertyWriter(name="currentRow")
@QtUninvokable
public final void setCurrentRow(int row, io.qt.core.QItemSelectionModel.@NonNull SelectionFlags command){
setCurrentRow_native_int_QItemSelectionModel_SelectionFlags(QtJambi_LibraryUtilities.internal.nativeId(this), row, command.value());
}
@QtUninvokable
private native void setCurrentRow_native_int_QItemSelectionModel_SelectionFlags(long __this__nativeId, int row, int command);
/**
* See QListWidget:: setItemWidget(QListWidgetItem*, QWidget*)
*/
@QtUninvokable
public final void setItemWidget(io.qt.widgets.@Nullable QListWidgetItem item, io.qt.widgets.@Nullable QWidget widget){
setItemWidget_native_QListWidgetItem_ptr_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void setItemWidget_native_QListWidgetItem_ptr_QWidget_ptr(long __this__nativeId, long item, long widget);
/**
* Function has no implementation because its native counterpart is private.
*/
@Deprecated
@QtUninvokable
@Override
public final void setModel(io.qt.core.@Nullable QAbstractItemModel model) throws QNoImplementationException {
throw new QNoImplementationException();
}
/**
* See QListWidget:: setSortingEnabled(bool)
*/
@QtPropertyWriter(name="sortingEnabled")
@QtUninvokable
public final void setSortingEnabled(boolean enable){
setSortingEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable);
}
@QtUninvokable
private native void setSortingEnabled_native_bool(long __this__nativeId, boolean enable);
/**
* See QListWidget:: sortItems(Qt::SortOrder)
*/
@QtUninvokable
public final void sortItems(io.qt.core.Qt.@NonNull SortOrder order){
sortItems_native_Qt_SortOrder(QtJambi_LibraryUtilities.internal.nativeId(this), order.value());
}
@QtUninvokable
private native void sortItems_native_Qt_SortOrder(long __this__nativeId, int order);
/**
* See QListWidget:: takeItem(int)
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QListWidgetItem takeItem(int row){
return takeItem_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), row);
}
@QtUninvokable
private native io.qt.widgets.QListWidgetItem takeItem_native_int(long __this__nativeId, int row);
/**
* See QListWidget:: visualItemRect(const QListWidgetItem*)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QRect visualItemRect(io.qt.widgets.@Nullable QListWidgetItem item){
return visualItemRect_native_const_QListWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native io.qt.core.QRect visualItemRect_native_const_QListWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QWidget:: dropEvent(QDropEvent*)
*/
@QtUninvokable
@Override
protected void dropEvent(io.qt.gui.@Nullable QDropEvent event){
dropEvent_native_QDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void dropEvent_native_QDropEvent_ptr(long __this__nativeId, long event);
/**
* See QListWidget:: dropMimeData(int, const QMimeData*, Qt::DropAction)
*/
@QtUninvokable
protected boolean dropMimeData(int index, io.qt.core.@Nullable QMimeData data, io.qt.core.Qt.@NonNull DropAction action){
return dropMimeData_native_int_const_QMimeData_ptr_Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(data), action.value());
}
@QtUninvokable
private native boolean dropMimeData_native_int_const_QMimeData_ptr_Qt_DropAction(long __this__nativeId, int index, long data, int action);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent e){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QListWidget:: mimeData(QList<QListWidgetItem*>)const
*/
@QtUninvokable
protected io.qt.core.@Nullable QMimeData mimeData(java.util.@NonNull Collection extends io.qt.widgets.@Nullable QListWidgetItem> items){
return mimeData_native_cref_QList_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), items);
}
@QtUninvokable
private native io.qt.core.QMimeData mimeData_native_cref_QList_constfct(long __this__nativeId, java.util.Collection extends io.qt.widgets.QListWidgetItem> items);
/**
* See QListWidget:: mimeTypes()const
*/
@QtUninvokable
protected java.util.@NonNull List mimeTypes(){
return mimeTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.util.List mimeTypes_native_constfct(long __this__nativeId);
/**
* See QAbstractItemView:: setSelectionModel(QItemSelectionModel*)
*/
@QtUninvokable
@Override
public void setSelectionModel(io.qt.core.@StrictNonNull QItemSelectionModel selectionModel){
java.util.Objects.requireNonNull(selectionModel, "Argument 'selectionModel': null not expected.");
setSelectionModel_native_QItemSelectionModel_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(selectionModel));
QtJambi_LibraryUtilities.internal.setReferenceCount(this, io.qt.widgets.QAbstractItemView.class, "__rcItemSelectionModel", false, false, selectionModel);
}
@QtUninvokable
private native void setSelectionModel_native_QItemSelectionModel_ptr(long __this__nativeId, long selectionModel);
/**
* See QListWidget:: supportedDropActions()const
*/
@QtUninvokable
protected io.qt.core.Qt.@NonNull DropActions supportedDropActions(){
return new io.qt.core.Qt.DropActions(supportedDropActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int supportedDropActions_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QListWidget(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QListWidget(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QListWidget instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QListWidget(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QListWidget() {
this((io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #count()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getCount() {
return count();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #currentRow()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getCurrentRow() {
return currentRow();
}
/**
* Overloaded function for {@link #findItems(java.lang.String, io.qt.core.Qt.MatchFlags)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QList findItems(java.lang.@NonNull String text, io.qt.core.Qt.@NonNull MatchFlag @NonNull... flags) {
return findItems(text, new io.qt.core.Qt.MatchFlags(flags));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isSortingEnabled()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getSortingEnabled() {
return isSortingEnabled();
}
/**
* Overloaded function for {@link #scrollToItem(io.qt.widgets.QListWidgetItem, io.qt.widgets.QAbstractItemView.ScrollHint)}
* with hint = io.qt.widgets.QAbstractItemView.ScrollHint.EnsureVisible
.
*/
public final void scrollToItem(io.qt.widgets.@Nullable QListWidgetItem item) {
scrollToItem(item, io.qt.widgets.QAbstractItemView.ScrollHint.EnsureVisible);
}
/**
* Overloaded function for {@link #setCurrentItem(io.qt.widgets.QListWidgetItem, io.qt.core.QItemSelectionModel.SelectionFlags)}.
*/
@QtUninvokable
public final void setCurrentItem(io.qt.widgets.@Nullable QListWidgetItem item, io.qt.core.QItemSelectionModel.@NonNull SelectionFlag @NonNull... command) {
setCurrentItem(item, new io.qt.core.QItemSelectionModel.SelectionFlags(command));
}
/**
* Overloaded function for {@link #setCurrentRow(int, io.qt.core.QItemSelectionModel.SelectionFlags)}.
*/
@QtUninvokable
public final void setCurrentRow(int row, io.qt.core.QItemSelectionModel.@NonNull SelectionFlag @NonNull... command) {
setCurrentRow(row, new io.qt.core.QItemSelectionModel.SelectionFlags(command));
}
/**
* Overloaded function for {@link #sortItems(io.qt.core.Qt.SortOrder)}
* with order = io.qt.core.Qt.SortOrder.AscendingOrder
.
*/
@QtUninvokable
public final void sortItems() {
sortItems(io.qt.core.Qt.SortOrder.AscendingOrder);
}
}