Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QLineEditPrivate Class Reference

#include <qlineedit_p.h>

+ Inheritance diagram for QLineEditPrivate:
+ Collaboration diagram for QLineEditPrivate:

Classes

struct  SideWidgetEntry
 
struct  SideWidgetParameters
 

Public Types

enum  SideWidgetFlag { SideWidgetFadeInWithText = 0x1 , SideWidgetCreatedByWidgetAction = 0x2 , SideWidgetClearButton = 0x4 }
 
typedef std::vector< SideWidgetEntrySideWidgetEntryList
 
- Public Types inherited from QWidgetPrivate
enum  DrawWidgetFlag {
  DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 ,
  DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 ,
  UseEffectRegionBounds = 0x100
}
 
enum  Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 }
 
enum class  WindowHandleMode { Direct , Closest , TopLevel }
 
enum  CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent }
 
enum class  FocusDirection { Previous , Next }
 
enum class  FocusChainRemovalRule { EnsureFocusOut = 0x01 , AssertConsistency = 0x02 }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Public Member Functions

 QLineEditPrivate ()
 
 ~QLineEditPrivate ()
 
void init (const QString &)
 
void initMouseYThreshold ()
 
QRect adjustedControlRect (const QRect &) const
 
int xToPos (int x, QTextLine::CursorPosition=QTextLine::CursorBetweenCharacters) const
 
bool inSelection (int x) const
 
QRect cursorRect () const
 
void setCursorVisible (bool visible)
 
void setText (const QString &text)
 
QString textBeforeCursor (int curPos) const
 
QString textAfterCursor (int curPos) const
 
void updatePasswordEchoEditing (bool)
 
void resetInputMethod ()
 
bool shouldEnableInputMethod () const
 
bool shouldShowPlaceholderText () const
 
bool sendMouseEventToInputContext (QMouseEvent *e)
 This function is not intended as polymorphic usage.
 
QRect adjustedContentsRect () const
 
void handleWindowActivate ()
 
void textEdited (const QString &)
 
void cursorPositionChanged (int, int)
 
void selectionChanged ()
 
void updateNeeded (const QRect &)
 
void textChanged (const QString &)
 
void clearButtonClicked ()
 
void controlEditingFinished ()
 
SideWidgetParameters sideWidgetParameters () const
 
QIcon clearButtonIcon () const
 
void setClearButtonEnabled (bool enabled)
 
void positionSideWidgets ()
 
bool hasSideWidgets () const
 
const SideWidgetEntryListleftSideWidgetList () const
 
const SideWidgetEntryListrightSideWidgetList () const
 
QMargins effectiveTextMargins () const
 
- Public Member Functions inherited from QWidgetPrivate
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
 ~QWidgetPrivate ()
 
QWExtraextraData () const
 
QTLWExtratopData () const
 
QTLWExtramaybeTopData () const
 
QPaintersharedPainter () const
 
void setSharedPainter (QPainter *painter)
 
QWidgetRepaintManagermaybeRepaintManager () const
 
QRhirhi () const
 
QWindowwindowHandle (WindowHandleMode mode=WindowHandleMode::Direct) const
 
QWindow_q_closestWindowHandle () const
 
QScreenassociatedScreen () const
 
template<typename T >
void repaint (T t)
 
template<typename T >
void update (T t)
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
void create ()
 
void createRecursively ()
 
void createWinId ()
 
bool setScreenForPoint (const QPoint &pos)
 
bool setScreen (QScreen *screen)
 
void createTLExtra ()
 
void createExtra ()
 
void deleteExtra ()
 
void createSysExtra ()
 
void deleteSysExtra ()
 
void createTLSysExtra ()
 
void deleteTLSysExtra ()
 
void updateSystemBackground ()
 
void propagatePaletteChange ()
 
void setPalette_helper (const QPalette &)
 
void resolvePalette ()
 
QPalette naturalWidgetPalette (QPalette::ResolveMask inheritedMask) const
 
void setMask_sys (const QRegion &)
 
void raise_sys ()
 
void lower_sys ()
 
void stackUnder_sys (QWidget *)
 
QWidgetdeepestFocusProxy () const
 
void setFocus_sys ()
 
void updateFocusChild ()
 
void updateFont (const QFont &)
 
void setFont_helper (const QFont &font)
 
QFont localFont () const
 
void resolveFont ()
 
QFont naturalWidgetFont (uint inheritedMask) const
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void resolveLayoutDirection ()
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void resolveLocale ()
 
void setStyle_helper (QStyle *newStyle, bool propagate)
 
void inheritStyle ()
 
void setUpdatesEnabled_helper (bool)
 
bool updateBrushOrigin (QPainter *, const QBrush &brush) const
 
void paintBackground (QPainter *, const QRegion &, DrawWidgetFlags flags=DrawAsRoot) const
 
bool isAboutToShow () const
 The graphicsEffect function returns a pointer to the widget's graphics effect.
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter=nullptr, QWidgetRepaintManager *repaintManager=nullptr)
 
void sendPaintEvent (const QRegion &toBePainted)
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter, QWidgetRepaintManager *repaintManager)
 
bool shouldPaintOnScreen () const
 
void paintOnScreen (const QRegion &rgn)
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void setSystemClip (QPaintEngine *paintEngine, qreal devicePixelRatio, const QRegion &region)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=nullptr, bool alsoNonOpaque=false) const
 
void clipToEffectiveMask (QRegion &region) const
 
void updateIsOpaque ()
 
void setOpaque (bool opaque)
 
void updateIsTranslucent ()
 
const QRegiongetOpaqueChildren () const
 
void setDirtyOpaqueRegion ()
 
bool close ()
 
bool handleClose (CloseMode mode)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys ()
 
void setWindowOpacity_sys (qreal opacity)
 
void adjustQuitOnCloseAttribute ()
 
void scrollChildren (int dx, int dy)
 
void moveRect (const QRect &, int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void invalidateBackingStore_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the backing store when the widget is resized.
 
template<class T >
void invalidateBackingStore (const T &)
 
QRegion overlappedRegion (const QRect &rect, bool breakAfterFirst=false) const
 
bool isOverlapped (const QRect &rect) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
bool shouldDiscardSyncRequest () const
 
void updateWidgetTransform (QEvent *event)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void setWinId (WId)
 
void showChildren (bool spontaneous)
 
void hideChildren (bool spontaneous)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void reparentWidgetWindows (QWidget *parentWithWindow, Qt::WindowFlags windowFlags={})
 
void reparentWidgetWindowChildren (QWidget *parentWithWindow)
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void deactivateWidgetCleanup ()
 
void setGeometry_sys (int, int, int, int, bool)
 
void fixPosIncludesFrame ()
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void activateChildLayoutsRecursively ()
 
void show_recursive ()
 
void show_helper ()
 
void show_sys ()
 
void hide_sys ()
 
void hide_helper ()
 
bool isExplicitlyHidden () const
 
void _q_showIfNotHidden ()
 
void setVisible (bool)
 
void setEnabled_helper (bool)
 
void updateFrameStrut ()
 
QRect frameStrut () const
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWindowFilePath_sys (const QString &filePath)
 
void setCursor_sys (const QCursor &cursor)
 
void unsetCursor_sys ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowModified_helper ()
 
virtual void setWindowFlags (Qt::WindowFlags windowFlags)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
void setConstraints_sys ()
 
bool pointInsideRectAndMask (const QPoint &) const
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool) const
 
void updateGeometry_helper (bool forceUpdate)
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=nullptr)
 
void updateContentsRect ()
 
QMargins safeAreaMargins () const
 
virtual void aboutToDestroy ()
 
QWidgeteffectiveFocusWidget ()
 
void setModal_sys ()
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
QPaintDeviceredirected (QPoint *offset) const
 
void restoreRedirected ()
 
void enforceNativeChildren ()
 
bool nativeChildrenForced () const
 
QRect effectiveRectFor (const QRegion &region) const
 
QRect effectiveRectFor (const QRect &rect) const
 
QSize adjustedSize () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
void handleSoftwareInputPanel (bool clickCausedFocus=false)
 
void setWSGeometry ()
 
QPoint mapToWS (const QPoint &p) const
 
QPoint mapFromWS (const QPoint &p) const
 
QRect mapToWS (const QRect &r) const
 
QRect mapFromWS (const QRect &r) const
 
virtual QObjectfocusObject ()
 
virtual QPlatformBackingStoreRhiConfig rhiConfig () const
 
virtual TextureData texture () const
 
virtual QPlatformTextureList::Flags textureListFlags ()
 
virtual QImage grabFramebuffer ()
 
virtual void beginBackingStorePainting ()
 
virtual void endBackingStorePainting ()
 
virtual void beginCompose ()
 
virtual void endCompose ()
 
void setRenderToTexture ()
 
void setTextureChildSeen ()
 
virtual void initializeViewportFramebuffer ()
 
virtual void resizeViewportFramebuffer ()
 
virtual void resolveSamples ()
 
virtual bool isStereoEnabled ()
 
virtual bool toggleStereoTargetBuffer ()
 
std::string flagsForDumping () const override
 
QWidgetclosestParentWidgetWithWindowHandle () const
 
QWidgetnextPrevElementInFocusChain (FocusDirection direction) const
 
bool removeFromFocusChain (FocusChainRemovalRules rules=FocusChainRemovalRules(), FocusDirection direction=FocusDirection::Next)
 
bool insertIntoFocusChain (FocusDirection direction, QWidget *position)
 
bool insertIntoFocusChainBefore (QWidget *position)
 
bool insertIntoFocusChainAfter (QWidget *position)
 
void reparentFocusChildren (FocusDirection direction)
 
QWidgetdetermineLastFocusChild (QWidget *noFurtherThan)
 
void initFocusChain ()
 
bool isInFocusChain () const
 
bool isFocusChainConsistent () const
 
void setNetWmWindowTypes (bool skipIfMissing=false)
 
bool stealKeyboardGrab (bool grab)
 
bool stealMouseGrab (bool grab)
 
bool hasChildWithFocusPolicy (Qt::FocusPolicy policy, const QWidget *excludeChildrenOf=nullptr) const
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static QLineEditPrivateget (QLineEdit *lineEdit)
 
- Static Public Member Functions inherited from QWidgetPrivate
static QWidgetPrivateget (QWidget *w)
 
static const QWidgetPrivateget (const QWidget *w)
 
static void checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight)
 
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr)
 
static QWidgetparentGraphicsView (const QWidget *widget)
 
static QRect screenGeometry (const QWidget *widget)
 
static QRect availableScreenGeometry (const QWidget *widget)
 
static QScreenscreen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static QRect screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static QRect availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static void sendComposeStatus (QWidget *w, bool end)
 
static void setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent)
 
static bool insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position)
 
static QWidgetList takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Public Attributes

QWidgetLineControlcontrol
 
QPointer< QActionselectAllAction
 
QPoint tripleClick
 
QBasicTimer tripleClickTimer
 
uint frame: 1
 
uint contextMenuEnabled: 1
 
uint cursorVisible: 1
 
uint dragEnabled: 1
 
uint clickCausedFocus: 1
 
uint edited: 1
 
int hscroll
 
int vscroll
 
uint alignment
 
QPoint mousePressPos
 
QMargins textMargins
 
QString placeholderText
 
- Public Attributes inherited from QWidgetPrivate
std::unique_ptr< QWExtraextra
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QWidgetfocus_child
 
QLayoutlayout
 
QRegionneedsFlush
 
QPaintDeviceredirectDev
 
QWidgetItemV2widgetItem
 
QPaintEngineextraPaintEngine
 
const QMetaObjectpolished
 
QGraphicsEffectgraphicsEffect
 
Qt::InputMethodHints imHints
 
QRegion opaqueChildren
 
QRegion dirty
 
uint directFontResolveMask
 
uint inheritedFontResolveMask
 
decltype(std::declval< QPalette >().resolveMask()) directPaletteResolveMask
 
QPalette::ResolveMask inheritedPaletteResolveMask
 
short leftmargin
 
short topmargin
 
short rightmargin
 
short bottommargin
 
signed char leftLayoutItemMargin
 
signed char topLayoutItemMargin
 
signed char rightLayoutItemMargin
 
signed char bottomLayoutItemMargin
 
Qt::HANDLE hd
 
QWidgetData data
 
QSizePolicy size_policy
 
QLocale locale
 
QPoint redirectOffset
 
QList< QAction * > actions
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
uint high_attributes [4]
 
QPalette::ColorRole fg_role: 8
 
QPalette::ColorRole bg_role: 8
 
uint dirtyOpaqueChildren: 1
 
uint isOpaque: 1
 
uint retainSizeWhenHiddenChanged: 1
 
uint inDirtyList: 1
 
uint isScrolled: 1
 
uint isMoved: 1
 
uint usesDoubleBufferedGLContext: 1
 
uint mustHaveWindowHandle: 1
 
uint renderToTexture: 1
 
uint textureChildSeen: 1
 
uint inheritsInputMethodHints: 1
 
uint renderToTextureReallyDirty: 1
 
uint usesRhiFlush: 1
 
uint childrenHiddenByWState: 1
 
uint childrenShownByExpose: 1
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Static Public Attributes

static const int verticalMargin
 
static const int horizontalMargin
 
- Static Public Attributes inherited from QWidgetPrivate
static QWidgetMappermapper = nullptr
 
static QWidgetSetallWidgets = nullptr
 
static int instanceCounter = 0
 
static int maxInstances = 0
 

Friends

class QTypeInfo< SideWidgetLocation >
 

Detailed Description

Definition at line 96 of file qlineedit_p.h.

Member Typedef Documentation

◆ SideWidgetEntryList

Definition at line 113 of file qlineedit_p.h.

Member Enumeration Documentation

◆ SideWidgetFlag

Enumerator
SideWidgetFadeInWithText 
SideWidgetCreatedByWidgetAction 
SideWidgetClearButton 

Definition at line 100 of file qlineedit_p.h.

Constructor & Destructor Documentation

◆ QLineEditPrivate()

QLineEditPrivate::QLineEditPrivate ( )
inline

Definition at line 122 of file qlineedit_p.h.

◆ ~QLineEditPrivate()

QLineEditPrivate::~QLineEditPrivate ( )
inline

Definition at line 131 of file qlineedit_p.h.

Member Function Documentation

◆ adjustedContentsRect()

QRect QLineEditPrivate::adjustedContentsRect ( ) const

Definition at line 251 of file qlineedit_p.cpp.

References effectiveTextMargins(), QRect::marginsRemoved(), opt, and QStyle::SE_LineEditContents.

Referenced by adjustedControlRect(), inSelection(), and xToPos().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ adjustedControlRect()

QRect QLineEditPrivate::adjustedControlRect ( const QRect & rect) const

Definition at line 38 of file qlineedit_p.cpp.

References adjustedContentsRect(), QWidgetLineControl::ascent(), control, fontMetrics, horizontalMargin, hscroll, QRect::isEmpty(), rect, vscroll, and QRect::x().

Referenced by cursorRect(), and updateNeeded().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearButtonClicked()

void QLineEditPrivate::clearButtonClicked ( )

Definition at line 477 of file qlineedit_p.cpp.

◆ clearButtonIcon()

QIcon QLineEditPrivate::clearButtonIcon ( ) const

Definition at line 505 of file qlineedit_p.cpp.

References QStyle::SP_LineEditClearButton.

◆ controlEditingFinished()

void QLineEditPrivate::controlEditingFinished ( )

Definition at line 486 of file qlineedit_p.cpp.

References emit.

Referenced by init().

+ Here is the caller graph for this function:

◆ cursorPositionChanged()

void QLineEditPrivate::cursorPositionChanged ( int from,
int to )

Definition at line 135 of file qlineedit_p.cpp.

References emit.

Referenced by init().

+ Here is the caller graph for this function:

◆ cursorRect()

QRect QLineEditPrivate::cursorRect ( ) const

Definition at line 71 of file qlineedit_p.cpp.

References adjustedControlRect(), control, and QWidgetLineControl::cursorRect().

Referenced by setCursorVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ effectiveTextMargins()

QMargins QLineEditPrivate::effectiveTextMargins ( ) const

Definition at line 687 of file qlineedit_p.cpp.

References effectiveTextMargin().

Referenced by adjustedContentsRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get()

static QLineEditPrivate * QLineEditPrivate::get ( QLineEdit * lineEdit)
inlinestatic

Definition at line 171 of file qlineedit_p.h.

References lineEdit.

◆ handleWindowActivate()

void QLineEditPrivate::handleWindowActivate ( )

Definition at line 116 of file qlineedit_p.cpp.

References control, QWidgetLineControl::deselect(), and QWidgetLineControl::hasSelectedText().

+ Here is the call graph for this function:

◆ hasSideWidgets()

bool QLineEditPrivate::hasSideWidgets ( ) const
inline

Definition at line 227 of file qlineedit_p.h.

◆ init()

◆ initMouseYThreshold()

void QLineEditPrivate::initMouseYThreshold ( )

Definition at line 246 of file qlineedit_p.cpp.

References QGuiApplication::styleHints().

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inSelection()

bool QLineEditPrivate::inSelection ( int x) const

Definition at line 65 of file qlineedit_p.cpp.

References adjustedContentsRect(), control, horizontalMargin, hscroll, QWidgetLineControl::inSelection(), and QRect::x().

+ Here is the call graph for this function:

◆ leftSideWidgetList()

const SideWidgetEntryList & QLineEditPrivate::leftSideWidgetList ( ) const
inline

Definition at line 228 of file qlineedit_p.h.

References Qt::LeftToRight.

◆ positionSideWidgets()

void QLineEditPrivate::positionSideWidgets ( )

Definition at line 527 of file qlineedit_p.cpp.

References QRect::height(), Q_UNUSED, and QRect::width().

+ Here is the call graph for this function:

◆ resetInputMethod()

void QLineEditPrivate::resetInputMethod ( )

Definition at line 286 of file qlineedit_p.cpp.

References QGuiApplication::inputMethod(), and qApp.

+ Here is the call graph for this function:

◆ rightSideWidgetList()

const SideWidgetEntryList & QLineEditPrivate::rightSideWidgetList ( ) const
inline

Definition at line 230 of file qlineedit_p.h.

References Qt::LeftToRight.

◆ selectionChanged()

void QLineEditPrivate::selectionChanged ( )

Definition at line 150 of file qlineedit_p.cpp.

References control, QWidgetLineControl::cursorPosition(), emit, QWidgetLineControl::hasSelectedText(), QString::isEmpty(), opt, QWidgetLineControl::preeditAreaText(), QWidgetLineControl::selectionEnd(), QWidgetLineControl::selectionStart(), setCursorVisible(), and QStyle::SH_BlinkCursorWhenTextSelected.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendMouseEventToInputContext()

bool QLineEditPrivate::sendMouseEventToInputContext ( QMouseEvent * e)

This function is not intended as polymorphic usage.

Just a shared code fragment that calls QInputMethod::invokeAction for this class.

Definition at line 299 of file qlineedit_p.cpp.

References QInputMethod::Click, QWidgetLineControl::composeMode(), control, QWidgetLineControl::cursor(), QGuiApplication::inputMethod(), QEvent::MouseButtonRelease, QSinglePointEvent::position(), QWidgetLineControl::preeditAreaText(), Q_UNUSED, QString::size(), QPointF::toPoint(), QEvent::type(), and xToPos().

+ Here is the call graph for this function:

◆ setClearButtonEnabled()

void QLineEditPrivate::setClearButtonEnabled ( bool enabled)

Definition at line 513 of file qlineedit_p.cpp.

References Q_UNUSED.

◆ setCursorVisible()

void QLineEditPrivate::setCursorVisible ( bool visible)

Definition at line 261 of file qlineedit_p.cpp.

References control, cursorRect(), cursorVisible, QWidgetLineControl::inputMask(), and QString::isEmpty().

Referenced by selectionChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setText()

void QLineEditPrivate::setText ( const QString & text)

Definition at line 273 of file qlineedit_p.cpp.

References control, edited, QWidgetLineControl::setText(), and text.

+ Here is the call graph for this function:

◆ shouldEnableInputMethod()

bool QLineEditPrivate::shouldEnableInputMethod ( ) const
inline

Definition at line 157 of file qlineedit_p.h.

References QWidgetLineControl::isReadOnly().

Referenced by updatePasswordEchoEditing().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shouldShowPlaceholderText()

bool QLineEditPrivate::shouldShowPlaceholderText ( ) const
inline

Definition at line 165 of file qlineedit_p.h.

References Qt::AlignHCenter, alignment, QString::isEmpty(), QWidgetLineControl::preeditAreaText(), and QWidgetLineControl::text().

+ Here is the call graph for this function:

◆ sideWidgetParameters()

◆ textAfterCursor()

QString QLineEditPrivate::textAfterCursor ( int curPos) const

Definition at line 59 of file qlineedit_p.cpp.

References control, QString::mid(), text, and QWidgetLineControl::text().

+ Here is the call graph for this function:

◆ textBeforeCursor()

QString QLineEditPrivate::textBeforeCursor ( int curPos) const

Definition at line 53 of file qlineedit_p.cpp.

References control, QString::mid(), text, and QWidgetLineControl::text().

+ Here is the call graph for this function:

◆ textChanged()

void QLineEditPrivate::textChanged ( const QString & text)

Definition at line 462 of file qlineedit_p.cpp.

References QString::size(), and text.

+ Here is the call graph for this function:

◆ textEdited()

void QLineEditPrivate::textEdited ( const QString & text)

Definition at line 123 of file qlineedit_p.cpp.

References control, edited, emit, QCompleter::InlineCompletion, and text.

Referenced by init().

+ Here is the caller graph for this function:

◆ updateNeeded()

void QLineEditPrivate::updateNeeded ( const QRect & rect)

Definition at line 170 of file qlineedit_p.cpp.

References adjustedControlRect(), and rect.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updatePasswordEchoEditing()

void QLineEditPrivate::updatePasswordEchoEditing ( bool editing)

Definition at line 279 of file qlineedit_p.cpp.

References control, shouldEnableInputMethod(), QWidgetLineControl::updatePasswordEchoEditing(), and Qt::WA_InputMethodEnabled.

+ Here is the call graph for this function:

◆ xToPos()

int QLineEditPrivate::xToPos ( int x,
QTextLine::CursorPosition betweenOrOn = QTextLine::CursorBetweenCharacters ) const

Definition at line 46 of file qlineedit_p.cpp.

References adjustedContentsRect(), control, horizontalMargin, hscroll, QRect::x(), and QWidgetLineControl::xToPos().

Referenced by sendMouseEventToInputContext().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QTypeInfo< SideWidgetLocation >

friend class QTypeInfo< SideWidgetLocation >
friend

Definition at line 233 of file qlineedit_p.h.

Member Data Documentation

◆ alignment

uint QLineEditPrivate::alignment

Definition at line 185 of file qlineedit_p.h.

◆ clickCausedFocus

uint QLineEditPrivate::clickCausedFocus

Definition at line 181 of file qlineedit_p.h.

◆ contextMenuEnabled

uint QLineEditPrivate::contextMenuEnabled

Definition at line 178 of file qlineedit_p.h.

◆ control

◆ cursorVisible

uint QLineEditPrivate::cursorVisible

Definition at line 179 of file qlineedit_p.h.

Referenced by setCursorVisible().

◆ dragEnabled

uint QLineEditPrivate::dragEnabled

Definition at line 180 of file qlineedit_p.h.

◆ edited

uint QLineEditPrivate::edited

Definition at line 182 of file qlineedit_p.h.

Referenced by setText(), and textEdited().

◆ frame

uint QLineEditPrivate::frame

Definition at line 177 of file qlineedit_p.h.

◆ horizontalMargin

const int QLineEditPrivate::horizontalMargin
static

◆ hscroll

int QLineEditPrivate::hscroll

Definition at line 183 of file qlineedit_p.h.

Referenced by adjustedControlRect(), inSelection(), and xToPos().

◆ mousePressPos

QPoint QLineEditPrivate::mousePressPos

Definition at line 206 of file qlineedit_p.h.

◆ placeholderText

QString QLineEditPrivate::placeholderText

Definition at line 217 of file qlineedit_p.h.

◆ selectAllAction

QPointer<QAction> QLineEditPrivate::selectAllAction

Definition at line 138 of file qlineedit_p.h.

◆ textMargins

QMargins QLineEditPrivate::textMargins

Definition at line 215 of file qlineedit_p.h.

◆ tripleClick

QPoint QLineEditPrivate::tripleClick

Definition at line 175 of file qlineedit_p.h.

◆ tripleClickTimer

QBasicTimer QLineEditPrivate::tripleClickTimer

Definition at line 176 of file qlineedit_p.h.

◆ verticalMargin

QT_BEGIN_NAMESPACE const int QLineEditPrivate::verticalMargin
static

◆ vscroll

int QLineEditPrivate::vscroll

Definition at line 184 of file qlineedit_p.h.

Referenced by adjustedControlRect().


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