• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IJHack / QtPass / 27694030650
55%

Build:
DEFAULT BRANCH: main
Ran 17 Jun 2026 01:58PM UTC
Jobs 1
Files 80
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jun 2026 01:52PM UTC coverage: 57.238% (-0.2%) from 57.47%
27694030650

push

github

web-flow
refactor(#1511): inject Pass*/AppSettings into dialog layer (#1553)

* refactor(#1511): inject Pass*/AppSettings into dialog layer

- ImportKeyDialog: constructor now takes const QString &gpgExe;
  importFromString() uses m_gpgExe instead of QtPassSettings::getGpgExecutable();
  removes qtpasssettings.h dependency. Call site in usersdialog.cpp updated.

- PasswordDisplayPanel: displayFields() and appendField() now take
  const AppSettings &s; addField() receives it transitively. Replaces
  four QtPassSettings:: reads (clipBoardType, useQrencode, useMonospace,
  hidePassword) with struct fields; removes qtpasssettings.h dependency.
  Tests updated with AppSettings{} default.

- PasswordDialog (second constructor): signature changed to
  (Pass*, const AppSettings&, QString, bool, QWidget*). Settings
  injected at construction time; m_pass stored as member so
  on_createPasswordButton_clicked() and on_accepted() also use it.
  First constructor still resolves Pass* via QtPassSettings::getPass()
  for test compatibility.

Part of the #1511 AppSettings injection series (PR C).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(review): single-snapshot passShowHandler; document m_pass lifetime

- passShowHandler: replace 7 separate QtPassSettings singleton reads
  with one AppSettings s = QtPassSettings::load() at the top of the
  handler; guard conditions (s.hideContent, s.displayAsIs) and the
  AppSettings passed to displayFields() now come from the same snapshot,
  eliminating the mixed-read inconsistency flagged in PR review.

- PasswordDialog first constructor: add a comment explaining that
  m_pass is captured once from the singleton and that this constructor
  is test-only; production always uses the injected-Pass* overload.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

11 of 36 new or added lines in 5 files covered. (30.56%)

20 existing lines in 4 files now uncovered.

3966 of 6929 relevant lines covered (57.24%)

23.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
69.63
0.79% src/passworddialog.cpp
11
27.95
-0.03% src/mainwindow.cpp
1
41.46
0.99% src/importkeydialog.cpp
1
0.0
0.0% src/usersdialog.cpp

Coverage Regressions

Lines Coverage ∆ File
11
0.0
-35.48% src/moc_qpushbuttonwithclipboard.cpp
6
71.59
-5.94% src/passworddisplaypanel.cpp
2
27.95
-0.03% src/mainwindow.cpp
1
16.67
-16.67% src/qtpasssettings.h
Jobs
ID Job ID Ran Files Coverage
1 27694030650.1 17 Jun 2026 01:58PM UTC 80
57.24
GitHub Action Run
Source Files on build 27694030650
  • Tree
  • List 80
  • Changed 10
  • Source Changed 8
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27694030650
  • b95efa9c on github
  • Prev Build on main (#27691522006)
  • Next Build on main (#27697884856)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc