mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5580 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user