qt: Make default button actually work
This commit is contained in:
@@ -203,3 +203,10 @@ void ProgSettings::on_horizontalSlider_valueChanged(int value)
|
||||
mouseSensitivity = (double)value / 100.;
|
||||
}
|
||||
|
||||
|
||||
void ProgSettings::on_pushButton_2_clicked()
|
||||
{
|
||||
mouseSensitivity = 1.0;
|
||||
ui->horizontalSlider->setValue(100);
|
||||
}
|
||||
|
||||
|
@@ -59,6 +59,8 @@ private slots:
|
||||
|
||||
void on_horizontalSlider_valueChanged(int value);
|
||||
|
||||
void on_pushButton_2_clicked();
|
||||
|
||||
private:
|
||||
Ui::ProgSettings *ui;
|
||||
|
||||
|
Reference in New Issue
Block a user