Fix disabling contents when there is not subwindow selected
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user