Add function to select the initial window selection list
This commit is contained in:
1 parent
ca19f32dce
commit
2a657477dc
3 files changed
+16
-2
No files matched your search
@@ -118,6 +118,14 @@ Void DialogSubWindowSelector::updateSubWindowList()
|
||||
m_comboBoxWindowList->setCurrentIndex( -1 );
|
||||
}
|
||||
|
||||
Void DialogSubWindowSelector::setSubWindowList( QStringList cWindowListNames )
|
||||
{
|
||||
m_pcSelectedWindowListNames = cWindowListNames;
|
||||
m_listSelectedWindows->clear();
|
||||
m_listSelectedWindows->insertItems( 0, cWindowListNames );
|
||||
updateSubWindowList();
|
||||
}
|
||||
|
||||
// ----------------------- Slot Functions -----------------------
|
||||
|
||||
void DialogSubWindowSelector::addSubWindow()
|
||||
|
||||
@@ -52,6 +52,8 @@ Q_OBJECT
|
||||
|
||||
public:
|
||||
DialogSubWindowSelector( QWidget *parent = 0, QMdiArea *mdiArea = 0 );
|
||||
|
||||
Void setSubWindowList( QStringList cWindowListNames );
|
||||
QStringList getSelectedWindows()
|
||||
{
|
||||
return m_pcSelectedWindowListNames;
|
||||
@@ -68,8 +70,6 @@ private:
|
||||
|
||||
Void updateSubWindowList();
|
||||
|
||||
|
||||
|
||||
private Q_SLOTS:
|
||||
void addSubWindow();
|
||||
void removeSubWindow();
|
||||
|
||||
@@ -539,6 +539,12 @@ void plaYUVerApp::lockButtonEvent()
|
||||
void plaYUVerApp::videoSelectionButtonEvent()
|
||||
{
|
||||
DialogSubWindowSelector dialogWindowsSelection( this, mdiArea );
|
||||
QStringList cWindowListNames;
|
||||
for(Int i=0; i<m_acPlayingSubWindows.size();i++)
|
||||
{
|
||||
cWindowListNames.append( m_acPlayingSubWindows.at(i)->getWindowName() );
|
||||
dialogWindowsSelection.setSubWindowList( cWindowListNames );
|
||||
}
|
||||
if( dialogWindowsSelection.exec() == QDialog::Accepted )
|
||||
{
|
||||
QStringList selectedWindows = dialogWindowsSelection.getSelectedWindows();
|
||||
|
||||
Reference in new issue
Block a user