Change DialogSubWindowSelector in order to use check boxes
This commit is contained in:
1 parent
1423599894
commit
c0e1dcd460
8 files changed
+114
-190
No files matched your search
+3
-11
@@ -574,25 +574,17 @@ Void VideoHandle::videoSelectionButtonEvent()
|
||||
QStringList cWindowListNames;
|
||||
for( Int i = 0; i < m_acPlayingSubWindows.size(); i++ )
|
||||
{
|
||||
cWindowListNames.append( m_acPlayingSubWindows.at( i )->getWindowName() );
|
||||
dialogWindowsSelection.setSubWindowList( cWindowListNames );
|
||||
dialogWindowsSelection.selectSubWindow( m_acPlayingSubWindows.at( i ) );
|
||||
}
|
||||
if( dialogWindowsSelection.exec() == QDialog::Accepted )
|
||||
{
|
||||
QStringList selectedWindows = dialogWindowsSelection.getSelectedWindows();
|
||||
m_acPlayingSubWindows.clear();
|
||||
VideoSubWindow *videoSubWindow;
|
||||
QString windowName;
|
||||
QList<SubWindowHandle*> subWindowList = m_pcMainWindowManager->findSubWindow( SubWindowHandle::VIDEO_STREAM_SUBWINDOW );
|
||||
QList<SubWindowHandle*> subWindowList = dialogWindowsSelection.getSelectedWindows();
|
||||
for( Int i = 0; i < subWindowList.size(); i++ )
|
||||
{
|
||||
videoSubWindow = qobject_cast<VideoSubWindow*>( subWindowList.at( i ) );
|
||||
windowName = videoSubWindow->getWindowName();
|
||||
if( selectedWindows.contains( windowName ) )
|
||||
{
|
||||
m_acPlayingSubWindows.append( videoSubWindow );
|
||||
videoSubWindow->seekAbsoluteEvent( m_acPlayingSubWindows.at( 0 )->getInputStream()->getCurrFrameNum() );
|
||||
}
|
||||
m_acPlayingSubWindows.append( videoSubWindow );
|
||||
}
|
||||
if( m_acPlayingSubWindows.size() > 0 )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user