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