~mixxxdevelopers/mixxx/cleanup-prefs-1.11

« back to all changes in this revision

Viewing changes to mixxx/src/widget/wnumberpos.cpp

  • Committer: Sean M. Pappalardo
  • Date: 2012-11-27 15:04:19 UTC
  • Revision ID: pegasus@renegadetech.com-20121127150419-f0ivvzoxnkrpix0i
Clarify track time display mode variables in widgets

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
          m_bRemain(false) {
18
18
    m_qsText = "";
19
19
 
20
 
    m_pShowDurationRemaining = new ControlObjectThreadMain(
 
20
    m_pShowTrackTimeRemaining = new ControlObjectThreadMain(
21
21
        ControlObject::getControl(ConfigKey("[Controls]", "ShowDurationRemaining")));
22
 
    connect(m_pShowDurationRemaining, SIGNAL(valueChanged(double)),
 
22
    connect(m_pShowTrackTimeRemaining, SIGNAL(valueChanged(double)),
23
23
            this, SLOT(slotSetRemain(double)));
24
 
    slotSetRemain(m_pShowDurationRemaining->get());
 
24
    slotSetRemain(m_pShowTrackTimeRemaining->get());
25
25
 
26
26
    // TODO(xxx) possible unused m_pRateControl and m_pRateDirControl?
27
27
    m_pRateControl = new ControlObjectThreadWidget(
49
49
WNumberPos::~WNumberPos() {
50
50
    delete m_pTrackSampleRate;
51
51
    delete m_pTrackSamples;
52
 
    delete m_pShowDurationRemaining;
 
52
    delete m_pShowTrackTimeRemaining;
53
53
    delete m_pRateControl;
54
54
    delete m_pRateDirControl;
55
55
}
59
59
 
60
60
    if (leftClick) {
61
61
        setRemain(!m_bRemain);
62
 
        m_pShowDurationRemaining->slotSet(m_bRemain ? 1.0f : 0.0f);
 
62
        m_pShowTrackTimeRemaining->slotSet(m_bRemain ? 1.0f : 0.0f);
63
63
    }
64
64
}
65
65