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

IJHack / QtPass / 27694030650

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

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/moc_qpushbuttonwithclipboard.cpp


Source Not Available

The file "src/moc_qpushbuttonwithclipboard.cpp" isn't available on github. Either it's been removed, or the repo root directory needs to be updated.

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