Gui::LabelEditor Class Reference

#include <Widgets.h>

Public Types

enum  InputType { String , Float , Integer }
 

Public Slots

virtual void setButtonText (const QString &)
 Sets the browse button's text to txt. More...
 
virtual void setText (const QString &)
 
virtual void validateText (const QString &)
 Validates if the input of the lineedit is a valid list. More...
 

Signals

void textChanged (const QString &)
 

Public Member Functions

QString buttonText () const
 Returns the button's text. More...
 
 LabelEditor (QWidget *parent=nullptr)
 
void setInputType (InputType)
 Set the input type. More...
 
QString text () const
 Returns the text. More...
 
virtual ~LabelEditor ()
 

Protected Member Functions

void resizeEvent (QResizeEvent *)
 

Properties

QString buttonText
 
QString text
 

Member Enumeration Documentation

◆ InputType

Enumerator
String 
Float 
Integer 

Constructor & Destructor Documentation

◆ LabelEditor()

LabelEditor::LabelEditor ( QWidget parent = nullptr)

◆ ~LabelEditor()

LabelEditor::~LabelEditor ( )
virtual

Member Function Documentation

◆ buttonText()

QString LabelEditor::buttonText ( ) const

Returns the button's text.

Returns the browse button's text.

◆ resizeEvent()

void LabelEditor::resizeEvent ( QResizeEvent *  e)
protected

◆ setButtonText

void LabelEditor::setButtonText ( const QString &  txt)
virtualslot

Sets the browse button's text to txt.

References Gui::QtTools::horizontalAdvance().

◆ setInputType()

void LabelEditor::setInputType ( InputType  t)

Set the input type.

◆ setText

void LabelEditor::setText ( const QString &  s)
virtualslot

◆ text()

◆ textChanged

void Gui::LabelEditor::textChanged ( const QString &  )
signal

Referenced by LabelEditor(), and validateText().

◆ validateText

void LabelEditor::validateText ( const QString &  text)
virtualslot

Validates if the input of the lineedit is a valid list.

References textChanged().

Referenced by LabelEditor().

Property Documentation

◆ buttonText

QString Gui::LabelEditor::buttonText
readwrite

◆ text


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