Start to revamp the code about formula and label of elements and conductors

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4791 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-11-24 16:45:55 +00:00
parent 543c7b6b3e
commit 60c7b9302e
11 changed files with 174 additions and 71 deletions

View File

@@ -99,3 +99,23 @@ void ElementInfoPartWidget::setHideShow(const bool &hide) {
void ElementInfoPartWidget::setFocusTolineEdit() {
ui->line_edit->setFocus();
}
/**
* @brief ElementInfoPartWidget::setEnabled
* enable the line edit
* @param e
*/
void ElementInfoPartWidget::setEnabled(bool e)
{
ui->line_edit->setEnabled(e);
}
/**
* @brief ElementInfoPartWidget::setDisabled
* disable the line edit
* @param d
*/
void ElementInfoPartWidget::setDisabled(bool d)
{
ui->line_edit->setDisabled(d);
}