Improve some code and gui

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5643 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-12-09 18:37:09 +00:00
parent d0f3825bfc
commit 835ff082bf
5 changed files with 20 additions and 16 deletions

View File

@@ -236,7 +236,7 @@ void SearchAndReplaceWorker::replaceConductor(Conductor *conductor)
* With search and replace, when the variable to edit is a text,
* the editor is always the same no matter if it is for a folio, element or conductor.
* The editor is a QLineEdit to edit the text and checkbox to erase the text if checked.
* This function fill the editor
* This function fill the editor, from the current string
* @param l
* @param cb
* @param str
@@ -245,6 +245,7 @@ void SearchAndReplaceWorker::setupLineEdit(QLineEdit *l, QCheckBox *cb, QString
{
l->setText(str);
cb->setChecked(str == eraseText() ? true : false);
l->setDisabled(str == eraseText() ? true : false);
}
ConductorProperties SearchAndReplaceWorker::invalidConductorProperties()