Commit f4225402 authored by Eugene Pin's avatar Eugene Pin
Browse files

Add connection between SpeedSlider and SpeedSpinbox

parent cc971ffa
Pipeline #77701 passed with stages
in 16 seconds
......@@ -20,6 +20,11 @@ public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void on_simSpeedSpinbox_valueChanged(int arg1);
void on_simSpeedSlider_valueChanged(int value);
private:
Ui::MainWindow *ui;
};
......
......@@ -13,3 +13,12 @@ MainWindow::~MainWindow()
delete ui;
}
void MainWindow::on_simSpeedSpinbox_valueChanged(int arg1)
{
ui->simSpeedSlider->setValue(arg1);
}
void MainWindow::on_simSpeedSlider_valueChanged(int value)
{
ui->simSpeedSpinbox->setValue(value);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment