mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 08:28:36 -05:00
Multi device support: changing input view tab changes all other tabs accordingly
This commit is contained in:
parent
3c0e66c90e
commit
8a6cf3374e
@ -162,6 +162,8 @@ MainWindow::MainWindow(QWidget* parent) :
|
||||
updatePresetControls();
|
||||
|
||||
qDebug() << "MainWindow::MainWindow: end";
|
||||
|
||||
connect(ui->tabInputsView, SIGNAL(currentChanged(int)), this, SLOT(tabInputViewIndexChanged()));
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
@ -734,6 +736,16 @@ void MainWindow::on_action_removeDevice_triggered()
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::tabInputViewIndexChanged()
|
||||
{
|
||||
int inputViewIndex = ui->tabInputsView->currentIndex();
|
||||
|
||||
ui->tabSpectra->setCurrentIndex(inputViewIndex);
|
||||
ui->tabChannels->setCurrentIndex(inputViewIndex);
|
||||
ui->tabInputsSelect->setCurrentIndex(inputViewIndex);
|
||||
ui->tabSpectraGUI->setCurrentIndex(inputViewIndex);
|
||||
}
|
||||
|
||||
void MainWindow::updateStatus()
|
||||
{
|
||||
m_dateTimeWidget->setText(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss t"));
|
||||
|
@ -149,6 +149,7 @@ private slots:
|
||||
void on_action_About_triggered();
|
||||
void on_action_addDevice_triggered();
|
||||
void on_action_removeDevice_triggered();
|
||||
void tabInputViewIndexChanged();
|
||||
};
|
||||
|
||||
#endif // INCLUDE_MAINWINDOW_H
|
||||
|
Loading…
Reference in New Issue
Block a user