Check for DQT_NO_CAST_FROM_ASCII
ClosedPublic

Authored by astippich on Jun 25 2019, 6:32 PM.

Details

Summary

Check for DQT_NO_CAST_FROM_ASCII by removing
the removal of the definition and change all
required instances

Diff Detail

Repository
R824 Baloo Widgets
Branch
cleanup
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 13352
Build 13370: arc lint + arc unit
astippich created this revision.Jun 25 2019, 6:32 PM
Restricted Application added a project: Baloo. · View Herald TranscriptJun 25 2019, 6:32 PM
Restricted Application added a subscriber: Baloo. · View Herald Transcript
astippich requested review of this revision.Jun 25 2019, 6:32 PM
astippich added a comment.EditedJun 25 2019, 6:33 PM

Hopefully did everything right. The only bigger change is in FileMetaDataProvider::label(...)
Everything is changed to get it compiling, string concatenation etc are otherwise left unchanged

bruns added inline comments.Jun 26 2019, 2:58 PM
autotests/filemetadatadatedisplaytest.cpp
44

use the QLocale(Language, Country) constructor here, dito below.
https://doc.qt.io/qt-5/qlocale.html#QLocale-2

src/filemetadataprovider.cpp
410–411

You can use an initializer list here, like in FileMetaDataProvider::label(...)

src/kedittagsdialog.cpp
135

.endsWith has a QLatin1String overload

astippich updated this revision to Diff 60745.Jun 27 2019, 8:17 PM
  • use qlatin1string for endswith
  • use enums for qlocale
  • use initializer list
bruns added inline comments.Jun 27 2019, 9:51 PM
src/kcommentwidget.cpp
73

... + comment.toHtmlEscaped() + ...

astippich updated this revision to Diff 60832.Jun 29 2019, 10:14 AM
  • remove unrequired QString()
bruns accepted this revision.Jun 29 2019, 3:51 PM
This revision is now accepted and ready to land.Jun 29 2019, 3:51 PM
This revision was automatically updated to reflect the committed changes.