Skip to content

refactor: Move platform specific code from QtTrayMenu to tray_linux#137

Merged
ReenigneArcher merged 1 commit into
LizardByte:masterfrom
Kishi85:refactor-platform-code-to-tray-linux
May 26, 2026
Merged

refactor: Move platform specific code from QtTrayMenu to tray_linux#137
ReenigneArcher merged 1 commit into
LizardByte:masterfrom
Kishi85:refactor-platform-code-to-tray-linux

Conversation

@Kishi85
Copy link
Copy Markdown

@Kishi85 Kishi85 commented May 26, 2026

Description

Currently QtTrayMenu checks for WAYLAND_DISPLAY or x11 DISPLAY and sets QT_QPA_PLATFORM if neither is found. This is a linux platform specific workaround that needs moving to tray_linux for QtTrayMenu to be platform independent.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.01%. Comparing base (6b640ef) to head (c49e23d).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/tray_linux.cpp 0.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #137      +/-   ##
==========================================
+ Coverage   63.69%   64.01%   +0.32%     
==========================================
  Files           5        5              
  Lines         617      617              
  Branches      199      199              
==========================================
+ Hits          393      395       +2     
+ Misses        152      148       -4     
- Partials       72       74       +2     
Flag Coverage Δ
Linux-qt5 53.21% <0.00%> (ø)
Linux-qt6 53.21% <0.00%> (ø)
Windows 70.67% <ø> (ø)
macOS 58.40% <ø> (+1.76%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/QtTrayMenu.cpp 54.82% <ø> (+0.82%) ⬆️
src/tray_linux.cpp 60.65% <0.00%> (-1.53%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b640ef...c49e23d. Read the comment docs.

@github-actions
Copy link
Copy Markdown

Last Updated 2026-05-26 13:54:31 UTC
Source Run CI Run #624
Commit c49e23d7b1ebb3936aef06267f266dbff546e959

Screenshot Comparison

PR #137 screenshots vs screenshots baseline.

Matrix: Linux-qt5

Image Baseline PR
tray_icon_initial.png
tray_icon_svg.png
tray_icon_themed.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_left_click.png
tray_menu_shown.png
tray_notification_displayed.png
tray_notification_themed_icon.png

Matrix: Linux-qt6

Image Baseline PR
tray_icon_initial.png
tray_icon_svg.png
tray_icon_themed.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_left_click.png
tray_menu_shown.png
tray_notification_displayed.png
tray_notification_themed_icon.png

Matrix: Windows

Image Baseline PR
tray_icon_initial.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_shown.png
tray_notification_displayed.png

Matrix: macOS

Image Baseline PR
tray_icon_initial.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_shown.png
tray_notification_displayed.png

@ReenigneArcher ReenigneArcher merged commit a0381e7 into LizardByte:master May 26, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants