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

Flag defaulted cue colors #47

Closed
wants to merge 715 commits into from
Closed

Flag defaulted cue colors #47

wants to merge 715 commits into from

Conversation

daschuer
Copy link
Owner

This PR shows a possible solution for the default color problem discussed in mixxxdj#2345

@daschuer
Copy link
Owner Author

The rebased branch, fixing my merge fault is here btw:
ferranpujolcamins#13

src/track/cue.h Outdated
@@ -31,6 +31,7 @@ class Cue : public QObject {

static constexpr double kNoPosition = -1.0;
static const int kNoHotCue = -1;
static const QRgb kDefaultDbColorValue = 0xFF000000; // Black

Choose a reason for hiding this comment

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

I know this isn't going to be displayed, but I'd still prefer making the DB column NULLable and using NULL as the default cue color.

Copy link
Owner Author

Choose a reason for hiding this comment

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

A null-abble column does not come without costs. It is an extra byte per column an null checking everywhere.
The migration will also require a new color column.
Not sure if this is worth.
If you think we need black as a color, we may use 0, black transparent, or 0x01000000 almost black transparent.

uklotzde and others added 14 commits January 2, 2020 13:31
Use qobject_cast for accessing the sender() of received signals
Fix a debug assertion if the track is recognized, but no MusicBrainz
recordings have been found.
Abort pending network replies on client-side timeouts instead of
(unsafely) deleting them. The network reply will be deleted later
when receiving the corresponding finished signal.
...instead of with an empty string. Both work, but NULL is more explicit.
...to consider not only embedded cover art but also image files in
the folder of the track's file. Otherwise the source of the cover
info would be reset to UNKNOWN.
Removes redundant code out of TrackDAO that doesn't belong there!
uklotzde and others added 26 commits January 20, 2020 00:52
shoutcast_internal always 0 bug in master
Soundless joyMIDI: Mapping for joyMIDI
.eslintrc.json: Add rule for indentation style
Fixes this warning:

    src/util/db/dbnamedentity.h:33:9: warning: unused QString [-Wclazy-unused-non-trivial-variable]
            QString normalizedName(normalizeName(name));
            ^
    src/controllers/controllerinputmappingtablemodel.cpp:186:9: warning: unused QString [-Wclazy-unused-non-trivial-variable]
    src/controllers/controlleroutputmappingtablemodel.cpp:154:9: warning: unused QString [-Wclazy-unused-non-trivial-variable]
    src/controllers/controllerpresetfilehandler.cpp:39:5: warning: unused QString [-Wclazy-unused-non-trivial-variable]
    src/effects/lv2/lv2manifest.cpp:45:17: warning: unused QString [-Wclazy-unused-non-trivial-variable]
    src/effects/lv2/lv2manifest.cpp:50:17: warning: unused QString [-Wclazy-unused-non-trivial-variable]
    src/library/browse/browsetablemodel.cpp:301:5: warning: unused QString [-Wclazy-unused-non-trivial-variable]
    src/library/crate/cratefeature.cpp:725:5: warning: unused QList<QString> [-Wclazy-unused-non-trivial-variable]
    src/musicbrainz/musicbrainzclient.cpp:139:9: warning: unused QString [-Wclazy-unused-non-trivial-variable]
    src/preferences/dialog/dlgprefdeck.cpp:118:5: warning: unused QLocale [-Wclazy-unused-non-trivial-variable]
    src/preferences/dialog/dlgprefeq.cpp:389:9: warning: unused QString [-Wclazy-unused-non-trivial-variable]
    src/preferences/dialog/dlgprefeq.cpp:413:9: warning: unused QString [-Wclazy-unused-non-trivial-variable]
    src/skin/legacyskinparser.cpp:1991:5: warning: unused QDomNode [-Wclazy-unused-non-trivial-variable]
    src/test/coverartutils_test.cpp:53:5: warning: unused QImage [-Wclazy-unused-non-trivial-variable]
    src/util/db/dbnamedentity.h:33:9: warning: unused QString [-Wclazy-unused-non-trivial-variable]
This fixes a regression introduced in commit
da19958 which made the control picker
use the normal control instead of the _set_default one.
controllers/controlpickermenu: Fix reset controls not being used
Add missing override and remove unused variables
Fix disappearing fader handles for Deere skin
daschuer pushed a commit that referenced this pull request Jul 14, 2020
Adopt windowForWidget() from qtbase
@github-actions
Copy link

This PR is marked as stale because it has been open 90 days with no activity.

@github-actions github-actions bot added the stale label Oct 22, 2020
@daschuer daschuer closed this Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants