QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
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.
 ~ElementInfoPartWidget () override
 ElementInfoPartWidget::~ElementInfoPartWidget destructor.
QString key () const
QString text () const
 ElementInfoPartWidget::text.
void setText (const QString &)
 ElementInfoPartWidget::setText Set text to line edit.
void setPlaceHolderText (const QString &text)
 ElementInfoPartWidget::setPlaceHolderText.
void setFocusTolineEdit ()
 ElementInfoPartWidget::setFocusTolineEdit Set the focus to the line edit.
void setEnabled (bool e)
 ElementInfoPartWidget::setEnabled enable the line edit.
void setDisabled (bool d)
 ElementInfoPartWidget::setDisabled disable the line edit.
void setEraseTextVisible (bool visible)
 ElementInfoPartWidget::setEraseTextVisible.
void setEraseTextChecked (bool check)
 ElementInfoPartWidget::setEraseTextChecked.
Qt::CheckState EraseTextCheckState () const
 ElementInfoPartWidget::EraseTextCheckState.

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~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

◆ setEnabled()

void ElementInfoPartWidget::setEnabled ( bool e)

ElementInfoPartWidget::setEnabled enable the line edit.

Parameters
e

◆ 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 call graph for this function:
Here is the caller graph for this function:

◆ textEdited

void ElementInfoPartWidget::textEdited ( const QString & text)
signal
Here is the call graph for this function:
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: