Commit bd29f3ef authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated method

parent 10239d3a
......@@ -85,7 +85,7 @@ void ChatWidget::addText(const Message& message) {
}
void ChatWidget::setPasswordMode ( bool pwMode ) {
ui->line->setPasswordMode ( pwMode );
ui->line->setEchoMode(pwMode ? QLineEdit::Password : QLineEdit::Normal);
}
void ChatWidget::sendButtonClicked() {
......
......@@ -91,8 +91,8 @@
<property name="showClearButton" stdset="0">
<bool>true</bool>
</property>
<property name="passwordMode">
<bool>true</bool>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment