PasswordDialog: merge components and bug fixes

This commit merges PasswordDialog, PassphraseDialog and
NewPasswordDialog. Also the following bugs were fixed:

- Wizard pages still being active when opening a wallet
  from wizard.
- Capslock detection was buggy when copy pasting password, I
  replaced it with native implementations for each platform.
- isAlpha could throw errors when using special characters.
This commit is contained in:
selsta
2019-07-01 11:44:33 +02:00
parent c7956f76ea
commit 35a0f25b57
13 changed files with 369 additions and 713 deletions

View File

@@ -67,7 +67,8 @@ HEADERS += \
src/qt/mime.h \
src/qt/KeysFiles.h \
src/qt/utils.h \
src/qt/prices.h
src/qt/prices.h \
src/qt/macoshelper.h
SOURCES += main.cpp \
filter.cpp \
@@ -332,7 +333,8 @@ linux {
-llmdb \
-lsodium \
-lhidapi-libusb \
-lcrypto $$TREZOR_LINKER
-lcrypto $$TREZOR_LINKER \
-lX11
if(!android) {
LIBS+= \
@@ -357,6 +359,8 @@ macx {
# message("using static libraries")
# LIBS+= -Wl,-Bstatic
# }
QT += macextras
OBJECTIVE_SOURCES += src/qt/macoshelper.mm
LIBS+= \
-L/usr/local/lib \
-L/usr/local/opt/openssl/lib \
@@ -370,6 +374,7 @@ macx {
-lboost_chrono \
-lboost_program_options \
-framework CoreFoundation \
-framework AppKit \
-lhidapi \
-lssl \
-lsodium \