Skip to content

Add UTC relative date-range presets for QSO filters - #1114

Open
aa5sh wants to merge 1 commit into
foldynl:masterfrom
aa5sh:Enhancement-1091
Open

Add UTC relative date-range presets for QSO filters#1114
aa5sh wants to merge 1 commit into
foldynl:masterfrom
aa5sh:Enhancement-1091

Conversation

@aa5sh

@aa5sh aa5sh commented Jul 28, 2026

Copy link
Copy Markdown

Add's data range options to user filters. #1091

Resolve saved '@date-range:*' tokens into UTC half-open date ranges at query time and add UI support and tests.

- core/QSOFilterManager.cpp: Interpret '@date-range:*' tokens with CASE expressions in the generated WHERE clause, bind :today/:tomorrow/:weekStart/:monthStart/:last7Days/:last30Days/:yearStart/:nextYear parameters, and adapt SQL generation to produce proper half-open ranges for different operators.
- ui/QSOFilterDetail.*: Add a date-preset QComboBox, wrap date/date-time editors in container widgets that include the preset selector, toggle visibility of custom editors, and save preset tokens when selected. Adjusted function signatures accordingly and fixed a lambda capture.
- tests/: New QSOFilterManagerTest suite with multiple tests for presets, operators, and manual dates; added to tests.pro.

This enables saved filters to remain relative to current UTC date/time when evaluated and adds coverage to prevent regressions.
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.

1 participant