API Documentation
Loading...
Searching...
No Matches
QCustomLineEdit Class Reference

A line edit allows users to enter and edit a single line of plain text with useful editing functions, including undo and redo, cut and paste, and drag and drop. More...

#include <QCustomLineEdit.h>

Inheritance diagram for QCustomLineEdit:
[legend]
Collaboration diagram for QCustomLineEdit:
[legend]

Public Slots

void onEdited ()
 
void onFinishedSlot ()
 
void updateCharColors ()
 
void updateColor ()
 

Signals

void editedSignal ()
 
void editingFinishedSignal ()
 
void inputHintChangedSignal ()
 

Public Member Functions

RGBColor backgroundColor () const
 
void clearBackgroundColor ()
 
void clearInputHint ()
 
QCustomValidatorcustomValidator ()
 
const QCustomValidatorcustomValidator () const
 
bool event (QEvent *event) override
 
void forceValue (const String &units)
 
template<class t_type >
t_type getAs () const
 
template<class t_type >
t_type getAs (bool allow_placeholder) const
 
template<class t_angle_type = fltp08>
Angle< t_angle_type > getUnitAngle (bool allow_placeholder=true) const
 
fltp08 getUnitValue (bool allow_placeholder=true) const
 
String getValue () const
 
String getValue (bool allow_placeholder) const
 
bool hasUserFocus () const
 
const TranslatedStringinputHint () const
 
bool isEditable () const
 
bool isEditing () const
 
bool isValid () const
 
QSize minimumSizeHint () const override
 
 QCustomLineEdit (const QString &value, QWidget *parent=Q_NULLPTR)
 
 QCustomLineEdit (QWidget *parent=Q_NULLPTR)
 
void setAllowPlaceholderAsValue (bool allow)
 
void setAsKeyboardFocus ()
 
void setAutoShowTooltip (bool auto_show_tooltip)
 
void setBackgroundColor (const RGBColor &color)
 
void setBold (bool is_bold)
 
void setConstantUnit (const ConstPointer< Unit > &unit, uint01 dimension=Constant< uint01 >::Invalid)
 
void setCustomUnit (const String &unit, UnitCategory fallback_unit, uint01 dimension=Constant< uint01 >::Invalid)
 
void setEditable (bool editable)
 
void setFontMultiplier (fltp04 font_multiplier)
 
void setInputHint (const TranslatedString &hint)
 
void setPlaceholderText (const QString &value)
 
void setPlaceHolderUnitValue (fltp08 value)
 
template<class t_type >
void setPlaceholderValue (const t_type &input_value, bool allow_placeholder_as_value=true)
 
void setPlaceholderValue (const TranslatedString &input_value, bool allow_placeholder_as_value=true)
 
void setStep (fltp08 step)
 
virtual void setTitle (const TranslatedString &title)
 
void setToolTip (const TranslatedString &tooltip)
 
void setUnitType (UnitCategory unit, uint01 dimension=Constant< uint01 >::Invalid)
 
template<class t_angle_type >
void setUnitValue (Angle< t_angle_type > value)
 
void setUnitValue (fltp08 value)
 
template<class t_type >
void setup (ApplicationOption< t_type > &option)
 
template<class t_type >
void setup (const TranslatedString &title)
 
void setup (const TranslatedString &title, const TypeInfo &type)
 
void setup (const TranslatedString &title, Resource< String > &resource)
 
template<class t_type >
void setup (const TranslatedString &title, Resource< t_type > &resource)
 
void setup (const TranslatedString &title, UnitCategory unit_type, uint01 dim=Constant< uint01 >::Invalid)
 
void setup (GenericOption &option)
 
void setValue (const Angle< fltp08 > &input_value)
 
void setValue (const Angle< sint04 > &input_value)
 
template<class t_type >
std::enable_if< ObjectInfo< t_type >::Number, void >::type setValue (const t_type &input_value)
 
template<class t_type >
std::enable_if<!ObjectInfo< t_type >::Number, void >::type setValue (const t_type &input_value)
 
void setValue (const TimeSpan &input_value)
 
QSize sizeHint () const override
 
void startUserEdit (bool select_all=true)
 
void updateHints ()
 
void wheelEvent (QWheelEvent *event) override
 
 ~QCustomLineEdit ()
 

Static Public Member Functions

static bool UseKeypad ()
 

Protected Attributes

TranslatedString m_title
 
TranslatedString m_tooltip
 

Friends

class QCustomComboBox
 

Detailed Description

A line edit allows users to enter and edit a single line of plain text with useful editing functions, including undo and redo, cut and paste, and drag and drop.


In touch mode, a popup Keypad will appear based on the type of data being input.

Constructor & Destructor Documentation

◆ QCustomLineEdit() [1/2]

QCustomLineEdit ( QWidget * parent = Q_NULLPTR)
explicit

◆ QCustomLineEdit() [2/2]

QCustomLineEdit ( const QString & value,
QWidget * parent = Q_NULLPTR )
explicit

◆ ~QCustomLineEdit()

Member Function Documentation

◆ backgroundColor()

RGBColor backgroundColor ( ) const

◆ clearBackgroundColor()

void clearBackgroundColor ( )

◆ clearInputHint()

void clearInputHint ( )

◆ customValidator() [1/2]

QCustomValidator & customValidator ( )

◆ customValidator() [2/2]

const QCustomValidator & customValidator ( ) const

◆ editedSignal

void editedSignal ( )
signal

◆ editingFinishedSignal

void editingFinishedSignal ( )
signal

◆ event()

bool event ( QEvent * event)
override

◆ forceValue()

void forceValue ( const String & units)

◆ getAs() [1/2]

template<class t_type >
t_type getAs ( ) const
inline

◆ getAs() [2/2]

template<class t_type >
t_type getAs ( bool allow_placeholder) const
inline

◆ getUnitAngle()

template<class t_angle_type = fltp08>
Angle< t_angle_type > getUnitAngle ( bool allow_placeholder = true) const
inline

◆ getUnitValue()

fltp08 getUnitValue ( bool allow_placeholder = true) const

◆ getValue() [1/2]

String getValue ( ) const

◆ getValue() [2/2]

String getValue ( bool allow_placeholder) const

◆ hasUserFocus()

bool hasUserFocus ( ) const

◆ inputHint()

const TranslatedString & inputHint ( ) const

◆ inputHintChangedSignal

void inputHintChangedSignal ( )
signal

◆ isEditable()

bool isEditable ( ) const
inline

◆ isEditing()

bool isEditing ( ) const

◆ isValid()

bool isValid ( ) const

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
override

◆ onEdited

void onEdited ( )
slot

◆ onFinishedSlot

void onFinishedSlot ( )
slot

◆ setAllowPlaceholderAsValue()

void setAllowPlaceholderAsValue ( bool allow)

◆ setAsKeyboardFocus()

void setAsKeyboardFocus ( )

◆ setAutoShowTooltip()

void setAutoShowTooltip ( bool auto_show_tooltip)
inline

◆ setBackgroundColor()

void setBackgroundColor ( const RGBColor & color)

◆ setBold()

void setBold ( bool is_bold)

◆ setConstantUnit()

void setConstantUnit ( const ConstPointer< Unit > & unit,
uint01 dimension = Constantuint01 >::Invalid )

◆ setCustomUnit()

void setCustomUnit ( const String & unit,
UnitCategory fallback_unit,
uint01 dimension = Constantuint01 >::Invalid )

◆ setEditable()

void setEditable ( bool editable)

◆ setFontMultiplier()

void setFontMultiplier ( fltp04 font_multiplier)

◆ setInputHint()

void setInputHint ( const TranslatedString & hint)

◆ setPlaceholderText()

void setPlaceholderText ( const QString & value)

◆ setPlaceHolderUnitValue()

void setPlaceHolderUnitValue ( fltp08 value)

◆ setPlaceholderValue() [1/2]

template<class t_type >
void setPlaceholderValue ( const t_type & input_value,
bool allow_placeholder_as_value = true )
inline

◆ setPlaceholderValue() [2/2]

void setPlaceholderValue ( const TranslatedString & input_value,
bool allow_placeholder_as_value = true )

◆ setStep()

void setStep ( fltp08 step)

◆ setTitle()

virtual void setTitle ( const TranslatedString & title)
virtual

Reimplemented in DesignObjectStringWidget.

◆ setToolTip()

void setToolTip ( const TranslatedString & tooltip)

◆ setUnitType()

void setUnitType ( UnitCategory unit,
uint01 dimension = Constantuint01 >::Invalid )

◆ setUnitValue() [1/2]

template<class t_angle_type >
void setUnitValue ( Angle< t_angle_type > value)
inline

◆ setUnitValue() [2/2]

void setUnitValue ( fltp08 value)

◆ setup() [1/7]

template<class t_type >
void setup ( ApplicationOption< t_type > & option)
inline

◆ setup() [2/7]

template<class t_type >
void setup ( const TranslatedString & title)
inline

◆ setup() [3/7]

void setup ( const TranslatedString & title,
const TypeInfo & type )

◆ setup() [4/7]

void setup ( const TranslatedString & title,
Resource< String > & resource )

◆ setup() [5/7]

template<class t_type >
void setup ( const TranslatedString & title,
Resource< t_type > & resource )
inline

◆ setup() [6/7]

void setup ( const TranslatedString & title,
UnitCategory unit_type,
uint01 dim = Constantuint01 >::Invalid )

◆ setup() [7/7]

void setup ( GenericOption & option)

◆ setValue() [1/5]

void setValue ( const Angle< fltp08 > & input_value)
inline

◆ setValue() [2/5]

void setValue ( const Angle< sint04 > & input_value)
inline

◆ setValue() [3/5]

template<class t_type >
std::enable_if< ObjectInfo< t_type >::Number, void >::type setValue ( const t_type & input_value)
inline

◆ setValue() [4/5]

template<class t_type >
std::enable_if<!ObjectInfo< t_type >::Number, void >::type setValue ( const t_type & input_value)
inline

◆ setValue() [5/5]

void setValue ( const TimeSpan & input_value)

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ startUserEdit()

void startUserEdit ( bool select_all = true)

◆ updateCharColors

void updateCharColors ( )
slot

◆ updateColor

void updateColor ( )
slot

◆ updateHints()

void updateHints ( )

◆ UseKeypad()

static bool UseKeypad ( )
static

◆ wheelEvent()

void wheelEvent ( QWheelEvent * event)
override

Friends And Related Symbol Documentation

◆ QCustomComboBox

friend class QCustomComboBox
friend

Member Data Documentation

◆ m_title

TranslatedString m_title
protected

◆ m_tooltip

TranslatedString m_tooltip
protected

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