QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskTextInput Class Reference

Detailed Description

Definition at line 15 of file QskTextInput.h.

Inheritance diagram for QskTextInput:

Public Types

enum  ActivationMode {
  NoActivation , ActivationOnFocus = 1 << 0 , ActivationOnMouse = 1 << 1 , ActivationOnKey = 1 << 2 ,
  ActivationOnInput = ActivationOnMouse | ActivationOnKey , ActivationOnAll = ActivationOnFocus | ActivationOnMouse | ActivationOnKey
}
 
enum  EchoMode { Normal , NoEcho , Password , PasswordEchoOnEdit }
 
- 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

QString text
 
QString description
 
QskFontRole fontRole
 
QFont font
 
Qt::Alignment alignment
 
QskTextOptions::WrapMode wrapMode
 
ActivationModes activationModes
 
bool editing
 
EchoMode echoMode
 
QString passwordCharacter
 
int passwordMaskDelay
 
bool panel
 
- 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 Panel
 
static const QskAspect::Subcontrol Text
 
static const QskAspect::Subcontrol PanelSelected
 
static const QskAspect::Subcontrol TextSelected
 
static const QskAspect::State ReadOnly
 
static const QskAspect::State Editing
 
- 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

 QskTextInput (QQuickItem *parent=nullptr)
 
 QskTextInput (const QString &text, QQuickItem *parent=nullptr)
 
void setupFrom (const QQuickItem *)
 
QString text () const
 
void setDescription (const QString &)
 
QString description () const
 
void setPanel (bool)
 
bool hasPanel () const
 
void setFontRole (const QskFontRole &role)
 
void resetFontRole ()
 
QskFontRole fontRole () const
 
void setAlignment (Qt::Alignment)
 
void resetAlignment ()
 
Qt::Alignment alignment () const
 
void setWrapMode (QskTextOptions::WrapMode)
 
QskTextOptions::WrapMode wrapMode () const
 
void setActivationModes (ActivationModes)
 
ActivationModes activationModes () const
 
bool isEditing () const
 
QFont font () const
 
bool isReadOnly () const
 
void setReadOnly (bool)
 
int cursorPosition () const
 
void setCursorPosition (int)
 
int maxLength () const
 
void setMaxLength (int)
 
QValidator * validator () const
 
void setValidator (QValidator *)
 
QString inputMask () const
 
void setInputMask (const QString &)
 
EchoMode echoMode () const
 
void setEchoMode (EchoMode)
 
QString passwordCharacter () const
 
void setPasswordCharacter (const QString &)
 
void resetPasswordCharacter ()
 
int passwordMaskDelay () const
 
void setPasswordMaskDelay (int)
 
void resetPasswordMaskDelay ()
 
QString displayText () const
 
QString preeditText () const
 
bool overwriteMode () const
 
void setOverwriteMode (bool)
 
bool hasAcceptableInput () const
 
bool fixup ()
 
QVariant inputMethodQuery (Qt::InputMethodQuery) const override
 
QVariant inputMethodQuery (Qt::InputMethodQuery, const QVariant &argument) const
 
bool canUndo () const
 
bool canRedo () const
 
Qt::InputMethodHints inputMethodHints () const
 
void setInputMethodHints (Qt::InputMethodHints)
 
void ensureVisible (int position)
 
- 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 focusIndicatorRect () 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 setText (const QString &)
 
void setEditing (bool)
 
- 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 editingChanged (bool)
 
void activationModesChanged ()
 
void readOnlyChanged (bool)
 
void panelChanged (bool)
 
void textChanged (const QString &)
 
void displayTextChanged (const QString &)
 
void textEdited (const QString &)
 
void descriptionChanged (const QString &)
 
void fontRoleChanged ()
 
void alignmentChanged ()
 
void wrapModeChanged (QskTextOptions::WrapMode)
 
void overwriteModeChanged (bool)
 
void maximumLengthChanged (int)
 
void echoModeChanged (EchoMode)
 
void passwordMaskDelayChanged ()
 
void passwordCharacterChanged ()
 
void validatorChanged ()
 
void inputMaskChanged (const QString &)
 
- 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

bool event (QEvent *) override
 
void inputMethodEvent (QInputMethodEvent *) override
 
void focusInEvent (QFocusEvent *) override
 
void focusOutEvent (QFocusEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void mouseDoubleClickEvent (QMouseEvent *) override
 
void keyPressEvent (QKeyEvent *) override
 
void keyReleaseEvent (QKeyEvent *) override
 
QSizeF layoutSizeHint (Qt::SizeHint, const QSizeF &) const override
 
void updateLayout () override
 
void updateNode (QSGNode *) override
 
- Protected Member Functions inherited from QskControl
bool event (QEvent *) override
 
virtual void gestureEvent (QskGestureEvent *)
 
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 QSizeF contentsSizeHint (Qt::SizeHint, const QSizeF &) const
 
- Protected Member Functions inherited from QskItem
 QskItem (QskItemPrivate &, QQuickItem *=nullptr)
 
bool event (QEvent *) override
 
virtual void changeEvent (QEvent *)
 
virtual void geometryChangeEvent (QskGeometryChangeEvent *)
 
virtual void windowChangeEvent (QskWindowChangeEvent *)
 
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 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

◆ ActivationMode

enum QskTextInput::ActivationMode

Definition at line 61 of file QskTextInput.h.

◆ EchoMode

enum QskTextInput::EchoMode

Definition at line 76 of file QskTextInput.h.

Constructor & Destructor Documentation

◆ QskTextInput() [1/2]

QskTextInput::QskTextInput ( QQuickItem *  parent = nullptr)

Definition at line 298 of file QskTextInput.cpp.

◆ QskTextInput() [2/2]

QskTextInput::QskTextInput ( const QString &  text,
QQuickItem *  parent = nullptr 
)

Definition at line 328 of file QskTextInput.cpp.

◆ ~QskTextInput()

QskTextInput::~QskTextInput ( )
override

Definition at line 334 of file QskTextInput.cpp.

Member Function Documentation

◆ activationModes()

QskTextInput::ActivationModes QskTextInput::activationModes ( ) const

Definition at line 555 of file QskTextInput.cpp.

◆ alignment()

Qt::Alignment QskTextInput::alignment ( ) const

Definition at line 616 of file QskTextInput.cpp.

◆ canRedo()

bool QskTextInput::canRedo ( ) const

Definition at line 868 of file QskTextInput.cpp.

◆ canUndo()

bool QskTextInput::canUndo ( ) const

Definition at line 863 of file QskTextInput.cpp.

◆ cursorPosition()

int QskTextInput::cursorPosition ( ) const

Definition at line 704 of file QskTextInput.cpp.

◆ description()

QString QskTextInput::description ( ) const

Definition at line 550 of file QskTextInput.cpp.

◆ displayText()

QString QskTextInput::displayText ( ) const

Definition at line 792 of file QskTextInput.cpp.

◆ echoMode()

QskTextInput::EchoMode QskTextInput::echoMode ( ) const

Definition at line 744 of file QskTextInput.cpp.

◆ ensureVisible()

void QskTextInput::ensureVisible ( int  position)

Definition at line 699 of file QskTextInput.cpp.

◆ event()

bool QskTextInput::event ( QEvent *  event)
overrideprotected

Definition at line 355 of file QskTextInput.cpp.

◆ fixup()

bool QskTextInput::fixup ( )

Definition at line 818 of file QskTextInput.cpp.

◆ focusInEvent()

void QskTextInput::focusInEvent ( QFocusEvent *  event)
overrideprotected

Definition at line 457 of file QskTextInput.cpp.

◆ focusOutEvent()

void QskTextInput::focusOutEvent ( QFocusEvent *  event)
overrideprotected

Definition at line 478 of file QskTextInput.cpp.

◆ font()

QFont QskTextInput::font ( ) const

Definition at line 633 of file QskTextInput.cpp.

◆ fontRole()

QskFontRole QskTextInput::fontRole ( ) const

Definition at line 593 of file QskTextInput.cpp.

◆ hasAcceptableInput()

bool QskTextInput::hasAcceptableInput ( ) const

Definition at line 813 of file QskTextInput.cpp.

◆ hasPanel()

bool QskTextInput::hasPanel ( ) const

Definition at line 350 of file QskTextInput.cpp.

◆ inputMask()

QString QskTextInput::inputMask ( ) const

Definition at line 734 of file QskTextInput.cpp.

◆ inputMethodEvent()

void QskTextInput::inputMethodEvent ( QInputMethodEvent *  event)
overrideprotected

Definition at line 452 of file QskTextInput.cpp.

◆ inputMethodHints()

Qt::InputMethodHints QskTextInput::inputMethodHints ( ) const

Definition at line 873 of file QskTextInput.cpp.

◆ inputMethodQuery() [1/2]

QVariant QskTextInput::inputMethodQuery ( Qt::InputMethodQuery  property) const
override

Definition at line 823 of file QskTextInput.cpp.

◆ inputMethodQuery() [2/2]

QVariant QskTextInput::inputMethodQuery ( Qt::InputMethodQuery  query,
const QVariant &  argument 
) const

Definition at line 829 of file QskTextInput.cpp.

◆ isEditing()

bool QskTextInput::isEditing ( ) const

Definition at line 694 of file QskTextInput.cpp.

◆ isReadOnly()

bool QskTextInput::isReadOnly ( ) const

Definition at line 638 of file QskTextInput.cpp.

◆ keyPressEvent()

void QskTextInput::keyPressEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 369 of file QskTextInput.cpp.

◆ keyReleaseEvent()

void QskTextInput::keyReleaseEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 421 of file QskTextInput.cpp.

◆ layoutSizeHint()

QSizeF QskTextInput::layoutSizeHint ( Qt::SizeHint  which,
const QSizeF &   
) const
overrideprotectedvirtual

Reimplemented from QskControl.

Definition at line 497 of file QskTextInput.cpp.

◆ maxLength()

int QskTextInput::maxLength ( ) const

Definition at line 714 of file QskTextInput.cpp.

◆ mouseDoubleClickEvent()

void QskTextInput::mouseDoubleClickEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 447 of file QskTextInput.cpp.

◆ mouseMoveEvent()

void QskTextInput::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 434 of file QskTextInput.cpp.

◆ mousePressEvent()

void QskTextInput::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 426 of file QskTextInput.cpp.

◆ mouseReleaseEvent()

void QskTextInput::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 439 of file QskTextInput.cpp.

◆ overwriteMode()

bool QskTextInput::overwriteMode ( ) const

Definition at line 803 of file QskTextInput.cpp.

◆ passwordCharacter()

QString QskTextInput::passwordCharacter ( ) const

Definition at line 761 of file QskTextInput.cpp.

◆ passwordMaskDelay()

int QskTextInput::passwordMaskDelay ( ) const

Definition at line 777 of file QskTextInput.cpp.

◆ preeditText()

QString QskTextInput::preeditText ( ) const

Definition at line 797 of file QskTextInput.cpp.

◆ resetAlignment()

void QskTextInput::resetAlignment ( )

Definition at line 607 of file QskTextInput.cpp.

◆ resetFontRole()

void QskTextInput::resetFontRole ( )

Definition at line 584 of file QskTextInput.cpp.

◆ resetPasswordCharacter()

void QskTextInput::resetPasswordCharacter ( )

Definition at line 771 of file QskTextInput.cpp.

◆ resetPasswordMaskDelay()

void QskTextInput::resetPasswordMaskDelay ( )

Definition at line 787 of file QskTextInput.cpp.

◆ setActivationModes()

void QskTextInput::setActivationModes ( ActivationModes  modes)

Definition at line 560 of file QskTextInput.cpp.

◆ setAlignment()

void QskTextInput::setAlignment ( Qt::Alignment  alignment)

Definition at line 598 of file QskTextInput.cpp.

◆ setCursorPosition()

void QskTextInput::setCursorPosition ( int  pos)

Definition at line 709 of file QskTextInput.cpp.

◆ setDescription()

void QskTextInput::setDescription ( const QString &  text)

Definition at line 541 of file QskTextInput.cpp.

◆ setEchoMode()

void QskTextInput::setEchoMode ( EchoMode  mode)

Definition at line 750 of file QskTextInput.cpp.

◆ setEditing

void QskTextInput::setEditing ( bool  on)
slot

Definition at line 664 of file QskTextInput.cpp.

◆ setFontRole()

void QskTextInput::setFontRole ( const QskFontRole role)

Definition at line 575 of file QskTextInput.cpp.

◆ setInputMask()

void QskTextInput::setInputMask ( const QString &  mask)

Definition at line 739 of file QskTextInput.cpp.

◆ setInputMethodHints()

void QskTextInput::setInputMethodHints ( Qt::InputMethodHints  hints)

Definition at line 878 of file QskTextInput.cpp.

◆ setMaxLength()

void QskTextInput::setMaxLength ( int  length)

Definition at line 719 of file QskTextInput.cpp.

◆ setOverwriteMode()

void QskTextInput::setOverwriteMode ( bool  overwrite)

Definition at line 808 of file QskTextInput.cpp.

◆ setPanel()

void QskTextInput::setPanel ( bool  on)

Definition at line 338 of file QskTextInput.cpp.

◆ setPasswordCharacter()

void QskTextInput::setPasswordCharacter ( const QString &  text)

Definition at line 766 of file QskTextInput.cpp.

◆ setPasswordMaskDelay()

void QskTextInput::setPasswordMaskDelay ( int  ms)

Definition at line 782 of file QskTextInput.cpp.

◆ setReadOnly()

void QskTextInput::setReadOnly ( bool  on)

Definition at line 643 of file QskTextInput.cpp.

◆ setText

void QskTextInput::setText ( const QString &  text)
slot

Definition at line 536 of file QskTextInput.cpp.

◆ setupFrom()

void QskTextInput::setupFrom ( const QQuickItem *  item)

Definition at line 887 of file QskTextInput.cpp.

◆ setValidator()

void QskTextInput::setValidator ( QValidator *  validator)

Definition at line 729 of file QskTextInput.cpp.

◆ setWrapMode()

void QskTextInput::setWrapMode ( QskTextOptions::WrapMode  wrapMode)

Definition at line 621 of file QskTextInput.cpp.

◆ text()

QString QskTextInput::text ( ) const

Definition at line 531 of file QskTextInput.cpp.

◆ updateLayout()

void QskTextInput::updateLayout ( )
overrideprotectedvirtual

Reimplemented from QskControl.

Definition at line 517 of file QskTextInput.cpp.

◆ updateNode()

void QskTextInput::updateNode ( QSGNode *  parentNode)
overrideprotectedvirtual

This method replaces the QQuickItem::updatePaintNode method as the preferred paint method to override when subclassing QskControl. This allows QskControl to perform some additional steps before calling updateNode(), and provides a consistent parent node which subclasses can rely on.

The default implementation simply forwards the operation to the skinlet,

Parameters
parentNodeThe parent of the nodes to be added in this method.
Note
Overriding updateNode() might break the themeability and the usual strategy to implement custom painting is to customize or replace the skinlet.
See also
QskSkinlet::updateSubNode()

Reimplemented from QskSkinnable.

Definition at line 525 of file QskTextInput.cpp.

◆ validator()

QValidator * QskTextInput::validator ( ) const

Definition at line 724 of file QskTextInput.cpp.

◆ wrapMode()

QskTextOptions::WrapMode QskTextInput::wrapMode ( ) const

Definition at line 627 of file QskTextInput.cpp.

Member Data Documentation

◆ Editing

const QskAspect::State QskTextInput::Editing
static

Definition at line 59 of file QskTextInput.h.

◆ Panel

const QskAspect::Subcontrol QskTextInput::Panel
static

Definition at line 58 of file QskTextInput.h.

◆ PanelSelected

const QskAspect::Subcontrol QskTextInput::PanelSelected
static

Definition at line 58 of file QskTextInput.h.

◆ ReadOnly

const QskAspect::State QskTextInput::ReadOnly
static

Definition at line 59 of file QskTextInput.h.

◆ Text

const QskAspect::Subcontrol QskTextInput::Text
static

Definition at line 58 of file QskTextInput.h.

◆ TextSelected

const QskAspect::Subcontrol QskTextInput::TextSelected
static

Definition at line 58 of file QskTextInput.h.

Property Documentation

◆ activationModes

ActivationModes QskTextInput::activationModes
readwrite

Definition at line 35 of file QskTextInput.h.

◆ alignment

Qt::Alignment QskTextInput::alignment
readwrite

Definition at line 29 of file QskTextInput.h.

◆ description

QString QskTextInput::description
readwrite

Definition at line 21 of file QskTextInput.h.

◆ echoMode

EchoMode QskTextInput::echoMode
readwrite

Definition at line 41 of file QskTextInput.h.

◆ editing

bool QskTextInput::editing
readwrite

Definition at line 38 of file QskTextInput.h.

◆ font

QFont QskTextInput::font
read

Definition at line 27 of file QskTextInput.h.

◆ fontRole

QskFontRole QskTextInput::fontRole
readwrite

Definition at line 24 of file QskTextInput.h.

◆ panel

bool QskTextInput::panel
readwrite

Definition at line 52 of file QskTextInput.h.

◆ passwordCharacter

QString QskTextInput::passwordCharacter
readwrite

Definition at line 44 of file QskTextInput.h.

◆ passwordMaskDelay

int QskTextInput::passwordMaskDelay
readwrite

Definition at line 48 of file QskTextInput.h.

◆ text

QString QskTextInput::text
readwrite

Definition at line 19 of file QskTextInput.h.

◆ wrapMode

QskTextOptions::WrapMode QskTextInput::wrapMode
readwrite

Definition at line 32 of file QskTextInput.h.