mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +01:00
master element: add auto label when "comment" isn't empty and must show
element info widget -> comment line: must show is checked by default git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2951 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -86,5 +86,7 @@ void ElementInfoWidget::fillInfo() {
|
||||
//check "show" if this eipw is label and if elmt_info haven't got value for label.
|
||||
if (eipw->key() == "label" && (elmt_info["label"].toString().isEmpty()))
|
||||
eipw->setShow(true);
|
||||
else if (eipw->key() == "comment" && (elmt_info["comment"].toString().isEmpty()))
|
||||
eipw->setShow(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user