QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskListView Class Referenceabstract

Detailed Description

Definition at line 12 of file QskListView.h.

Inheritance diagram for QskListView:

Public Types

enum  SelectionMode { NoSelection , SingleSelection , MultiSelection }
 
- Public Types inherited from QskItem
enum  UpdateFlag {
  DeferredUpdate = 1 << 0 , DeferredPolish = 1 << 1 , DeferredLayout = 1 << 2 , CleanupOnVisibility = 1 << 3 ,
  PreferRasterForTextures = 1 << 4 , DebugForceBackground = 1 << 7
}
 

Properties

SelectionMode selectionMode
 
int selectedRow
 
QskTextOptions textOptions
 
bool preferredWidthFromColumns
 
- Properties inherited from QskScrollView
Qt::ScrollBarPolicy verticalScrollBarPolicy
 
Qt::ScrollBarPolicy horizontalScrollBarPolicy
 
- Properties inherited from QskScrollBox
QPointF scrollPos
 
Qt::Orientations flickableOrientations
 
bool autoScrollFocusedItem
 
- Properties inherited from QskControl
QLocale locale
 
QskAspect::Section section
 
bool autoLayoutChildren
 
bool visibleToLayout
 
QskMargins margins
 
QskGradient background
 
QskSizePolicy sizePolicy
 
QskPlacementPolicy placementPolicy
 
QSizeF minimumSize
 
QSizeF maximumSize
 
QSizeF preferredSize
 
QSizeF sizeConstraint
 
- Properties inherited from QskItem
QRectF geometry
 
QRectF rect
 
bool tabFence
 
bool polishOnResize
 
bool polishOnParentResize
 
Qt::FocusPolicy focusPolicy
 
bool wheelEnabled
 
bool visibleToParent
 
bool hasChildItems
 
bool initiallyPainted
 
UpdateFlags updateFlags
 

Static Public Attributes

static const QskAspect::Subcontrol Cell
 
static const QskAspect::Subcontrol Text
 
static const QskAspect::Subcontrol Graphic
 
static const QskAspect::State Selected
 
- Static Public Attributes inherited from QskScrollView
static const QskAspect::Subcontrol Panel
 
static const QskAspect::Subcontrol Viewport
 
static const QskAspect::Subcontrol HorizontalScrollBar
 
static const QskAspect::Subcontrol HorizontalScrollHandle
 
static const QskAspect::Subcontrol VerticalScrollBar
 
static const QskAspect::Subcontrol VerticalScrollHandle
 
static const QskAspect::State Pressed
 
- Static Public Attributes inherited from QskControl
static const QskAspect::Subcontrol Background
 
static const QskAspect::State Disabled
 
static const QskAspect::State Hovered
 
static const QskAspect::State Focused
 

Public Member Functions

 QskListView (QQuickItem *parent=nullptr)
 
void setPreferredWidthFromColumns (bool)
 
bool preferredWidthFromColumns () const
 
void setSelectionMode (SelectionMode)
 
SelectionMode selectionMode () const
 
void setTextOptions (const QskTextOptions &textOptions)
 
void resetTextOptions ()
 
QskTextOptions textOptions () const
 
Q_INVOKABLE int selectedRow () const
 
QskAspect::States rowStates (int) const
 
virtual int rowCount () const =0
 
virtual int columnCount () const =0
 
virtual qreal columnWidth (int col) const =0
 
virtual qreal rowHeight () const =0
 
virtual Q_INVOKABLE QVariant valueAt (int row, int col) const =0
 
QRectF focusIndicatorRect () const override
 
- Public Member Functions inherited from QskScrollView
 QskScrollView (QQuickItem *parent=nullptr)
 
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy)
 
Qt::ScrollBarPolicy verticalScrollBarPolicy () const
 
void setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy)
 
Qt::ScrollBarPolicy horizontalScrollBarPolicy () const
 
Qt::Orientations scrollableOrientations () const
 
bool isScrolling (Qt::Orientation) const
 
QskAspect::States scrollBarStates (QskAspect::Subcontrol) const
 
QRectF viewContentsRect () const override
 
QskAnimationHint flickHint () const override
 
- Public Member Functions inherited from QskScrollBox
 QskScrollBox (QQuickItem *parent=nullptr)
 
void setAutoScrollFocusedItem (bool on)
 
bool autoScrollFocusItem () const
 
void setFlickableOrientations (Qt::Orientations)
 
Qt::Orientations flickableOrientations () const
 
int flickRecognizerTimeout () const
 
void setFlickRecognizerTimeout (int timeout)
 
QPointF scrollPos () const
 
QSizeF scrollableSize () const
 
- Public Member Functions inherited from QskControl
 QskControl (QQuickItem *parent=nullptr)
 
 ~QskControl () override
 
void setMargins (qreal)
 
void setMargins (qreal, qreal, qreal, qreal)
 
void setMargins (const QMarginsF &)
 
void resetMargins ()
 
QMarginsF margins () const
 
void setBackground (const QskGradient &)
 
void resetBackground ()
 
QskGradient background () const
 
void setBackgroundColor (const QColor &)
 
QRectF contentsRect () const
 
QRectF layoutRect () const
 
virtual QRectF layoutRectForSize (const QSizeF &) const
 
virtual QRectF focusIndicatorClipRect () const
 
QRectF subControlRect (QskAspect::Subcontrol) const
 
QRectF subControlRect (const QSizeF &, QskAspect::Subcontrol) const
 
QRectF subControlContentsRect (QskAspect::Subcontrol) const
 
QRectF subControlContentsRect (const QSizeF &, QskAspect::Subcontrol) const
 
void setAutoLayoutChildren (bool)
 
bool autoLayoutChildren () const
 
void setSection (QskAspect::Section)
 
void resetSection ()
 
QskAspect::Section section () const override final
 
void setSizePolicy (QskSizePolicy)
 
void setSizePolicy (QskSizePolicy::Policy, QskSizePolicy::Policy)
 
void setSizePolicy (Qt::Orientation, QskSizePolicy::Policy)
 
QskSizePolicy sizePolicy () const
 
QskSizePolicy::Policy sizePolicy (Qt::Orientation) const
 
void setLayoutAlignmentHint (Qt::Alignment)
 
Qt::Alignment layoutAlignmentHint () const
 
void setPlacementPolicy (QskPlacementPolicy)
 
void setPlacementPolicy (QskPlacementPolicy::Policy, QskPlacementPolicy::Policy)
 
void setPlacementPolicy (Qsk::Visibilities, QskPlacementPolicy::Policy)
 
void resetPlacementPolicy ()
 
QskPlacementPolicy placementPolicy () const
 
QskPlacementPolicy::Policy placementPolicy (Qsk::Visibility) const
 
QskPlacementPolicy::Policy effectivePlacementPolicy () const
 
bool isVisibleToLayout () const
 
void setMinimumSize (const QSizeF &)
 
void setMinimumSize (qreal width, qreal height)
 
void setMinimumWidth (qreal width)
 
void setMinimumHeight (qreal height)
 
void setMaximumSize (const QSizeF &)
 
void setMaximumSize (qreal width, qreal height)
 
void setMaximumWidth (qreal width)
 
void setMaximumHeight (qreal height)
 
void setPreferredSize (const QSizeF &)
 
void setPreferredSize (qreal width, qreal height)
 
void setPreferredWidth (qreal width)
 
void setPreferredHeight (qreal height)
 
void setFixedSize (const QSizeF &)
 
void setFixedSize (qreal width, qreal height)
 
void setFixedWidth (qreal width)
 
void setFixedHeight (qreal height)
 
void setExplicitSizeHint (Qt::SizeHint, const QSizeF &)
 
void setExplicitSizeHint (Qt::SizeHint, qreal width, qreal height)
 
void resetExplicitSizeHint (Qt::SizeHint)
 
QSizeF minimumSize () const
 
QSizeF maximumSize () const
 
QSizeF preferredSize () const
 
QSizeF explicitSizeHint (Qt::SizeHint) const
 
QSizeF implicitSizeHint (Qt::SizeHint, const QSizeF &constraint) const
 
QSizeF sizeHint () const
 
qreal heightForWidth (qreal width) const
 
qreal widthForHeight (qreal height) const
 
QSizeF effectiveSizeHint (Qt::SizeHint, const QSizeF &constraint=QSizeF()) const
 
QSizeF sizeConstraint (Qt::SizeHint, const QSizeF &constraint=QSizeF()) const
 
QSizeF sizeConstraint () const
 
QLocale locale () const
 
void resetLocale ()
 
QVector< QskAspect::SubcontrolsubControls () const
 
QRectF subControlRect (const QRectF &, QskAspect::Subcontrol) const
 Calculate position and size of a subControl.
 
QRectF subControlContentsRect (const QRectF &, QskAspect::Subcontrol) const
 Calculate the inner rectangle for subControl.
 
- Public Member Functions inherited from QskItem
const char * className () const
 
bool isVisibleTo (const QQuickItem *) const
 
bool isVisibleToParent () const
 
bool hasChildItems () const
 
QRectF rect () const
 
QSizeF implicitSize () const
 
void setGeometry (qreal x, qreal y, qreal width, qreal height)
 
void setGeometry (const QPointF &, const QSizeF &)
 
QRectF geometry () const
 
void setPosition (qreal x, qreal y)
 
void setSize (qreal width, qreal height)
 
void setPolishOnResize (bool)
 
bool polishOnResize () const
 
void setPolishOnParentResize (bool)
 
bool polishOnParentResize () const
 
void setFocusPolicy (Qt::FocusPolicy)
 
Qt::FocusPolicy focusPolicy () const
 
void setTabFence (bool)
 
bool isTabFence () const
 
void setWheelEnabled (bool)
 
bool isWheelEnabled () const
 
void setLayoutMirroring (bool on, bool childrenInherit=false)
 
void resetLayoutMirroring ()
 
bool layoutMirroring () const
 
void resetUpdateFlags ()
 
UpdateFlags updateFlags () const
 
void setUpdateFlag (UpdateFlag, bool on=true)
 
void resetUpdateFlag (UpdateFlag)
 
bool testUpdateFlag (UpdateFlag) const
 
void classBegin () override
 
void componentComplete () override
 
void releaseResources () override
 
bool isPolishScheduled () const
 
bool isUpdateNodeScheduled () const
 
bool isInitiallyPainted () const
 
bool maybeUnresized () const
 
- Public Member Functions inherited from QskSkinnable
 QskSkinnable ()
 
virtual ~QskSkinnable ()
 
void setSkinlet (const QskSkinlet *)
 Set an individual skinlet to render/display the content.
 
const QskSkinletskinlet () const
 
QFont effectiveFont (QskAspect) const
 
qreal effectiveFontHeight (QskAspect) const
 
QskColorFilter effectiveGraphicFilter (QskAspect::Subcontrol) const
 
void setSubcontrolProxy (QskAspect::Subcontrol, QskAspect::Subcontrol proxy)
 
void resetSubcontrolProxy (QskAspect::Subcontrol)
 
QskAspect::Subcontrol subcontrolProxy (QskAspect::Subcontrol) const
 
bool setAnimationHint (QskAspect, QskAnimationHint)
 
QskAnimationHint animationHint (QskAspect, QskSkinHintStatus *=nullptr) const
 
bool hasAnimationHint (QskAspect) const
 
bool setSkinHint (QskAspect, const QVariant &)
 Insert a hint into the local hint table.
 
bool resetSkinHint (QskAspect)
 Remove a hint from the local hint table.
 
bool moveSkinHint (QskAspect, const QVariant &)
 
bool moveSkinHint (QskAspect, const QVariant &, const QVariant &)
 
QskAnimationHint effectiveAnimation (QskAspect::Type, QskAspect::Subcontrol, QskAspect::States, QskSkinHintStatus *status=nullptr) const
 
QVariant effectiveSkinHint (QskAspect, QskSkinHintStatus *=nullptr) const
 Find the value for a specific aspect.
 
virtual QskAspect::Variation effectiveVariation () const
 
QskSkinHintStatus hintStatus (QskAspect) const
 
QRectF subControlRect (const QRectF &, QskAspect::Subcontrol) const
 Calculate position and size of a subControl.
 
QRectF subControlContentsRect (const QRectF &, QskAspect::Subcontrol) const
 Calculate the inner rectangle for subControl.
 
QSizeF outerBoxSize (QskAspect, const QSizeF &innerBoxSize) const
 Calculate the size, when being expanded by paddings, indentations.
 
QSizeF innerBoxSize (QskAspect, const QSizeF &outerBoxSize) const
 Calculate the size, with paddings, indentations being subtracted.
 
QRectF innerBox (QskAspect, const QRectF &outerBox) const
 Calculate the rectangle, whith paddings, indentations being subtracted.
 
QRectF outerBox (QskAspect, const QRectF &innerBox) const
 Calculate the rectangle, when being expanded by paddings, indentations.
 
QMarginsF innerPadding (QskAspect, const QSizeF &) const
 Calculate the padding from attributes for the given aspect.
 
const QskSkinleteffectiveSkinlet () const
 
QskSkineffectiveSkin () const
 
void startTransition (QskAspect, QskAnimationHint, const QVariant &from, const QVariant &to)
 
void startTransition (QskAspect, int index, QskAnimationHint, const QVariant &from, const QVariant &to)
 
QskAspect::Subcontrol effectiveSubcontrol (QskAspect::Subcontrol) const
 
QskControlcontrolCast ()
 
const QskControlcontrolCast () const
 
virtual const QMetaObject * metaObject () const =0
 
void debug (QskAspect) const
 
void debug (QskAspect::State) const
 
void debug (QDebug, QskAspect) const
 
void debug (QDebug, QskAspect::State) const
 
void setSkinStates (QskAspect::States)
 
void setSkinStateFlag (QskAspect::State, bool on=true)
 
void addSkinStates (QskAspect::States)
 
void clearSkinStates (QskAspect::States)
 
bool hasSkinState (QskAspect::State) const
 
QskAspect::States skinStates () const
 
const char * skinStatesAsPrintable () const
 
const char * skinStatesAsPrintable (QskAspect::States) const
 
bool setColor (QskAspect, Qt::GlobalColor)
 Sets a color hint.
 
bool setColor (QskAspect, QRgb)
 Sets a color hint.
 
bool setColor (QskAspect, const QColor &)
 Sets a color hint.
 
bool moveColor (QskAspect, Qt::GlobalColor)
 
bool moveColor (QskAspect, QRgb)
 
bool moveColor (QskAspect, const QColor &)
 
bool resetColor (QskAspect)
 Removes a color hint from the local table.
 
QColor color (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves a color hint.
 
bool setMetric (QskAspect, qreal)
 Sets a metric hint.
 
bool moveMetric (QskAspect, qreal)
 
bool resetMetric (QskAspect)
 Removes a metric hint from the local table.
 
qreal metric (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves a metric hint.
 
bool setFlagHint (QskAspect, int flag)
 Sets a flag hint.
 
template<typename T >
flagHint (QskAspect, T=T()) const
 Retrieves a flag hint.
 
bool setPositionHint (QskAspect, qreal)
 
bool movePositionHint (QskAspect, qreal)
 
bool movePositionHint (QskAspect, qreal from, qreal to)
 
bool resetPositionHint (QskAspect)
 
qreal positionHint (QskAspect, QskSkinHintStatus *=nullptr) const
 
bool setStrutSizeHint (QskAspect, const QSizeF &)
 Sets a metric hint.
 
bool setStrutSizeHint (QskAspect, qreal width, qreal height)
 Sets a strut size hint.
 
bool resetStrutSizeHint (QskAspect)
 Removes a strut size hint from the local table.
 
QSizeF strutSizeHint (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves a strut size hint.
 
bool setMarginHint (QskAspect, qreal)
 Sets a margin hint.
 
bool setMarginHint (QskAspect, const QMarginsF &)
 Sets a margin hint.
 
bool resetMarginHint (QskAspect)
 Removes a margin hint from the local table.
 
QMarginsF marginHint (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves a margin hint.
 
bool setPaddingHint (QskAspect, qreal)
 Sets a padding hint.
 
bool setPaddingHint (QskAspect, const QMarginsF &)
 Sets a padding hint.
 
bool resetPaddingHint (QskAspect)
 Removes a padding hint from the local table.
 
QMarginsF paddingHint (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves a padding hint.
 
bool setGradientHint (QskAspect, const QskGradient &)
 Sets a gradient as color hint.
 
QskGradient gradientHint (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves a color hint as gradient.
 
bool setBoxShapeHint (QskAspect, const QskBoxShapeMetrics &)
 Sets a shape hint.
 
bool resetBoxShapeHint (QskAspect)
 Removes a shape hint from the local table.
 
QskBoxShapeMetrics boxShapeHint (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves a shape hint.
 
bool setBoxBorderMetricsHint (QskAspect, const QskBoxBorderMetrics &)
 Sets a border metrics hint.
 
bool resetBoxBorderMetricsHint (QskAspect)
 Removes a border metrics hint from the local table.
 
QskBoxBorderMetrics boxBorderMetricsHint (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves a border hint.
 
bool setBoxBorderColorsHint (QskAspect, const QskBoxBorderColors &)
 Sets a border colors hint.
 
bool resetBoxBorderColorsHint (QskAspect)
 Removes a border colors hint from the local table.
 
QskBoxBorderColors boxBorderColorsHint (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves border colors hint.
 
bool setShadowMetricsHint (QskAspect, const QskShadowMetrics &)
 
bool resetShadowMetricsHint (QskAspect)
 
QskShadowMetrics shadowMetricsHint (QskAspect, QskSkinHintStatus *=nullptr) const
 
bool setShadowColorHint (QskAspect, const QColor &)
 
bool resetShadowColorHint (QskAspect)
 
QColor shadowColorHint (QskAspect, QskSkinHintStatus *=nullptr) const
 
QskBoxHints boxHints (QskAspect) const
 
bool setArcMetricsHint (QskAspect, const QskArcMetrics &)
 
bool resetArcMetricsHint (QskAspect)
 
QskArcMetrics arcMetricsHint (QskAspect, QskSkinHintStatus *=nullptr) const
 
bool setStippleMetricsHint (QskAspect, const QskStippleMetrics &)
 
bool resetStippleMetricsHint (QskAspect)
 
QskStippleMetrics stippleMetricsHint (QskAspect, QskSkinHintStatus *=nullptr) const
 
bool setSpacingHint (QskAspect, qreal)
 Sets a spacing hint.
 
bool resetSpacingHint (QskAspect)
 Removes a spacing hint from the local table.
 
qreal spacingHint (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves a spacing hint.
 
bool setAlignmentHint (QskAspect, Qt::Alignment)
 Sets an alignment hint.
 
bool resetAlignmentHint (QskAspect)
 Removes an alignment hint from the local table.
 
Qt::Alignment alignmentHint (QskAspect, Qt::Alignment=Qt::Alignment()) const
 Retrieves an alignment hint.
 
bool setTextOptionsHint (QskAspect, const QskTextOptions &)
 
bool resetTextOptionsHint (QskAspect)
 
QskTextOptions textOptionsHint (QskAspect, QskSkinHintStatus *=nullptr) const
 
bool setFontRoleHint (QskAspect, const QskFontRole &)
 Sets a font role hint.
 
bool resetFontRoleHint (QskAspect)
 Removes a font role hint from the local table.
 
QskFontRole fontRoleHint (QskAspect, QskSkinHintStatus *=nullptr) const
 Retrieves a font role hint.
 
bool setGraphicRoleHint (QskAspect, int role)
 Sets a graphic role hint.
 
bool resetGraphicRoleHint (QskAspect)
 Removes a graphic role hint from the local table.
 
int graphicRoleHint (QskAspect, QskSkinHintStatus *=nullptr) const
 A Retrieves a graphic role hint.
 
bool setSymbolHint (const QskAspect, const QskGraphic &)
 
bool resetSymbolHint (const QskAspect)
 
QskGraphic symbolHint (const QskAspect, QskSkinHintStatus *=nullptr) const
 
const QskSkinHintTablehintTable () const
 Accessor for local skin hint table.
 
bool startHintTransitions (QskAspect::States, QskAspect::States, int index=-1)
 
bool startHintTransitions (const QVector< QskAspect::Subcontrol > &, QskAspect::States, QskAspect::States, int index=-1)
 
const QskHintAnimatorrunningHintAnimator (QskAspect, int index=-1) const
 

Public Slots

void setSelectedRow (int row)
 
- Public Slots inherited from QskScrollBox
void setScrollPos (const QPointF &)
 
void scrollTo (const QPointF &)
 
void ensureItemVisible (const QQuickItem *)
 
void ensureFocusItemVisible ()
 
void ensureVisible (const QPointF &)
 
void ensureVisible (const QRectF &)
 
- Public Slots inherited from QskControl
void setLocale (const QLocale &)
 
- Public Slots inherited from QskItem
void setGeometry (const QRectF &)
 
void show ()
 
void hide ()
 
void setHidden (bool)
 
void setDisabled (bool)
 
void resetImplicitSize ()
 

Signals

void selectedRowChanged (int row)
 
void selectionModeChanged ()
 
void preferredWidthFromColumnsChanged ()
 
void textOptionsChanged ()
 
- Signals inherited from QskScrollView
void verticalScrollBarPolicyChanged ()
 
void horizontalScrollBarPolicyChanged ()
 
- Signals inherited from QskScrollBox
void scrolledTo (const QPointF &)
 
void scrollPosChanged ()
 
void scrollableSizeChanged (const QSizeF &)
 
void autoScrollFocusedItemChanged (bool)
 
void flickableOrientationsChanged ()
 
- Signals inherited from QskControl
void backgroundChanged ()
 
void sectionChanged (QskAspect::Section)
 
void marginsChanged (const QMarginsF &)
 
void focusIndicatorRectChanged ()
 
void localeChanged (const QLocale &)
 
- Signals inherited from QskItem
void wheelEnabledChanged (bool)
 
void focusPolicyChanged (Qt::FocusPolicy)
 
void itemFlagsChanged ()
 
void updateFlagsChanged (UpdateFlags)
 

Protected Member Functions

void changeEvent (QEvent *) override
 
void keyPressEvent (QKeyEvent *) override
 
void keyReleaseEvent (QKeyEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void mouseUngrabEvent () override
 
void hoverEnterEvent (QHoverEvent *) override
 
void hoverMoveEvent (QHoverEvent *) override
 
void hoverLeaveEvent (QHoverEvent *) override
 
virtual QPointF scrollOffset (const QWheelEvent *) const override
 
void updateScrollableSize ()
 
void componentComplete () override
 
- Protected Member Functions inherited from QskScrollView
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void mouseUngrabEvent () override
 
void hoverEnterEvent (QHoverEvent *) override
 
void hoverMoveEvent (QHoverEvent *) override
 
void hoverLeaveEvent (QHoverEvent *) override
 
QPointF scrollOffset (const QWheelEvent *) const override
 
- Protected Member Functions inherited from QskScrollBox
void geometryChangeEvent (QskGeometryChangeEvent *) override
 
void windowChangeEvent (QskWindowChangeEvent *) override
 
void gestureEvent (QskGestureEvent *) override
 
void wheelEvent (QWheelEvent *) override
 
void setScrollableSize (const QSizeF &)
 
- Protected Member Functions inherited from QskControl
bool event (QEvent *) override
 
void hoverEnterEvent (QHoverEvent *) override
 
void hoverLeaveEvent (QHoverEvent *) override
 
bool childMouseEventFilter (QQuickItem *, QEvent *) override
 
void itemChange (ItemChange, const ItemChangeData &) override
 
void geometryChange (const QRectF &, const QRectF &) override
 
void initSizePolicy (QskSizePolicy::Policy, QskSizePolicy::Policy)
 
virtual void updateResources ()
 
virtual void updateLayout ()
 
virtual QSizeF contentsSizeHint (Qt::SizeHint, const QSizeF &) const
 
virtual QSizeF layoutSizeHint (Qt::SizeHint, const QSizeF &) const
 
- Protected Member Functions inherited from QskItem
 QskItem (QskItemPrivate &, QQuickItem *=nullptr)
 
bool event (QEvent *) override
 
void mouseUngrabEvent () override
 
void touchUngrabEvent () override
 
void itemChange (ItemChange, const ItemChangeData &) override
 
void geometryChange (const QRectF &, const QRectF &) override
 
virtual void aboutToShow ()
 
- Protected Member Functions inherited from QskSkinnable
virtual void updateNode (QSGNode *)
 
virtual bool isTransitionAccepted (QskAspect) const
 Additional check if an transition should be started.
 
virtual QskAspect::Subcontrol substitutedSubcontrol (QskAspect::Subcontrol) const
 
QskSkinHintTablehintTable ()
 Accessor for local skin hint table.
 

Member Enumeration Documentation

◆ SelectionMode

enum QskListView::SelectionMode

Definition at line 35 of file QskListView.h.

Constructor & Destructor Documentation

◆ QskListView()

QskListView::QskListView ( QQuickItem *  parent = nullptr)

Definition at line 100 of file QskListView.cpp.

◆ ~QskListView()

QskListView::~QskListView ( )
override

Definition at line 109 of file QskListView.cpp.

Member Function Documentation

◆ changeEvent()

void QskListView::changeEvent ( QEvent *  )
overrideprotectedvirtual

This event handler can be reimplemented to handle certain state changes:

- QEvent::StyleChange
- QEvent::ContentsRectChange
- QEvent::ReadOnlyChange
- QEvent::EnabledChange
- QEvent::LocaleChange
- QEvent::ParentChange
- QEvent::LayoutDirectionChange
Parameters
eventQt event

Reimplemented from QskItem.

Definition at line 372 of file QskListView.cpp.

◆ componentComplete()

void QskListView::componentComplete ( )
overrideprotected

Definition at line 491 of file QskListView.cpp.

◆ focusIndicatorRect()

QRectF QskListView::focusIndicatorRect ( ) const
overridevirtual

Returns the rectangle where to draw the focus indicator

For controls, that implement some sort of internal focus chain ( list boxes, sliders with more handles ... ) the rectangle might change according to the state of the control.

The default implementation return contentsRect()

See also
QskFocusIndicator, focusIndicatorClipRect(), focusIndicatorRectChanged()

Reimplemented from QskControl.

Definition at line 205 of file QskListView.cpp.

◆ hoverEnterEvent()

void QskListView::hoverEnterEvent ( QHoverEvent *  event)
overrideprotected

Definition at line 344 of file QskListView.cpp.

◆ hoverLeaveEvent()

void QskListView::hoverLeaveEvent ( QHoverEvent *  event)
overrideprotected

Definition at line 366 of file QskListView.cpp.

◆ hoverMoveEvent()

void QskListView::hoverMoveEvent ( QHoverEvent *  event)
overrideprotected

Definition at line 355 of file QskListView.cpp.

◆ keyPressEvent()

void QskListView::keyPressEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 222 of file QskListView.cpp.

◆ keyReleaseEvent()

void QskListView::keyReleaseEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 311 of file QskListView.cpp.

◆ mousePressEvent()

void QskListView::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 316 of file QskListView.cpp.

◆ mouseReleaseEvent()

void QskListView::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 332 of file QskListView.cpp.

◆ mouseUngrabEvent()

void QskListView::mouseUngrabEvent ( )
overrideprotected

Definition at line 338 of file QskListView.cpp.

◆ preferredWidthFromColumns()

bool QskListView::preferredWidthFromColumns ( ) const

Definition at line 124 of file QskListView.cpp.

◆ resetTextOptions()

void QskListView::resetTextOptions ( )

Definition at line 143 of file QskListView.cpp.

◆ rowStates()

QskAspect::States QskListView::rowStates ( int  row) const

Definition at line 380 of file QskListView.cpp.

◆ scrollOffset()

QPointF QskListView::scrollOffset ( const QWheelEvent *  event) const
overrideprotectedvirtual

Reimplemented from QskScrollBox.

Definition at line 420 of file QskListView.cpp.

◆ selectedRow()

int QskListView::selectedRow ( ) const

Definition at line 182 of file QskListView.cpp.

◆ selectionMode()

QskListView::SelectionMode QskListView::selectionMode ( ) const

Definition at line 200 of file QskListView.cpp.

◆ setPreferredWidthFromColumns()

void QskListView::setPreferredWidthFromColumns ( bool  on)

Definition at line 113 of file QskListView.cpp.

◆ setSelectedRow

void QskListView::setSelectedRow ( int  row)
slot

Definition at line 152 of file QskListView.cpp.

◆ setSelectionMode()

void QskListView::setSelectionMode ( SelectionMode  mode)

Definition at line 187 of file QskListView.cpp.

◆ setTextOptions()

void QskListView::setTextOptions ( const QskTextOptions textOptions)

Definition at line 129 of file QskListView.cpp.

◆ textOptions()

QskTextOptions QskListView::textOptions ( ) const

Definition at line 138 of file QskListView.cpp.

◆ updateScrollableSize()

void QskListView::updateScrollableSize ( )
protected

Definition at line 472 of file QskListView.cpp.

Member Data Documentation

◆ Cell

const QskAspect::Subcontrol QskListView::Cell
static

Definition at line 32 of file QskListView.h.

◆ Graphic

const QskAspect::Subcontrol QskListView::Graphic
static

Definition at line 32 of file QskListView.h.

◆ Selected

const QskAspect::State QskListView::Selected
static

Definition at line 33 of file QskListView.h.

◆ Text

const QskAspect::Subcontrol QskListView::Text
static

Definition at line 32 of file QskListView.h.

Property Documentation

◆ preferredWidthFromColumns

bool QskListView::preferredWidthFromColumns
readwrite

Definition at line 26 of file QskListView.h.

◆ selectedRow

int QskListView::selectedRow
readwrite

Definition at line 19 of file QskListView.h.

◆ selectionMode

SelectionMode QskListView::selectionMode
readwrite

Definition at line 16 of file QskListView.h.

◆ textOptions

QskTextOptions QskListView::textOptions
readwrite

Definition at line 22 of file QskListView.h.