Fix disabling contents when there is not subwindow selected

This commit is contained in:
2015-03-12 18:43:36 +00:00
parent 645a94bcdf
commit 204a07cb93
5 changed files with 24 additions and 12 deletions
+8 -1
View File
@@ -48,7 +48,7 @@ QualityMeasurementSidebar::QualityMeasurementSidebar( QWidget* parent, PlaYUVerS
RecLabel->setAlignment( Qt::AlignVCenter | Qt::AlignRight );
m_comboBoxMetric = new QComboBox;
for( UInt i=0; i<PlaYUVerFrame::supportedQualityMetricsList().size();i++ )
for( UInt i = 0; i < PlaYUVerFrame::supportedQualityMetricsList().size(); i++ )
{
m_comboBoxMetric->insertItem( i, PlaYUVerFrame::supportedQualityMetricsList()[i].c_str() );
}
@@ -120,6 +120,13 @@ QSize QualityMeasurementSidebar::sizeHint() const
return currSize;
}
Void QualityMeasurementSidebar::updateSideBar( Bool hasSubWindow )
{
if( !hasSubWindow )
m_comboBoxRef->clear();
setEnabled( hasSubWindow );
}
Void QualityMeasurementSidebar::updateSubWindowList()
{
QString currSubWindowName;