1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-08-25 08:52:26 -04:00

Dynamic input tab allocation

This commit is contained in:
f4exb 2015-10-07 23:39:40 +02:00
parent 6e3e273b68
commit 43be074004
2 changed files with 3 additions and 23 deletions

View File

@ -594,8 +594,9 @@ void MainWindow::on_action_Preferences_triggered()
void MainWindow::on_sampleSource_currentIndexChanged(int index) void MainWindow::on_sampleSource_currentIndexChanged(int index)
{ {
m_pluginManager->saveSourceSettings(m_settings.getWorkingPreset()); m_pluginManager->saveSourceSettings(m_settings.getWorkingPreset());
m_pluginManager->selectSampleSourceByIndex(ui->sampleSource->currentIndex()); //m_pluginManager->selectSampleSourceByIndex(ui->sampleSource->currentIndex());
//m_settings.setSourceIndex(ui->sampleSource->currentIndex()); //m_settings.setSourceIndex(ui->sampleSource->currentIndex());
m_pluginManager->selectSampleSourceByIndex(m_deviceUIs.back()->m_sampleSource->currentIndex());
m_settings.setSourceIndex(m_deviceUIs.back()->m_sampleSource->currentIndex()); m_settings.setSourceIndex(m_deviceUIs.back()->m_sampleSource->currentIndex());
m_pluginManager->loadSourceSettings(m_settings.getWorkingPreset()); m_pluginManager->loadSourceSettings(m_settings.getWorkingPreset());
} }

View File

@ -375,29 +375,8 @@
</font> </font>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>-1</number>
</property> </property>
<widget class="QWidget" name="rxTabInput">
<attribute name="title">
<string>Rx</string>
</attribute>
<widget class="QComboBox" name="sampleSource">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>255</width>
<height>24</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>255</width>
<height>0</height>
</size>
</property>
</widget>
</widget>
</widget> </widget>
</item> </item>
</layout> </layout>