Fixed compile; removed useless use of qRound with integers
qRound of an integer type never made sense. Since 2dcd3939a8bd5ff743e4c87f87b2d81b1a101467 in qtbase, it won't compile any more. Change-Id: Ia30334bc92236d0fef9b6ac99d65bae4fe79dc57 Reviewed-on: http://codereview.qt.nokia.com/1905 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
4271cbcaf1
commit
01dac3cf55
@@ -117,7 +117,7 @@ void AudioRecorder::updateProgress(qint64 duration)
|
|||||||
if (capture->error() != QMediaRecorder::NoError || duration < 2000)
|
if (capture->error() != QMediaRecorder::NoError || duration < 2000)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ui->statusbar->showMessage(tr("Recorded %1 sec").arg(qRound(duration / 1000)));
|
ui->statusbar->showMessage(tr("Recorded %1 sec").arg(duration / 1000));
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioRecorder::updateState(QMediaRecorder::State state)
|
void AudioRecorder::updateState(QMediaRecorder::State state)
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ QSize QGstUtils::capsCorrectedResolution(const GstCaps *caps)
|
|||||||
if (!size.isEmpty() && gst_structure_get_fraction(
|
if (!size.isEmpty() && gst_structure_get_fraction(
|
||||||
structure, "pixel-aspect-ratio", &aspectNum, &aspectDenum)) {
|
structure, "pixel-aspect-ratio", &aspectNum, &aspectDenum)) {
|
||||||
if (aspectDenum > 0)
|
if (aspectDenum > 0)
|
||||||
size.setWidth(qRound(size.width()*aspectNum/aspectDenum));
|
size.setWidth(size.width()*aspectNum/aspectDenum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user