KLayout Manual: Main Index » Class Index » API reference - Class QItemSelectionModel

API reference - Class QItemSelectionModel

Notation used in Ruby API documentation

Description: Binding of QItemSelectionModel

Class hierarchy: QItemSelectionModel » QObject

Public constructors

new QItemSelectionModelnew(QAbstractItemModel ptr model)Constructor QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model)
new QItemSelectionModelnew(QAbstractItemModel ptr model,
QObject ptr parent)
Constructor QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model, QObject *parent)

Public methods

[virtual]voidclearVirtual method void QItemSelectionModel::clear()
voidclearSelectionMethod void QItemSelectionModel::clearSelection()
[const]boolcolumnIntersectsSelection(int column,
const QModelIndex parent)
Method bool QItemSelectionModel::columnIntersectsSelection(int column, const QModelIndex &parent)
voidcreateEnsures the C++ object is created
[event]voidcurrentChanged(const QModelIndex current,
const QModelIndex previous)
Signal declaration for QItemSelectionModel::currentChanged(const QModelIndex &current, const QModelIndex &previous)
[event]voidcurrentColumnChanged(const QModelIndex current,
const QModelIndex previous)
Signal declaration for QItemSelectionModel::currentColumnChanged(const QModelIndex &current, const QModelIndex &previous)
[const]QModelIndexcurrentIndexMethod QModelIndex QItemSelectionModel::currentIndex()
[event]voidcurrentRowChanged(const QModelIndex current,
const QModelIndex previous)
Signal declaration for QItemSelectionModel::currentRowChanged(const QModelIndex &current, const QModelIndex &previous)
voiddestroyExplicitly destroy the object
[event]voiddestroyed(QObject ptr arg1)Signal declaration for QItemSelectionModel::destroyed(QObject *)
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[virtual]boolevent(QEvent ptr arg1)Virtual method bool QItemSelectionModel::event(QEvent *)
[virtual]booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QItemSelectionModel::eventFilter(QObject *, QEvent *)
[const]boolhasSelectionMethod bool QItemSelectionModel::hasSelection()
[const]boolisColumnSelected(int column,
const QModelIndex parent)
Method bool QItemSelectionModel::isColumnSelected(int column, const QModelIndex &parent)
[const]boolisColumnSelected?(int column,
const QModelIndex parent)
Method bool QItemSelectionModel::isColumnSelected(int column, const QModelIndex &parent)
[const]boolisRowSelected(int row,
const QModelIndex parent)
Method bool QItemSelectionModel::isRowSelected(int row, const QModelIndex &parent)
[const]boolisRowSelected?(int row,
const QModelIndex parent)
Method bool QItemSelectionModel::isRowSelected(int row, const QModelIndex &parent)
[const]boolisSelected(const QModelIndex index)Method bool QItemSelectionModel::isSelected(const QModelIndex &index)
[const]boolisSelected?(const QModelIndex index)Method bool QItemSelectionModel::isSelected(const QModelIndex &index)
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]const QAbstractItemModel ptrmodelMethod const QAbstractItemModel * QItemSelectionModel::model()
[virtual]voidresetVirtual method void QItemSelectionModel::reset()
[const]boolrowIntersectsSelection(int row,
const QModelIndex parent)
Method bool QItemSelectionModel::rowIntersectsSelection(int row, const QModelIndex &parent)
[virtual]voidselect(const QModelIndex index,
int command)
Virtual method void QItemSelectionModel::select(const QModelIndex &index, QFlags<enum QItemSelectionModel::SelectionFlag> command)
[virtual]voidselect(const QItemSelection selection,
int command)
Virtual method void QItemSelectionModel::select(const QItemSelection &selection, QFlags<enum QItemSelectionModel::SelectionFlag> command)
[const]QModelIndex[]selectedColumnsMethod QList<class QModelIndex> QItemSelectionModel::selectedColumns(int row)
[const]QModelIndex[]selectedColumns(int row)Method QList<class QModelIndex> QItemSelectionModel::selectedColumns(int row)
[const]QModelIndex[]selectedIndexesMethod QList<class QModelIndex> QItemSelectionModel::selectedIndexes()
[const]QModelIndex[]selectedRowsMethod QList<class QModelIndex> QItemSelectionModel::selectedRows(int column)
[const]QModelIndex[]selectedRows(int column)Method QList<class QModelIndex> QItemSelectionModel::selectedRows(int column)
[const]QItemSelectionselectionMethod const QItemSelection QItemSelectionModel::selection()
[event]voidselectionChanged(const QItemSelection selected,
const QItemSelection deselected)
Signal declaration for QItemSelectionModel::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
voidsetCurrentIndex(const QModelIndex index,
int command)
Method void QItemSelectionModel::setCurrentIndex(const QModelIndex &index, QFlags<enum QItemSelectionModel::SelectionFlag> command)

Public static methods and constants

QItemSelectionModel_SelectionFlagClearEnum constant enum QItemSelectionModel::Clear
QItemSelectionModel_SelectionFlagClearAndSelectEnum constant enum QItemSelectionModel::ClearAndSelect
QItemSelectionModel_SelectionFlagColumnsEnum constant enum QItemSelectionModel::Columns
QItemSelectionModel_SelectionFlagCurrentEnum constant enum QItemSelectionModel::Current
QItemSelectionModel_SelectionFlagDeselectEnum constant enum QItemSelectionModel::Deselect
QItemSelectionModel_SelectionFlagNoUpdateEnum constant enum QItemSelectionModel::NoUpdate
QItemSelectionModel_SelectionFlagRowsEnum constant enum QItemSelectionModel::Rows
QItemSelectionModel_SelectionFlagSelectEnum constant enum QItemSelectionModel::Select
QItemSelectionModel_SelectionFlagSelectCurrentEnum constant enum QItemSelectionModel::SelectCurrent
QItemSelectionModel_SelectionFlagToggleEnum constant enum QItemSelectionModel::Toggle
QItemSelectionModel_SelectionFlagToggleCurrentEnum constant enum QItemSelectionModel::ToggleCurrent
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s)Static method QString QItemSelectionModel::tr(const char *s, const char *c)
stringtr(string s,
string c)
Static method QString QItemSelectionModel::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QItemSelectionModel::tr(const char *s, const char *c, int n)
stringtrUtf8(string s)Static method QString QItemSelectionModel::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c)
Static method QString QItemSelectionModel::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QItemSelectionModel::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

[virtual]voidchildEvent(QChildEvent ptr arg1)Virtual method void QItemSelectionModel::childEvent(QChildEvent *)
[virtual]voidcustomEvent(QEvent ptr arg1)Virtual method void QItemSelectionModel::customEvent(QEvent *)
[virtual]voiddisconnectNotify(string signal)Virtual method void QItemSelectionModel::disconnectNotify(const char *signal)
voidemitSelectionChanged(const QItemSelection newSelection,
const QItemSelection oldSelection)
Method void QItemSelectionModel::emitSelectionChanged(const QItemSelection &newSelection, const QItemSelection &oldSelection)
[const]intreceivers(string signal)Method int QItemSelectionModel::receivers(const char *signal)
[const]QObject ptrsenderMethod QObject * QItemSelectionModel::sender()
[virtual]voidtimerEvent(QTimerEvent ptr arg1)Virtual method void QItemSelectionModel::timerEvent(QTimerEvent *)

Detailed description

[static] QItemSelectionModel_SelectionFlag Clear

Description: Enum constant enum QItemSelectionModel::Clear

[static] QItemSelectionModel_SelectionFlag ClearAndSelect

Description: Enum constant enum QItemSelectionModel::ClearAndSelect

[static] QItemSelectionModel_SelectionFlag Columns

Description: Enum constant enum QItemSelectionModel::Columns

[static] QItemSelectionModel_SelectionFlag Current

Description: Enum constant enum QItemSelectionModel::Current

[static] QItemSelectionModel_SelectionFlag Deselect

Description: Enum constant enum QItemSelectionModel::Deselect

[static] QItemSelectionModel_SelectionFlag NoUpdate

Description: Enum constant enum QItemSelectionModel::NoUpdate

[static] QItemSelectionModel_SelectionFlag Rows

Description: Enum constant enum QItemSelectionModel::Rows

[static] QItemSelectionModel_SelectionFlag Select

Description: Enum constant enum QItemSelectionModel::Select

[static] QItemSelectionModel_SelectionFlag SelectCurrent

Description: Enum constant enum QItemSelectionModel::SelectCurrent

[static] QItemSelectionModel_SelectionFlag Toggle

Description: Enum constant enum QItemSelectionModel::Toggle

[static] QItemSelectionModel_SelectionFlag ToggleCurrent

Description: Enum constant enum QItemSelectionModel::ToggleCurrent

[virtual] void childEvent(QChildEvent ptr arg1)

Description: Virtual method void QItemSelectionModel::childEvent(QChildEvent *)

This method can be reimplemented in a derived class.

[virtual] void clear

Description: Virtual method void QItemSelectionModel::clear()

This method can be reimplemented in a derived class.

void clearSelection

Description: Method void QItemSelectionModel::clearSelection()

[const] bool columnIntersectsSelection(int column,const QModelIndex parent)

Description: Method bool QItemSelectionModel::columnIntersectsSelection(int column, const QModelIndex &parent)

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

[event] void currentChanged(const QModelIndex current,const QModelIndex previous)

Description: Signal declaration for QItemSelectionModel::currentChanged(const QModelIndex &current, const QModelIndex &previous)

You can bind a procedure to this signal.

[event] void currentColumnChanged(const QModelIndex current,const QModelIndex previous)

Description: Signal declaration for QItemSelectionModel::currentColumnChanged(const QModelIndex &current, const QModelIndex &previous)

You can bind a procedure to this signal.

[const] QModelIndex currentIndex

Description: Method QModelIndex QItemSelectionModel::currentIndex()

[event] void currentRowChanged(const QModelIndex current,const QModelIndex previous)

Description: Signal declaration for QItemSelectionModel::currentRowChanged(const QModelIndex &current, const QModelIndex &previous)

You can bind a procedure to this signal.

[virtual] void customEvent(QEvent ptr arg1)

Description: Virtual method void QItemSelectionModel::customEvent(QEvent *)

This method can be reimplemented in a derived class.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[event] void destroyed(QObject ptr arg1)

Description: Signal declaration for QItemSelectionModel::destroyed(QObject *)

You can bind a procedure to this signal.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[virtual] void disconnectNotify(string signal)

Description: Virtual method void QItemSelectionModel::disconnectNotify(const char *signal)

This method can be reimplemented in a derived class.

void emitSelectionChanged(const QItemSelection newSelection,const QItemSelection oldSelection)

Description: Method void QItemSelectionModel::emitSelectionChanged(const QItemSelection &newSelection, const QItemSelection &oldSelection)

This method is protected and can only be called from inside a derived class.

[virtual] bool event(QEvent ptr arg1)

Description: Virtual method bool QItemSelectionModel::event(QEvent *)

This method can be reimplemented in a derived class.

[virtual] bool eventFilter(QObject ptr arg1,QEvent ptr arg2)

Description: Virtual method bool QItemSelectionModel::eventFilter(QObject *, QEvent *)

This method can be reimplemented in a derived class.

[const] bool hasSelection

Description: Method bool QItemSelectionModel::hasSelection()

[const] bool isColumnSelected(int column,const QModelIndex parent)

Description: Method bool QItemSelectionModel::isColumnSelected(int column, const QModelIndex &parent)

[const] bool isColumnSelected?(int column,const QModelIndex parent)

Description: Method bool QItemSelectionModel::isColumnSelected(int column, const QModelIndex &parent)

[const] bool isRowSelected(int row,const QModelIndex parent)

Description: Method bool QItemSelectionModel::isRowSelected(int row, const QModelIndex &parent)

[const] bool isRowSelected?(int row,const QModelIndex parent)

Description: Method bool QItemSelectionModel::isRowSelected(int row, const QModelIndex &parent)

[const] bool isSelected(const QModelIndex index)

Description: Method bool QItemSelectionModel::isSelected(const QModelIndex &index)

[const] bool isSelected?(const QModelIndex index)

Description: Method bool QItemSelectionModel::isSelected(const QModelIndex &index)

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[const] const QAbstractItemModel ptr model

Description: Method const QAbstractItemModel * QItemSelectionModel::model()

[static] new QItemSelectionModel new(QAbstractItemModel ptr model)

Description: Constructor QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model)

This method creates an object of class QItemSelectionModel.

[static] new QItemSelectionModel new(QAbstractItemModel ptr model,QObject ptr parent)

Description: Constructor QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model, QObject *parent)

This method creates an object of class QItemSelectionModel.

[const] int receivers(string signal)

Description: Method int QItemSelectionModel::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

[virtual] void reset

Description: Virtual method void QItemSelectionModel::reset()

This method can be reimplemented in a derived class.

[const] bool rowIntersectsSelection(int row,const QModelIndex parent)

Description: Method bool QItemSelectionModel::rowIntersectsSelection(int row, const QModelIndex &parent)

[virtual] void select(const QModelIndex index,int command)

Description: Virtual method void QItemSelectionModel::select(const QModelIndex &index, QFlags<enum QItemSelectionModel::SelectionFlag> command)

This method can be reimplemented in a derived class.

[virtual] void select(const QItemSelection selection,int command)

Description: Virtual method void QItemSelectionModel::select(const QItemSelection &selection, QFlags<enum QItemSelectionModel::SelectionFlag> command)

This method can be reimplemented in a derived class.

[const] QModelIndex[] selectedColumns

Description: Method QList<class QModelIndex> QItemSelectionModel::selectedColumns(int row)

[const] QModelIndex[] selectedColumns(int row)

Description: Method QList<class QModelIndex> QItemSelectionModel::selectedColumns(int row)

[const] QModelIndex[] selectedIndexes

Description: Method QList<class QModelIndex> QItemSelectionModel::selectedIndexes()

[const] QModelIndex[] selectedRows

Description: Method QList<class QModelIndex> QItemSelectionModel::selectedRows(int column)

[const] QModelIndex[] selectedRows(int column)

Description: Method QList<class QModelIndex> QItemSelectionModel::selectedRows(int column)

[const] QItemSelection selection

Description: Method const QItemSelection QItemSelectionModel::selection()

[event] void selectionChanged(const QItemSelection selected,const QItemSelection deselected)

Description: Signal declaration for QItemSelectionModel::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)

You can bind a procedure to this signal.

[const] QObject ptr sender

Description: Method QObject * QItemSelectionModel::sender()

This method is protected and can only be called from inside a derived class.

void setCurrentIndex(const QModelIndex index,int command)

Description: Method void QItemSelectionModel::setCurrentIndex(const QModelIndex &index, QFlags<enum QItemSelectionModel::SelectionFlag> command)

[static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

[virtual] void timerEvent(QTimerEvent ptr arg1)

Description: Virtual method void QItemSelectionModel::timerEvent(QTimerEvent *)

This method can be reimplemented in a derived class.

[static] string tr(string s)

Description: Static method QString QItemSelectionModel::tr(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string tr(string s,string c)

Description: Static method QString QItemSelectionModel::tr(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string tr(string s,string c,int n)

Description: Static method QString QItemSelectionModel::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

[static] string trUtf8(string s)

Description: Static method QString QItemSelectionModel::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c)

Description: Static method QString QItemSelectionModel::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c,int n)

Description: Static method QString QItemSelectionModel::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.