Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PasswordField widget #133

Merged
merged 5 commits into from
Nov 16, 2024
Merged

Add PasswordField widget #133

merged 5 commits into from
Nov 16, 2024

Conversation

gbaudic
Copy link
Contributor

@gbaudic gbaudic commented Nov 13, 2024

So, this is an old (8 years old) addition I made to my fork of guisan and for some reason, never contributed back to the main repo. Basically, it is just a text field but with hidden text, which is suitable for - you guessed it - passwords.

I quickly updated it a few days ago to adjust to the upstream changes, but it may need some more improvements before merging. In particular, it may be good to make the masking character configurable through a setter.

include/guisan/widgets/passwordfield.hpp Outdated Show resolved Hide resolved
src/widgets/passwordfield.cpp Outdated Show resolved Hide resolved
src/widgets/passwordfield.cpp Outdated Show resolved Hide resolved
include/guisan/widgets/passwordfield.hpp Outdated Show resolved Hide resolved
gbaudic and others added 2 commits November 14, 2024 19:24
Co-authored-by: Joris Dauphin <Jarod42@users.noreply.github.com>
Copy link
Collaborator

@Jarod42 Jarod42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add it in sample.

include/guisan/widgets/passwordfield.hpp Outdated Show resolved Hide resolved
*
* @param mask the masking character
*/
void setMaskingChar(const char mask);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getter might be useful too.

gbaudic and others added 2 commits November 15, 2024 19:47
Co-authored-by: Joris Dauphin <Jarod42@users.noreply.github.com>
@Jarod42 Jarod42 merged commit 9632225 into kallisti5:master Nov 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants