summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2020-12-08 23:17:49 +0100
committerAnne Jan Brouwer <brouwer@annejan.com>2020-12-08 23:17:49 +0100
commitcdb5823ac363637f90e5d97dd5dd54001e15d022 (patch)
treea7c89b071813874a4a60f6b458f1c926399d5e1e
parentb9dec4bfa797cdcf1375bcc4468097f9f4df067e (diff)
parent0595f17a71882e8884bfc638642873a44049be66 (diff)
Merge branch 'master' into coverity_scan
-rw-r--r--.clang-format126
-rw-r--r--.github/FUNDING.yml3
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md31
-rw-r--r--.github/ISSUE_TEMPLATE/feature_request.md20
-rw-r--r--.github/workflows/ccpp.yml27
-rw-r--r--.gitignore2
-rw-r--r--.travis.yml8
-rw-r--r--CHANGELOG.md73
-rw-r--r--CODE_OF_CONDUCT.md75
-rw-r--r--CONTRIBUTING.md23
-rw-r--r--Doxyfile228
-rw-r--r--FAQ.md2
-rw-r--r--README.md10
-rw-r--r--icons/applications-system.svg2
-rw-r--r--icons/document-new.svg2
-rw-r--r--icons/document-properties.svg2
-rw-r--r--icons/edit-clear.svg2
-rw-r--r--icons/edit-copy.svg2
-rw-r--r--icons/edit-delete.svg2
-rw-r--r--icons/folder-new.svg56
-rw-r--r--icons/go-bottom.svg2
-rw-r--r--icons/go-top.svg2
-rw-r--r--icons/hide.svg1
-rw-r--r--icons/qrcode.svg134
-rw-r--r--icons/view.svg1
-rw-r--r--icons/x-office-address-book.svg2
-rw-r--r--localization/localization_af_ZA.ts1421
-rw-r--r--localization/localization_ar_MA.ts1139
-rw-r--r--localization/localization_bg_BG.ts1400
-rw-r--r--localization/localization_ca.ts932
-rw-r--r--localization/localization_ca_ES.ts1421
-rw-r--r--localization/localization_cs_CZ.ts860
-rw-r--r--localization/localization_cy_GB.ts1177
-rw-r--r--localization/localization_da.ts1421
-rw-r--r--localization/localization_de_DE.ts839
-rw-r--r--localization/localization_de_LU.ts866
-rw-r--r--localization/localization_el_GR.ts1165
-rw-r--r--localization/localization_en_GB.ts792
-rw-r--r--localization/localization_en_US.ts792
-rw-r--r--localization/localization_es_ES.ts986
-rw-r--r--localization/localization_fi_FI.ts1421
-rw-r--r--localization/localization_fr_BE.ts884
-rw-r--r--localization/localization_fr_FR.ts925
-rw-r--r--localization/localization_fr_LU.ts884
-rw-r--r--localization/localization_gl_ES.ts1091
-rw-r--r--localization/localization_he_IL.ts1143
-rw-r--r--localization/localization_hr_HR.ts1421
-rw-r--r--localization/localization_hu_HU.ts1162
-rw-r--r--localization/localization_it_IT.ts793
-rw-r--r--localization/localization_ja_JA.ts1396
-rw-r--r--localization/localization_lb_LU.ts1195
-rw-r--r--localization/localization_nb_NO.ts1185
-rw-r--r--localization/localization_nl_BE.ts1292
-rw-r--r--localization/localization_nl_NL.ts1292
-rw-r--r--localization/localization_pl_PL.ts1133
-rw-r--r--localization/localization_pt_PT.ts858
-rw-r--r--localization/localization_ru_RU.ts868
-rw-r--r--localization/localization_sk_SK.ts1421
-rw-r--r--localization/localization_sq_AL.ts1214
-rw-r--r--localization/localization_sv_SE.ts985
-rw-r--r--localization/localization_tr_TR.ts1189
-rw-r--r--localization/localization_zh_CN.ts840
-rw-r--r--localization/localization_zh_Hant.ts1402
-rw-r--r--main/main.cpp27
-rw-r--r--qtpass.iss2
-rw-r--r--qtpass.plist8
-rw-r--r--qtpass.pri2
-rw-r--r--qtpass.pro27
-rw-r--r--qtpass.spec6
-rw-r--r--resources.qrc21
-rw-r--r--src/configdialog.cpp20
-rw-r--r--src/configdialog.h2
-rw-r--r--src/configdialog.ui36
-rw-r--r--src/executor.cpp8
-rw-r--r--src/imitatepass.cpp90
-rw-r--r--src/imitatepass.h4
-rw-r--r--src/keygendialog.cpp21
-rw-r--r--src/mainwindow.cpp52
-rw-r--r--src/mainwindow.ui16
-rw-r--r--src/pass.cpp12
-rw-r--r--src/pass.h2
-rw-r--r--src/qpushbuttonshowpassword.cpp34
-rw-r--r--src/qpushbuttonshowpassword.h30
-rw-r--r--src/qtpass.cpp51
-rw-r--r--src/qtpass.h2
-rw-r--r--src/qtpasssettings.cpp10
-rw-r--r--src/qtpasssettings.h4
-rw-r--r--src/realpass.cpp9
-rw-r--r--src/realpass.h4
-rw-r--r--src/settingsconstants.cpp3
-rw-r--r--src/settingsconstants.h1
-rw-r--r--src/simpletransaction.cpp16
-rw-r--r--src/src.pro60
-rw-r--r--src/storemodel.cpp46
-rw-r--r--src/trayicon.cpp2
-rw-r--r--src/usersdialog.cpp27
-rw-r--r--src/usersdialog.ui4
-rw-r--r--src/util.cpp20
98 files changed, 38282 insertions, 4440 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..e2397ec9
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,126 @@
+---
+Language: Cpp
+# BasedOnStyle: LLVM
+AccessModifierOffset: -2
+AlignAfterOpenBracket: Align
+AlignConsecutiveAssignments: false
+AlignConsecutiveDeclarations: false
+AlignEscapedNewlines: Right
+AlignOperands: true
+AlignTrailingComments: true
+AllowAllArgumentsOnNextLine: true
+AllowAllConstructorInitializersOnNextLine: true
+AllowAllParametersOfDeclarationOnNextLine: true
+AllowShortBlocksOnASingleLine: false
+AllowShortCaseLabelsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: All
+AllowShortLambdasOnASingleLine: All
+AllowShortIfStatementsOnASingleLine: Never
+AllowShortLoopsOnASingleLine: false
+AlwaysBreakAfterDefinitionReturnType: None
+AlwaysBreakAfterReturnType: None
+AlwaysBreakBeforeMultilineStrings: false
+AlwaysBreakTemplateDeclarations: MultiLine
+BinPackArguments: true
+BinPackParameters: true
+BraceWrapping:
+ AfterCaseLabel: false
+ AfterClass: false
+ AfterControlStatement: false
+ AfterEnum: false
+ AfterFunction: false
+ AfterNamespace: false
+ AfterObjCDeclaration: false
+ AfterStruct: false
+ AfterUnion: false
+ AfterExternBlock: false
+ BeforeCatch: false
+ BeforeElse: false
+ IndentBraces: false
+ SplitEmptyFunction: true
+ SplitEmptyRecord: true
+ SplitEmptyNamespace: true
+BreakBeforeBinaryOperators: None
+BreakBeforeBraces: Attach
+BreakBeforeInheritanceComma: false
+BreakInheritanceList: BeforeColon
+BreakBeforeTernaryOperators: true
+BreakConstructorInitializersBeforeComma: false
+BreakConstructorInitializers: BeforeColon
+BreakAfterJavaFieldAnnotations: false
+BreakStringLiterals: true
+ColumnLimit: 80
+CommentPragmas: '^ IWYU pragma:'
+CompactNamespaces: false
+ConstructorInitializerAllOnOneLineOrOnePerLine: false
+ConstructorInitializerIndentWidth: 4
+ContinuationIndentWidth: 4
+Cpp11BracedListStyle: true
+DerivePointerAlignment: false
+DisableFormat: false
+ExperimentalAutoDetectBinPacking: false
+FixNamespaceComments: true
+ForEachMacros:
+ - foreach
+ - Q_FOREACH
+ - BOOST_FOREACH
+IncludeBlocks: Preserve
+IncludeCategories:
+ - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
+ Priority: 2
+ - Regex: '^(<|"(gtest|gmock|isl|json)/)'
+ Priority: 3
+ - Regex: '.*'
+ Priority: 1
+IncludeIsMainRegex: '(Test)?$'
+IndentCaseLabels: false
+IndentPPDirectives: None
+IndentWidth: 2
+IndentWrappedFunctionNames: false
+JavaScriptQuotes: Leave
+JavaScriptWrapImports: true
+KeepEmptyLinesAtTheStartOfBlocks: true
+MacroBlockBegin: ''
+MacroBlockEnd: ''
+MaxEmptyLinesToKeep: 1
+NamespaceIndentation: None
+ObjCBinPackProtocolList: Auto
+ObjCBlockIndentWidth: 2
+ObjCSpaceAfterProperty: false
+ObjCSpaceBeforeProtocolList: true
+PenaltyBreakAssignment: 2
+PenaltyBreakBeforeFirstCallParameter: 19
+PenaltyBreakComment: 300
+PenaltyBreakFirstLessLess: 120
+PenaltyBreakString: 1000
+PenaltyBreakTemplateDeclaration: 10
+PenaltyExcessCharacter: 1000000
+PenaltyReturnTypeOnItsOwnLine: 60
+PointerAlignment: Right
+ReflowComments: true
+SortIncludes: true
+SortUsingDeclarations: true
+SpaceAfterCStyleCast: false
+SpaceAfterLogicalNot: false
+SpaceAfterTemplateKeyword: true
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeCpp11BracedList: false
+SpaceBeforeCtorInitializerColon: true
+SpaceBeforeInheritanceColon: true
+SpaceBeforeParens: ControlStatements
+SpaceBeforeRangeBasedForLoopColon: true
+SpaceInEmptyParentheses: false
+SpacesBeforeTrailingComments: 1
+SpacesInAngles: false
+SpacesInContainerLiterals: true
+SpacesInCStyleCastParentheses: false
+SpacesInParentheses: false
+SpacesInSquareBrackets: false
+Standard: Cpp11
+StatementMacros:
+ - Q_UNUSED
+ - QT_REQUIRE_VERSION
+TabWidth: 8
+UseTab: Never
+...
+
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 00000000..459cfdab
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1,3 @@
+# These are supported funding model platforms
+
+github: annejan
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 00000000..5233631c
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,31 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: ''
+labels: bug
+assignees: ''
+
+---
+
+**Describe the bug**
+A clear and concise description of what the bug is.
+
+**To Reproduce**
+Steps to reproduce the behavior:
+1. Open '...'
+2. Click on '....'
+3. Scroll down to '....'
+4. See error
+
+**Expected behavior**
+A clear and concise description of what you expected to happen.
+
+**Screenshots**
+If applicable, add screenshots to help explain your problem.
+
+**Desktop (please complete the following information):**
+ - OS/Distribution: [e.g. Ubuntu 20.04]
+ - Version [e.g. 1.2.3]
+
+**Additional context**
+Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 00000000..cb310f26
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,20 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: ''
+labels: feature_request
+assignees: ''
+
+---
+
+**Is your feature request related to a problem? Please describe.**
+A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+
+**Describe the solution you'd like**
+A clear and concise description of what you want to happen.
+
+**Describe alternatives you've considered**
+A clear and concise description of any alternative solutions or features you've considered.
+
+**Additional context**
+Add any other context or screenshots about the feature request here.
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml
new file mode 100644
index 00000000..04b3007b
--- /dev/null
+++ b/.github/workflows/ccpp.yml
@@ -0,0 +1,27 @@
+name: QMake
+on: [push, pull_request]
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ include:
+ - os: ubuntu-latest
+ make: make
+ - os: macos-latest
+ make: make
+ - os: windows-latest
+ make: nmake
+ steps:
+ - uses: actions/checkout@v1
+ - uses: ilammy/msvc-dev-cmd@v1
+ - name: Install Qt
+ uses: jurplel/install-qt-action@v2
+ - name: qmake
+ run: qmake
+ - name: make
+ run: ${{matrix.make}}
+ - name: make check
+ run: ${{matrix.make}} check TESTARGS="--platform offscreen"
diff --git a/.gitignore b/.gitignore
index ded98b04..27a39d61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,3 +38,5 @@ README.rtf
html/**
rtf/**
latex/**
+qmake_qmake_qm_files.qrc
+src/.qm/
diff --git a/.travis.yml b/.travis.yml
index 7a13add3..f5f50b3f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,6 @@
language: cpp
dist: bionic
+osx_image: xcode12.2
sudo: true
os:
- linux
@@ -9,7 +10,7 @@ env:
global:
secure: WaZq3f6KIAc0dnR4WOXYWDvUYiqlrzsZC/PQse47FnvC0oQC65J5w3kJOj/P26DgsUEqKQF3ukXogkM2mp5pS4+CMgivEmQmAbgQTtwcKpC5HPZxgI+8FgkCjcalJKWGWYoxlScNVNiKMs+89ApcSQE9kH9PZeUS9dukN2Php1U=
before_install:
-- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:beineri/opt-qt-5.12.3-bionic; fi
+- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:beineri/opt-qt-5.15.2-bionic; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
addons:
coverity_scan:
@@ -22,7 +23,6 @@ addons:
branch_pattern: coverity_scan
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
-- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew unlink node; brew install node; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew ls | grep -wq qt5 || brew install qt5; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew upgrade coreutils; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH=$PATH:/usr/local/opt/qt5/bin; fi
@@ -31,7 +31,7 @@ install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then nvm use 12; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then npm install -g appdmg; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update; fi
-- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install qt512base qt512tools qt512svg libgl1-mesa-dev; fi
+- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install qt515base qt515tools qt515svg libgl1-mesa-dev; fi
- if [[ "$TRAVIS_OS_NAME" = "linux" && "$CC" = "gcc" ]]; then sudo apt-get -qq install g++-6 gcc-6; fi
- if [[ "$TRAVIS_OS_NAME" = "linux" && "$CC" = "gcc" ]]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6; fi
- if [[ "$TRAVIS_OS_NAME" = "linux" && "$CC" = "gcc" ]]; then sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-6 90; fi
@@ -39,7 +39,7 @@ install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then gem install coveralls-lcov; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install lcov; fi
before_script:
-- if [ "$TRAVIS_OS_NAME" = "linux" ]; then source /opt/qt512/bin/qt512-env.sh; fi
+- if [ "$TRAVIS_OS_NAME" = "linux" ]; then source /opt/qt515/bin/qt515-env.sh; fi
- "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash"
- qmake -v
script:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5aaa4b60..b1edd942 100644
--- a/