Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression in ctkDateRangeWidget #1086

Merged

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Apr 14, 2023

Additionally:

  • Remove obsolete error message in ctkDateRangeWidget::displayTime
  • Fix QDateTime deprecation warnings in ctkDateRangeWidgetTest1
  • Simplify handling of Qt4 & Qt5 API differences in ctkDateRangeWidget

@jcfr jcfr requested a review from jamesobutler April 14, 2023 06:51
Copy link
Contributor

@jamesobutler jamesobutler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Changes make sense.

jcfr added 4 commits June 3, 2023 14:44
This commit fixes ctkDateRangeWidgetTest1 failure introduced
in 591820e (COMP: Fix QDateTime Start and End time deprecation warning)
Following 9021b4f (Cleanup ctkDateRangeWidget), support for displaying
time was introduced.
This commit fixes warings like the following:

  /path/to/CTK/Libs/Widgets/Testing/Cpp/ctkDateRangeWidgetTest1.cpp:41:51: warning: ‘QDateTime::QDateTime(const QDate&)’ is deprecated: Use QDate::startOfDay() [-Wdeprecated-declarations]
     41 |   QDateTime today = QDateTime(QDate::currentDate());
        |                                                   ^
…Widget

Partially revert 591820e (COMP: Fix QDateTime Start and End time
deprecation warning) removing the introduction of "startOfDay" and
"endOfDay" ivars.
@jamesobutler jamesobutler force-pushed the fix-ctkDateRangeWidget-regression branch from 82e8b95 to d403489 Compare June 3, 2023 18:44
@jamesobutler jamesobutler merged commit ff517a3 into commontk:master Jun 3, 2023
3 checks passed
@jcfr jcfr deleted the fix-ctkDateRangeWidget-regression branch June 14, 2023 05:05
@jcfr jcfr mentioned this pull request Jun 15, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants