QtBase  v6.3.1
Signals | Public Member Functions | Protected Member Functions | List of all members
SetSelectionTestView Class Reference
Inheritance diagram for SetSelectionTestView:
Inheritance graph
[legend]
Collaboration diagram for SetSelectionTestView:
Collaboration graph
[legend]

Signals

void setSelectionCalled (const QRect &rect)
 
- Signals inherited from QListView
void indexesMoved (const QModelIndexList &indexes)
 
- Signals inherited from QAbstractItemView
void pressed (const QModelIndex &index)
 
void clicked (const QModelIndex &index)
 
void doubleClicked (const QModelIndex &index)
 
void activated (const QModelIndex &index)
 
void entered (const QModelIndex &index)
 
void viewportEntered ()
 
void iconSizeChanged (const QSize &size)
 

Public Member Functions

 QListView (QWidget *parent=nullptr)
 
 QListView (QListViewPrivate &, QWidget *parent=nullptr)
 
- Public Member Functions inherited from QListView
 QListView (QWidget *parent=nullptr)
 
 ~QListView ()
 
void setMovement (Movement movement)
 
Movement movement () const
 
void setFlow (Flow flow)
 
Flow flow () const
 
void setWrapping (bool enable)
 
bool isWrapping () const
 
void setResizeMode (ResizeMode mode)
 
ResizeMode resizeMode () const
 
void setLayoutMode (LayoutMode mode)
 
LayoutMode layoutMode () const
 
void setSpacing (int space)
 
int spacing () const
 
void setBatchSize (int batchSize)
 
int batchSize () const
 
void setGridSize (const QSize &size)
 
QSize gridSize () const
 
void setViewMode (ViewMode mode)
 
ViewMode viewMode () const
 
void clearPropertyFlags ()
 
bool isRowHidden (int row) const
 
void setRowHidden (int row, bool hide)
 
void setModelColumn (int column)
 
int modelColumn () const
 
void setUniformItemSizes (bool enable)
 
bool uniformItemSizes () const
 
void setWordWrap (bool on)
 
bool wordWrap () const
 
void setSelectionRectVisible (bool show)
 
bool isSelectionRectVisible () const
 
void setItemAlignment (Qt::Alignment alignment)
 
Qt::Alignment itemAlignment () const
 
QRect visualRect (const QModelIndex &index) const override
 
void scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible) override
 
QModelIndex indexAt (const QPoint &p) const override
 
void doItemsLayout () override
 
void reset () override
 
void setRootIndex (const QModelIndex &index) override
 
- Public Member Functions inherited from QAbstractItemView
 QAbstractItemView (QWidget *parent=nullptr)
 
 ~QAbstractItemView ()
 
virtual void setModel (QAbstractItemModel *model)
 
QAbstractItemModelmodel () const
 
virtual void setSelectionModel (QItemSelectionModel *selectionModel)
 
QItemSelectionModelselectionModel () const
 
void setItemDelegate (QAbstractItemDelegate *delegate)
 
QAbstractItemDelegateitemDelegate () const
 
void setSelectionMode (QAbstractItemView::SelectionMode mode)
 
QAbstractItemView::SelectionMode selectionMode () const
 
void setSelectionBehavior (QAbstractItemView::SelectionBehavior behavior)
 
QAbstractItemView::SelectionBehavior selectionBehavior () const
 
QModelIndex currentIndex () const
 
QModelIndex rootIndex () const
 
void setEditTriggers (EditTriggers triggers)
 
EditTriggers editTriggers () const
 
void setVerticalScrollMode (ScrollMode mode)
 
ScrollMode verticalScrollMode () const
 
void resetVerticalScrollMode ()
 
void setHorizontalScrollMode (ScrollMode mode)
 
ScrollMode horizontalScrollMode () const
 
void resetHorizontalScrollMode ()
 
void setAutoScroll (bool enable)
 
bool hasAutoScroll () const
 
void setAutoScrollMargin (int margin)
 
int autoScrollMargin () const
 
void setTabKeyNavigation (bool enable)
 
bool tabKeyNavigation () const
 
void setAlternatingRowColors (bool enable)
 
bool alternatingRowColors () const
 
void setIconSize (const QSize &size)
 
QSize iconSize () const
 
void setTextElideMode (Qt::TextElideMode mode)
 
Qt::TextElideMode textElideMode () const
 
virtual void keyboardSearch (const QString &search)
 
QSize sizeHintForIndex (const QModelIndex &index) const
 
virtual int sizeHintForRow (int row) const
 
virtual int sizeHintForColumn (int column) const
 
void openPersistentEditor (const QModelIndex &index)
 
void closePersistentEditor (const QModelIndex &index)
 
bool isPersistentEditorOpen (const QModelIndex &index) const
 
void setIndexWidget (const QModelIndex &index, QWidget *widget)
 
QWidgetindexWidget (const QModelIndex &index) const
 
void setItemDelegateForRow (int row, QAbstractItemDelegate *delegate)
 
QAbstractItemDelegateitemDelegateForRow (int row) const
 
void setItemDelegateForColumn (int column, QAbstractItemDelegate *delegate)
 
QAbstractItemDelegateitemDelegateForColumn (int column) const
 
virtual QAbstractItemDelegateitemDelegateForIndex (const QModelIndex &index) const
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const override
 

Protected Member Functions

void setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags flags) override
 
- Protected Member Functions inherited from QListView
 QListView (QListViewPrivate &, QWidget *parent=nullptr)
 
bool event (QEvent *e) override
 
void scrollContentsBy (int dx, int dy) override
 
void resizeContents (int width, int height)
 
QSize contentsSize () const
 
void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles=QList< int >()) override
 
void rowsInserted (const QModelIndex &parent, int start, int end) override
 
void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *e) override
 
void timerEvent (QTimerEvent *e) override
 
void resizeEvent (QResizeEvent *e) override
 
void initViewItemOption (QStyleOptionViewItem *option) const override
 
void paintEvent (QPaintEvent *e) override
 
int horizontalOffset () const override
 
int verticalOffset () const override
 
QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
 
QRect rectForIndex (const QModelIndex &index) const
 
void setPositionForIndex (const QPoint &position, const QModelIndex &index)
 
QRegion visualRegionForSelection (const QItemSelection &selection) const override
 
QModelIndexList selectedIndexes () const override
 
void updateGeometries () override
 
bool isIndexHidden (const QModelIndex &index) const override
 
void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override
 
void currentChanged (const QModelIndex &current, const QModelIndex &previous) override
 
QSize viewportSizeHint () const override
 
- Protected Member Functions inherited from QAbstractItemView
 QAbstractItemView (QAbstractItemViewPrivate &, QWidget *parent=nullptr)
 
virtual bool edit (const QModelIndex &index, EditTrigger trigger, QEvent *event)
 
virtual QItemSelectionModel::SelectionFlags selectionCommand (const QModelIndex &index, const QEvent *event=nullptr) const
 
State state () const
 
void setState (State state)
 
void scheduleDelayedItemsLayout ()
 
void executeDelayedItemsLayout ()
 
void setDirtyRegion (const QRegion &region)
 
void scrollDirtyRegion (int dx, int dy)
 
QPoint dirtyRegionOffset () const
 
void startAutoScroll ()
 
void stopAutoScroll ()
 
void doAutoScroll ()
 
bool focusNextPrevChild (bool next) override
 
bool event (QEvent *event) override
 
bool viewportEvent (QEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
void focusInEvent (QFocusEvent *event) override
 
void focusOutEvent (QFocusEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void timerEvent (QTimerEvent *event) override
 
void inputMethodEvent (QInputMethodEvent *event) override
 
bool eventFilter (QObject *object, QEvent *event) override
 
QSize viewportSizeHint () const override
 

Additional Inherited Members

- Public Types inherited from QListView
enum  Movement { Static , Free , Snap }
 
enum  Flow { LeftToRight , TopToBottom }
 
enum  ResizeMode { Fixed , Adjust }
 
enum  LayoutMode { SinglePass , Batched }
 
enum  ViewMode { ListMode , IconMode }
 
- Public Types inherited from QAbstractItemView
enum  SelectionMode {
  NoSelection , SingleSelection , MultiSelection , ExtendedSelection ,
  ContiguousSelection
}
 
enum  SelectionBehavior { SelectItems , SelectRows , SelectColumns }
 
enum  ScrollHint { EnsureVisible , PositionAtTop , PositionAtBottom , PositionAtCenter }
 
enum  EditTrigger {
  NoEditTriggers = 0 , CurrentChanged = 1 , DoubleClicked = 2 , SelectedClicked = 4 ,
  EditKeyPressed = 8 , AnyKeyPressed = 16 , AllEditTriggers = 31
}
 
enum  ScrollMode { ScrollPerItem , ScrollPerPixel }
 
- Public Slots inherited from QAbstractItemView
virtual void selectAll ()
 
void edit (const QModelIndex &index)
 
void clearSelection ()
 
void setCurrentIndex (const QModelIndex &index)
 
void scrollToTop ()
 
void scrollToBottom ()
 
void update (const QModelIndex &index)
 
- Protected Types inherited from QAbstractItemView
enum  CursorAction {
  MoveUp , MoveDown , MoveLeft , MoveRight ,
  MoveHome , MoveEnd , MovePageUp , MovePageDown ,
  MoveNext , MovePrevious
}
 
enum  State {
  NoState , DraggingState , DragSelectingState , EditingState ,
  ExpandingState , CollapsingState , AnimatingState
}
 
- Protected Slots inherited from QAbstractItemView
virtual void updateEditorData ()
 
virtual void updateEditorGeometries ()
 
virtual void verticalScrollbarAction (int action)
 
virtual void horizontalScrollbarAction (int action)
 
virtual void verticalScrollbarValueChanged (int value)
 
virtual void horizontalScrollbarValueChanged (int value)
 
virtual void closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint)
 
virtual void commitData (QWidget *editor)
 
virtual void editorDestroyed (QObject *editor)
 
- Properties inherited from QListView
Movement movement
 whether the items can be moved freely, are snapped to a grid, or cannot be moved at all. More...
 
Flow flow
 which direction the items layout should flow. More...
 
bool isWrapping
 whether the items layout should wrap. More...
 
ResizeMode resizeMode
 whether the items are laid out again when the view is resized. More...
 
LayoutMode layoutMode
 determines whether the layout of items should happen immediately or be delayed. More...
 
int spacing
 the space around the items in the layout More...
 
QSize gridSize
 the size of the layout grid More...
 
ViewMode viewMode
 the view mode of the QListView. More...
 
int modelColumn
 the column in the model that is visible More...
 
bool uniformItemSizes
 whether all items in the listview have the same size More...
 
int batchSize
 the number of items laid out in each batch if \l layoutMode is set to \l Batched More...
 
bool wordWrap
 the item text word-wrapping policy More...
 
bool selectionRectVisible
 if the selection rectangle should be visible More...
 
Qt::Alignment itemAlignment
 the alignment of each item in its cell More...
 
- Properties inherited from QAbstractItemView
bool autoScroll
 whether autoscrolling in drag move events is enabled More...
 
int autoScrollMargin
 the size of the area when auto scrolling is triggered More...
 
EditTriggers editTriggers
 which actions will initiate item editing More...
 
bool tabKeyNavigation
 whether item navigation with tab and backtab is enabled. More...
 
bool alternatingRowColors
 whether to draw the background using alternating colors More...
 
SelectionMode selectionMode
 which selection mode the view operates in More...
 
SelectionBehavior selectionBehavior
 which selection behavior the view uses More...
 
QSize iconSize
 the size of items' icons More...
 
Qt::TextElideMode textElideMode
 the position of the "..." in elided text. More...
 
ScrollMode verticalScrollMode
 how the view scrolls its contents in the vertical direction More...
 
ScrollMode horizontalScrollMode
 how the view scrolls its contents in the horizontal direction More...
 

Detailed Description

Definition at line 2257 of file tst_qabstractitemview.cpp.

Member Function Documentation

◆ QListView() [1/2]

QListView::QListView

Definition at line 144 of file qlistview.cpp.

◆ QListView() [2/2]

QListView::QListView
explicit

Creates a new QListView with the given parent to view a model. Use setModel() to set the model.

Definition at line 82 of file qlistview.cpp.

◆ setSelection()

void SetSelectionTestView::setSelection ( const QRect rect,
QItemSelectionModel::SelectionFlags  command 
)
inlineoverrideprotectedvirtual

\reimp

Reimplemented from QListView.

Definition at line 2266 of file tst_qabstractitemview.cpp.

Here is the call graph for this function:

◆ setSelectionCalled

void SetSelectionTestView::setSelectionCalled ( const QRect rect)
signal

The documentation for this class was generated from the following file: