Hi JAmes,

Thank you for contributing to Mixxx.

I am not 100 % clear what how the final feature will look like.

Is it similar to https://bugs.launchpad.net/mixxx/+bug/1505408 ?

If yes, you may describe your feature there and assign the bug to
yourselves.
If not file a new one.

The duration for playlists is shown here:
https://github.com/mixxxdj/mixxx/blob/8f70bdcb277ed67e6bc53993c1bc97e8c160e141/src/library/playlistfeature.cpp#L168
and calculated here:
https://github.com/mixxxdj/mixxx/blob/8f70bdcb277ed67e6bc53993c1bc97e8c160e141/src/library/playlistfeature.cpp#L133

This link might be help in general:
http://www.mixxx.org/wiki/doku.php/bugfix_workflow

If you need help on your code, just issue a normal GitHub pull request and
ask your questions there.

Hope that helps.

Kind regards,

Daniel





2015-10-15 8:10 GMT+02:00 JAmes Atwill <jatwill+mi...@linuxstuff.org>:

> Hi,
>
> I've been wanting a feature in AutoDJ where the total duration of the
> selected tracks would be visible somewhere so I can estimate how much
> of a set I've put together. I thought this would be a decent way to
> dive into C++, Qt and associated tooling.
>
> I've connected the trackSelected signal to a slot in DlgAutoDJ.
>
> My method grabs the selectedRows of the m_pTrackTableView and I want
> to call getTrackModel()->getTrack(...) except that getTrackModel is
> private which makes me believe I've likely come about this the wrong
> way.
>
> To play around, I made it public and I'm able to sum the total
> duration ( pTrack->getDuration ) and print in a qDebug statement.
> (I've added a QLabel to dlgautodj.ui where the result will ultimately
> go.)
>
> I appreciate an actual C++ developer could do this in five minutes,
> but there are handful of other tiny things I'd love to make Mixxx do
> and figured this would be a good way to cut my teeth.
>
> What's the best way to get the trackmodel, or am I coming about this wrong
> way?
>
> Thanks!
>
>   JAmes
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> http://mixxx.org
>
>
> Mixxx-devel mailing list
> Mixxx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>
------------------------------------------------------------------------------
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to