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

IJHack / QtPass / 23795245986
21%
master: 7%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 31 Mar 2026 11:40AM UTC
Jobs 1
Files 62
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

31 Mar 2026 11:36AM UTC coverage: 18.476% (+0.2%) from 18.252%
23795245986

push

github

web-flow
Fix memory leak in QR code popup dialog (#863)

* Fix memory leak in QR code popup dialog

The QDialog created in showTextAsQRCode() was never deleted after
exec() returned, causing a memory leak.

Fix by adding Qt::WA_DeleteOnClose attribute to ensure the dialog
is deleted when closed.

* 📝 CodeRabbit Chat: Add unit tests for changes

* test: remove flaky QR popup auto-deletion test

The qrCodePopupDeletesItselfOnClose test was unreliable - WA_DeleteOnClose
does not guarantee immediate deletion on Qt::Popup windows. The remaining
tests verify:
- Attribute is correctly set (qrCodePopupHasDeleteOnCloseAttribute)
- Without attribute, no auto-deletion occurs

Also fixed clang-format formatting on CodeRabbit's test additions.

* test: add QR popup auto-deletion test using QTRY_VERIFY

The QTRY_VERIFY macro handles the asynchronous nature of Qt::WA_DeleteOnClose
deletion, making the test reliable across different platforms.

Test verifies that a QDialog with Qt::Popup | Qt::FramelessWindowHint
and WA_DeleteOnClose attribute is properly deleted when close() is called.

* test: add codecov coverage for QR popup createQRCodePopup

Extract createQRCodePopup as a static public method to enable direct
testing. This provides codecov coverage for the memory leak fix line
popup->setAttribute(Qt::WA_DeleteOnClose) in showTextAsQRCode.

The test verifies that QtPass::createQRCodePopup creates a QDialog
with Qt::WA_DeleteOnClose attribute set.

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

12 of 13 new or added lines in 1 file covered. (92.31%)

58 existing lines in 1 file now uncovered.

931 of 5039 relevant lines covered (18.48%)

7.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
4.84
4.84% src/qtpass.cpp

Coverage Regressions

Lines Coverage ∆ File
58
0.0
0.0% src/ui_mainwindow.h
Jobs
ID Job ID Ran Files Coverage
1 23795245986.1 31 Mar 2026 11:40AM UTC 62
18.48
GitHub Action Run
Source Files on build 23795245986
  • Tree
  • List 62
  • Changed 5
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23795245986
  • a62691ba on github
  • Prev Build on main (#23762796827)
  • Next Build on main (#23796914231)
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