Change the update behavious of properties side bar in the main app
This commit is contained in:
1 parent
27bc26465a
commit
d06f333a6e
1 file changed
+9
-2
@@ -225,7 +225,11 @@ void plaYUVerApp::updateProperties()
|
||||
{
|
||||
m_pcStreamProperties->setData( m_pcCurrentSubWindow->getInputStream() );
|
||||
m_pcFrameProperties->setData( m_pcCurrentSubWindow->getInputStream()->getCurrFrame() );
|
||||
//m_pcPropertiesSidebar->setSelection( iface->currentViewArea()->selectedArea() );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pcStreamProperties->setData( m_pcCurrentSubWindow->getInputStream() );
|
||||
m_pcFrameProperties->setData( m_pcCurrentSubWindow->getInputStream()->getCurrFrame() );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -465,11 +469,14 @@ void plaYUVerApp::chageSubWindowSelection()
|
||||
m_pcFrameSlider->setMaximum( activeSubWindow()->getInputStream()->getFrameNum() - 1 );
|
||||
m_pcFrameSlider->setValue( activeSubWindow()->getInputStream()->getCurrFrameNum() );
|
||||
m_pcCurrentSubWindow = activeSubWindow();
|
||||
updateProperties();
|
||||
m_pcStreamProperties->setData( m_pcCurrentSubWindow->getInputStream() );
|
||||
m_pcFrameProperties->setData( m_pcCurrentSubWindow->getInputStream()->getCurrFrame() );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pcCurrentSubWindow = NULL;
|
||||
m_pcStreamProperties->setData( NULL );
|
||||
m_pcFrameProperties->setData( NULL );
|
||||
}
|
||||
updateMenus();
|
||||
createStatusBar();
|
||||
|
||||
Reference in new issue
Block a user