password_input.cpp 567 B

1234567891011121314151617181920
  1. // This file is part of Desktop App Toolkit,
  2. // a set of libraries for developing nice desktop applications.
  3. //
  4. // For license and copyright information please follow this link:
  5. // https://github.com/desktop-app/legal/blob/master/LEGAL
  6. //
  7. #include "ui/widgets/fields/password_input.h"
  8. namespace Ui {
  9. PasswordInput::PasswordInput(
  10. QWidget *parent,
  11. const style::InputField &st,
  12. rpl::producer<QString> placeholder,
  13. const QString &val)
  14. : MaskedInputField(parent, st, std::move(placeholder), val) {
  15. QLineEdit::setEchoMode(QLineEdit::Password);
  16. }
  17. } // namespace Ui