diff options
| author | Josh Ferrell <josh@vector35.com> | 2023-11-10 15:21:09 -0500 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2023-11-10 17:53:15 -0500 |
| commit | a39efb484087474fdf18a40249bf0bb5b608b6f3 (patch) | |
| tree | 54a0b54ea5ddb5474a9eef425c2e6750c5b37ba5 | |
| parent | 97fdc533b6ba68820652d9e8c2da36a92706dacf (diff) | |
Add "password" setting type
| -rw-r--r-- | binaryninjaapi.h | 2 | ||||
| -rw-r--r-- | ui/passwordedit.h | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index c04c903d..99eb1344 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -14731,7 +14731,7 @@ namespace BinaryNinja { Property JSON Data Type Prerequisite Optional {Allowed Values} and Notes ================== ====================================== ================== ======== ======================================================================= "title" string None No Concise Setting Title - "type" string None No {"array", "boolean", "number", "string"} + "type" string None No {"array", "boolean", "number", "password", "string"} "elementType" string "type" is "array" No {"string"} "enum" array : {string} "type" is "array" Yes Enumeration definitions "enumDescriptions" array : {string} "type" is "array" Yes Enumeration descriptions that match "enum" array diff --git a/ui/passwordedit.h b/ui/passwordedit.h new file mode 100644 index 00000000..7c34c49e --- /dev/null +++ b/ui/passwordedit.h @@ -0,0 +1,13 @@ +#pragma once + +#include <QtWidgets/QLineEdit> +#include "uitypes.h" + +class BINARYNINJAUIAPI PasswordEdit: public QLineEdit +{ +public: + PasswordEdit(QWidget* parent = nullptr); + + virtual void focusInEvent(QFocusEvent* e) override; + virtual void focusOutEvent(QFocusEvent* e) override; +}; |
