QElectroTech  0.8-dev
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
ElementInfoPartWidget Class Reference

The ElementInfoPartWidget class gebruikt bij schema editor als men edit dit Element aanklikt. More...

#include <elementinfopartwidget.h>

Inherits QWidget.

Collaboration diagram for ElementInfoPartWidget:
Collaboration graph

Signals

void textEdited (const QString &text)
 
void textChanged (const QString &text)
 

Public Member Functions

 ElementInfoPartWidget (QString key, const QString &translated_key, QWidget *parent=nullptr)
 ElementInfoPartWidget::ElementInfoPartWidget Constructor. More...
 
 ~ElementInfoPartWidget () override
 ElementInfoPartWidget::~ElementInfoPartWidget destructor. More...
 
QString key () const
 
QString text () const
 ElementInfoPartWidget::text. More...
 
void setText (const QString &)
 ElementInfoPartWidget::setText Set text to line edit. More...
 
void setPlaceHolderText (const QString &text)
 ElementInfoPartWidget::setPlaceHolderText. More...
 
void setFocusTolineEdit ()
 ElementInfoPartWidget::setFocusTolineEdit Set the focus to the line edit. More...
 
void setEnabled (bool e)
 ElementInfoPartWidget::setEnabled enable the line edit. More...
 
void setDisabled (bool d)
 ElementInfoPartWidget::setDisabled disable the line edit. More...
 
void setEraseTextVisible (bool visible)
 ElementInfoPartWidget::setEraseTextVisible. More...
 
void setEraseTextChecked (bool check)
 ElementInfoPartWidget::setEraseTextChecked. More...
 
Qt::CheckState EraseTextCheckState () const
 ElementInfoPartWidget::EraseTextCheckState. More...
 

Private Slots

void on_m_erase_text_clicked ()
 

Private Attributes

Ui::ElementInfoPartWidget * ui
 
QString key_
 
bool m_show_erase = false
 

Detailed Description

The ElementInfoPartWidget class gebruikt bij schema editor als men edit dit Element aanklikt.

Constructor & Destructor Documentation

◆ ElementInfoPartWidget()

ElementInfoPartWidget::ElementInfoPartWidget ( QString  key,
const QString &  translated_key,
QWidget *  parent = nullptr 
)
explicit

ElementInfoPartWidget::ElementInfoPartWidget Constructor.

Parameters
keythe string key what represent this info part
translated_keythe string key translated
parentparent widget

◆ ~ElementInfoPartWidget()

ElementInfoPartWidget::~ElementInfoPartWidget ( )
override

Member Function Documentation

◆ EraseTextCheckState()

Qt::CheckState ElementInfoPartWidget::EraseTextCheckState ( ) const

◆ key()

QString ElementInfoPartWidget::key ( ) const
inline
Here is the caller graph for this function:

◆ on_m_erase_text_clicked

void ElementInfoPartWidget::on_m_erase_text_clicked ( )
privateslot
Here is the call graph for this function:

◆ setDisabled()

void ElementInfoPartWidget::setDisabled ( bool  d)

ElementInfoPartWidget::setDisabled disable the line edit.

Parameters
d
Here is the caller graph for this function:

◆ setEnabled()

void ElementInfoPartWidget::setEnabled ( bool  e)

ElementInfoPartWidget::setEnabled enable the line edit.

Parameters
e
Here is the caller graph for this function:

◆ setEraseTextChecked()

void ElementInfoPartWidget::setEraseTextChecked ( bool  check)

◆ setEraseTextVisible()

void ElementInfoPartWidget::setEraseTextVisible ( bool  visible)

ElementInfoPartWidget::setEraseTextVisible.

Parameters
visible
Here is the caller graph for this function:

◆ setFocusTolineEdit()

void ElementInfoPartWidget::setFocusTolineEdit ( )

ElementInfoPartWidget::setFocusTolineEdit Set the focus to the line edit.

◆ setPlaceHolderText()

void ElementInfoPartWidget::setPlaceHolderText ( const QString &  text)

ElementInfoPartWidget::setPlaceHolderText.

Parameters
text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setText()

void ElementInfoPartWidget::setText ( const QString &  txt)

ElementInfoPartWidget::setText Set text to line edit.

Parameters
txt
Here is the call graph for this function:

◆ text()

QString ElementInfoPartWidget::text ( ) const

ElementInfoPartWidget::text.

Returns
the text in the line edit
Here is the caller graph for this function:

◆ textChanged

void ElementInfoPartWidget::textChanged ( const QString &  text)
signal
Here is the caller graph for this function:

◆ textEdited

void ElementInfoPartWidget::textEdited ( const QString &  text)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ key_

QString ElementInfoPartWidget::key_
private

◆ m_show_erase

bool ElementInfoPartWidget::m_show_erase = false
private

◆ ui

Ui::ElementInfoPartWidget* ElementInfoPartWidget::ui
private

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