summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-01-10MathUtils: Fix eslint issues and add missing jsdoc commentJan Holthuis
2022-01-10eslint: Add support for *.mjs filesJan Holthuis
2022-01-09Merge pull request #4583 from JoergAtGithub/Use_makeCompressedConnectionJan Holthuis
Renamed makeUnbufferedConnection and used it for VuMeter controls
2022-01-09Pull latest translations from ↵Daniel Schürmann
https://www.transifex.com/mixxx-dj-software/mixxxdj/mixxx2-4/. Compile QM files out of TS files that are used by the localized app
2022-01-09Update Translation template. Found XXXX source text(s) (1 new and 2764 ↵Daniel Schürmann
already existing)
2022-01-09Merge remote-tracking branch 'upstream/2.3' into mainDaniel Schürmann
2022-01-09Pull latest translations from ↵Daniel Schürmann
https://www.transifex.com/mixxx-dj-software/mixxxdj/mixxx2-3/. Compile QM files out of TS files that are used by the localized app
2022-01-08Merge pull request #4605 from uklotzde/export-track-metadata-paramsUwe Klotz
Sync track metadata: Pass parameters explicitly
2022-01-08Merge pull request #4611 from daschuer/QT_TRANSLATE_NOOPJan Holthuis
Provide a context for QT_TRANSLATE_NOOP
2022-01-08Update Translation template. Found 2645 source text(s) (1 new and 2644 ↵Daniel Schürmann
already existing)
2022-01-08Provide a context for QT_TRANSLATE_NOOPDaniel Schürmann
2022-01-08Merge branch '2.3' of git@github.com:mixxxdj/mixxx.gitUwe Klotz
2022-01-08Revert "replace QT_TR_NOOP with QT_TRANSLATE_NOOP to offer some context."Uwe Klotz
This reverts commit 234ec07aac6c436d9e8d2d87525bcd3e5fef82e6.
2022-01-08Pull latest translations from TransifexUwe Klotz
2022-01-08Update translation templateUwe Klotz
Found 2764 source text(s) (86 new and 2678 already existing) Removed 40 obsolete entries
2022-01-08Merge branch '2.3' of git@github.com:mixxxdj/mixxx.gitUwe Klotz
2022-01-08Merge pull request #4606 from daschuer/changelog_2.3.2Jan Holthuis
Update Changelog towards the 2.3.2 release
2022-01-08Pull latest translations from ↵Daniel Schürmann
https://www.transifex.com/mixxx-dj-software/mixxxdj/mixxx2-3/. Compile QM files out of TS files that are used by the localized app
2022-01-08Update Translation template. Found 2644 source text(s) (1 new and 2643 ↵Daniel Schürmann
already existing)
2022-01-08replace QT_TR_NOOP with QT_TRANSLATE_NOOP to offer some context.Daniel Schürmann
2022-01-08Remove wrong entry and fix typosDaniel Schürmann
2022-01-07Merge pull request #4609 from uklotzde/searchqueryparserronso0
Fix Qt 5.15 build errors
2022-01-07Fix Qt 5.15 build errorsUwe Klotz
2022-01-07Merge pull request #4536 from ronso0/lib-selection-tweaksUwe Klotz
Library track selection tweaks
2022-01-07fixup! Library: keep selection when search is less specificronso0
2022-01-07Merge pull request #4603 from uklotzde/trackdaoJan Holthuis
TrackDAO::saveTrack(): Return success/failure result
2022-01-07Merge pull request #4607 from uklotzde/beats-deserializationJan Holthuis
Beats deserialization: Fix misleading warning logs if no data available
2022-01-07Beats deserialization: Fix misleading warning logs if no data availableUwe Klotz
Warning [Main] Failed to deserialize Beats (""): Invalid beats version
2022-01-07Update Changelog towards the 2.3.2 releaseDaniel Schürmann
2022-01-06SoundSourceProxy: Use SyncTrackMetadataParamsUwe Klotz
2022-01-06Export track metadata: Pass synchronization parameters explicitlyUwe Klotz
Do not rely on side-effects when exporting track metadata. Passing all arguments explicitly improves testability.
2022-01-06Merge pull request #4602 from Holzhaus/soundsource-filetype-detection-fixUwe Klotz
Soundsource filetype detection fix
2022-01-06TrackCollectionManager: Replace qAsConst with std::as_constUwe Klotz
2022-01-06Revert "test: Disable broken check in SoundProxyTest.getTypeFromFile"Jan Holthuis
This reverts commit 66900632bf2d89073ba3fb74e3c278aa6e51df33 because the underlying issue (i.e. SoundSource::getTypeFromFile() not detecting the correct file type if the file has a known but misleading file extension) has been fixed in commit c376317a43463d11bdce6c7c1f646e78fa7bcaf4. Hence, the check can be re-enabled.
2022-01-06SoundSource: Fix broken file type detection if file suffix is misleadingJan Holthuis
If a file is named `foo.wav` but actually contains MP3 data, `SoundSource::getTypeFromFile` should return "mp3", not "wav". This behavior is expected and already tested in `SoundSourceProxyTest.getTypeFromFile`, but due to a bug in our test file creation code, the test operated on a wrong file name and passed although the behavior was broken and the function would just return "wav" in the example above. The reason for this is that QMimeDatabase only looks at the file name when the file suffix is misleading, and thus cannot detect that the file is actually an MP3 file: > The default matching algorithm looks at both the file name and the > file contents, if necessary. The file extension has priority over the > contents, but the contents will be used if the file extension is > unknown, or matches multiple MIME types. > > Source: https://doc.qt.io/qt-5/qmimedatabase.html#mimeTypeForFile This commit fixes `SoundSource::getTypeFromFile` to work as expected by using the file *content* instead of the file name for determining the file type.
2022-01-06Merge remote-tracking branch 'upstream/2.3' into mainDaniel Schürmann
2022-01-05Merge pull request #4600 from Holzhaus/test-fix-tempfile-handlingDaniel Schürmann
Tests: Fix tempfile handling and disable broken MIME type detection check
2022-01-06Merge pull request #4604 from uklotzde/trackrecordSwiftb0y
Linearize control flow in TrackRecord::checkSourceSyncStatus()
2022-01-05Linearize control flow in TrackRecord::checkSourceSyncStatus()Uwe Klotz
2022-01-05TrackDAO::saveTrack(): Return success/failure resultUwe Klotz
2022-01-05test: Disable broken check in SoundProxyTest.getTypeFromFileJan Holthuis
2022-01-05test: Fix tempfile handling and remove unnecessary utility functionsJan Holthuis
The QTemporaryFile/QTemporaryDir classes are very convenient and fit our use cases well, because they can create a temporary file/dir that automatically gets deleted when the object goes out of scope. Instead of using these classes directly, we were using wrappers (namely `generateTemporaryFileName` and `createEmptyTemporaryFile`) that created a temp file and then just returned its name. This renders the QTemporaryFile auto-removal mechanism useless because the object goes out of scope before writing it. To mitigate this, we used a custom `FileRemover` class to work around the broken tempfile auto-removal. This is error-prone and we actually forgot to add it in some tests: https://mixxx.zulipchat.com/#narrow/stream/247620-development-help/topic/git.20ignore.20generated.20test.20files.3F Another major issue with the old API was that we often passed a *filename* to `generateTemporaryFileName` instead of a filename *template*. The distinction is important, because the latter may append random characters to the passed string: > If the file template contains XXXXXX that will automatically be > replaced with the unique part of the filename, otherwise a filename > will be determined automatically based on the static portion specified. > > Source: https://doc.qt.io/qt-5/qtemporaryfile.html#setFileTemplate Hence, the generated temporary file names weren't suitable for tests where the filename was important, such as SoundSourceProxyTest.getTypeFromFile where were didn't actually check wappens in cases where the file suffix is missing, misleading or empty, but unknowingly always checked the case that the suffix is unknown (i.e. instead of testing `file_with_no_file_suffix` we checked `file_with_no_file_suffix.HPqSHg`). This commit removes the APIs that break our tests and replaces them with QTemporaryDir/QTemporaryFile instead, so that the tests work as expected and don't leave temporary files behind.
2022-01-03Merge pull request #4599 from JoergAtGithub/controlobjectscripttest_cleanupJan Holthuis
Controlobjectscripttest cleanup
2022-01-03This fixes the fail of all tests in controlobjectscripttest.cpp on a local ↵JoergAtGithub
Linux build. The fix is copied from controllerscriptenginelegacy_test.cpp where a similar issue occurred. But the comment is adapted, to what was seen with controlobjectscripttest.cpp.
2022-01-03Removed contradictory .WillOnce(Return()) conditions where the cardinality ↵JoergAtGithub
is specified as .Times(0) This generated a warning, which was only visible in verbose mode
2022-01-03Removed unnecessary include statementJoergAtGithub
2022-01-03Renamed makeCompressedConnection to makeUnbufferedConnectionJoergAtGithub
2022-01-03Merge pull request #4591 from Holzhaus/qml-library-model-type-fixUwe Klotz
QML: Don't use parented_ptr for model in QmlLibraryProxy
2022-01-03Merge pull request #4596 from sblaisot/main-2022Uwe Klotz
Happy New Year 2022!
2022-01-02Merge pull request #4598 from uklotzde/soundsourceproxyDaniel Schürmann
Follow-up: SoundSourceProxy cleanup