git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5580 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-11-10 12:29:41 +00:00
parent a620b4067d
commit 56798b3f05
3 changed files with 10 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ void ReplaceElementDialog::buildWidget()
{ {
ElementInfoPartWidget *eipw = new ElementInfoPartWidget(str, QETApp::elementTranslatedInfoKey(str), this); ElementInfoPartWidget *eipw = new ElementInfoPartWidget(str, QETApp::elementTranslatedInfoKey(str), this);
eipw->setEraseTextVisible(true); eipw->setEraseTextVisible(true);
eipw->setPlaceHolderText(tr("Non modifier"));
ui->m_scroll_layout->addWidget(eipw); ui->m_scroll_layout->addWidget(eipw);
m_eipw_list << eipw; m_eipw_list << eipw;
} }

View File

@@ -73,6 +73,14 @@ QString ElementInfoPartWidget::text() const {
return (ui->line_edit->text()); return (ui->line_edit->text());
} }
/**
* @brief ElementInfoPartWidget::setPlaceHolderText
* @param text
*/
void ElementInfoPartWidget::setPlaceHolderText(const QString &text) {
ui->line_edit->setPlaceholderText(text);
}
/** /**
* @brief ElementInfoPartWidget::setFocusTolineEdit * @brief ElementInfoPartWidget::setFocusTolineEdit
* Set the focus to the line edit * Set the focus to the line edit

View File

@@ -36,6 +36,7 @@ class ElementInfoPartWidget : public QWidget
QString key () const {return key_;} QString key () const {return key_;}
void setText (const QString &); void setText (const QString &);
QString text () const; QString text () const;
void setPlaceHolderText (const QString &text);
void setFocusTolineEdit(); void setFocusTolineEdit();
void setEnabled(bool e); void setEnabled(bool e);
void setDisabled(bool d); void setDisabled(bool d);