mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibGUI: Add PasswordBox
This patch adds a PasswordBox. At the moment, it's simply a TextBox with it's substitution code point set to '*', and the undo and redo actions disabled.
This commit is contained in:
parent
de67d86696
commit
9f0ce2dc81
2 changed files with 15 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/TextEditor.h>
|
||||
|
||||
namespace GUI {
|
||||
|
@ -36,4 +37,10 @@ private:
|
|||
String m_saved_input;
|
||||
};
|
||||
|
||||
class PasswordBox : public TextBox {
|
||||
C_OBJECT(PasswordBox)
|
||||
public:
|
||||
PasswordBox();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue