eric5.E5Gui.E5LineEdit

Module implementing specialized line edits.

Global Attributes

None

Classes

E5LineEdit Class implementing a line edit widget showing some inactive text.
SideWidget Class implementing the side widgets for the line edit class.

Functions

None


E5LineEdit

Class implementing a line edit widget showing some inactive text.

Derived from

QLineEdit

Class Attributes

LeftSide
RightSide

Class Methods

None

Methods

E5LineEdit Constructor
__updateSideWidgetLocations Private method to update the side widget locations.
_updateTextMargins Protected slot to update the text margins.
addWidget Public method to add a widget to a side.
event Protected method to handle events.
inactiveText Public method to get the inactive text.
paintEvent Protected method handling a paint event.
removeWidget Public method to remove a widget from a side.
resizeEvent Protected method to handle resize events.
setInactiveText Public method to set the inactive text.
setWidgetSpacing Public method to set the side widget spacing.
textMargin Public method to get the text margin for a side.
widgetSpacing Public method to get the side widget spacing.

Static Methods

None

E5LineEdit (Constructor)

E5LineEdit(parent=None, inactiveText="")

Constructor

parent
reference to the parent widget (QWidget)
inactiveText
text to be shown on inactivity (string)

E5LineEdit.__updateSideWidgetLocations

__updateSideWidgetLocations()

Private method to update the side widget locations.

E5LineEdit._updateTextMargins

_updateTextMargins()

Protected slot to update the text margins.

E5LineEdit.addWidget

addWidget(widget, position)

Public method to add a widget to a side.

widget
reference to the widget to add (QWidget)
position
position to add to (E5LineEdit.LeftSide, E5LineEdit.RightSide)

E5LineEdit.event

event(evt)

Protected method to handle events.

reference
to the event (QEvent)
Returns:
flag indicating, whether the event was recognized (boolean)

E5LineEdit.inactiveText

inactiveText()

Public method to get the inactive text.

return inactive text (string)

E5LineEdit.paintEvent

paintEvent(evt)

Protected method handling a paint event.

evt
reference to the paint event (QPaintEvent)

E5LineEdit.removeWidget

removeWidget(widget)

Public method to remove a widget from a side.

widget
reference to the widget to remove (QWidget)

E5LineEdit.resizeEvent

resizeEvent(evt)

Protected method to handle resize events.

evt
reference to the resize event (QResizeEvent)

E5LineEdit.setInactiveText

setInactiveText(inactiveText)

Public method to set the inactive text.

inactiveText
text to be shown on inactivity (string)

E5LineEdit.setWidgetSpacing

setWidgetSpacing(spacing)

Public method to set the side widget spacing.

spacing
side widget spacing (integer)

E5LineEdit.textMargin

textMargin(position)

Public method to get the text margin for a side.

position
side to get margin for (E5LineEdit.LeftSide, E5LineEdit.RightSide)

E5LineEdit.widgetSpacing

widgetSpacing()

Public method to get the side widget spacing.

Returns:
side widget spacing (integer)
Up


SideWidget

Class implementing the side widgets for the line edit class.

Derived from

QWidget

Class Attributes

None

Class Methods

None

Methods

SideWidget Constructor
event Protected method to handle events.

Static Methods

None

SideWidget (Constructor)

SideWidget(parent=None)

Constructor

parent
reference to the parent widget (QWidget)

SideWidget.event

event(evt)

Protected method to handle events.

reference
to the event (QEvent)
Returns:
flag indicating, whether the event was recognized (boolean)
Up