comparison widgets/ItemEditDialog.cpp @ 938:2564d0865feb tonioni

Signal/slot compatibility fixes
author Chris Cannam
date Mon, 30 Mar 2015 17:27:44 +0100
parents 4a578a360011
children c8a6fd3f9dff
comparison
equal deleted inserted replaced
937:5a978d540d55 938:2564d0865feb
74 m_frameTimeSpinBox = new QSpinBox; 74 m_frameTimeSpinBox = new QSpinBox;
75 m_frameTimeSpinBox->setMaximum(INT_MAX); 75 m_frameTimeSpinBox->setMaximum(INT_MAX);
76 m_frameTimeSpinBox->setSuffix(tr(" frames")); 76 m_frameTimeSpinBox->setSuffix(tr(" frames"));
77 subgrid->addWidget(m_frameTimeSpinBox, subrow, 1, 1, 2); 77 subgrid->addWidget(m_frameTimeSpinBox, subrow, 1, 1, 2);
78 connect(m_frameTimeSpinBox, SIGNAL(valueChanged(int)), 78 connect(m_frameTimeSpinBox, SIGNAL(valueChanged(int)),
79 this, SLOT(frameTimeChanged(sv_frame_t))); 79 this, SLOT(frameTimeChanged(int)));
80 80
81 ++subrow; 81 ++subrow;
82 82
83 m_realTimeSecsSpinBox = new QSpinBox; 83 m_realTimeSecsSpinBox = new QSpinBox;
84 m_realTimeSecsSpinBox->setMaximum(999999); 84 m_realTimeSecsSpinBox->setMaximum(999999);
105 m_frameDurationSpinBox = new QSpinBox; 105 m_frameDurationSpinBox = new QSpinBox;
106 m_frameDurationSpinBox->setMaximum(INT_MAX); 106 m_frameDurationSpinBox->setMaximum(INT_MAX);
107 m_frameDurationSpinBox->setSuffix(tr(" frames")); 107 m_frameDurationSpinBox->setSuffix(tr(" frames"));
108 subgrid->addWidget(m_frameDurationSpinBox, subrow, 1, 1, 2); 108 subgrid->addWidget(m_frameDurationSpinBox, subrow, 1, 1, 2);
109 connect(m_frameDurationSpinBox, SIGNAL(valueChanged(int)), 109 connect(m_frameDurationSpinBox, SIGNAL(valueChanged(int)),
110 this, SLOT(frameDurationChanged(sv_frame_t))); 110 this, SLOT(frameDurationChanged(int)));
111 111
112 ++subrow; 112 ++subrow;
113 113
114 m_realDurationSecsSpinBox = new QSpinBox; 114 m_realDurationSecsSpinBox = new QSpinBox;
115 m_realDurationSecsSpinBox->setMaximum(999999); 115 m_realDurationSecsSpinBox->setMaximum(999999);
285 { 285 {
286 return m_textField->text(); 286 return m_textField->text();
287 } 287 }
288 288
289 void 289 void
290 ItemEditDialog::frameTimeChanged(sv_frame_t i) 290 ItemEditDialog::frameTimeChanged(int i)
291 { 291 {
292 m_realTimeSecsSpinBox->blockSignals(true); 292 m_realTimeSecsSpinBox->blockSignals(true);
293 m_realTimeUSecsSpinBox->blockSignals(true); 293 m_realTimeUSecsSpinBox->blockSignals(true);
294 294
295 RealTime rt(RealTime::frame2RealTime(i, m_sampleRate)); 295 RealTime rt(RealTime::frame2RealTime(i, m_sampleRate));
320 m_frameTimeSpinBox->setValue(int(frame)); 320 m_frameTimeSpinBox->setValue(int(frame));
321 m_resetButton->setEnabled(true); 321 m_resetButton->setEnabled(true);
322 } 322 }
323 323
324 void 324 void
325 ItemEditDialog::frameDurationChanged(sv_frame_t i) 325 ItemEditDialog::frameDurationChanged(int i)
326 { 326 {
327 m_realDurationSecsSpinBox->blockSignals(true); 327 m_realDurationSecsSpinBox->blockSignals(true);
328 m_realDurationUSecsSpinBox->blockSignals(true); 328 m_realDurationUSecsSpinBox->blockSignals(true);
329 329
330 RealTime rt(RealTime::frame2RealTime(i, m_sampleRate)); 330 RealTime rt(RealTime::frame2RealTime(i, m_sampleRate));