Skip to content

Commit

Permalink
Changed behavior of spin boxes - signal send also at value change
Browse files Browse the repository at this point in the history
  • Loading branch information
masc4ii committed Feb 3, 2018
1 parent 698a9c7 commit 4eac5a7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
18 changes: 18 additions & 0 deletions ConfiguratorModelD/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,21 @@ void MainWindow::on_actionFindModelD_triggered()
getPorts();
searchModelD();
}

//Midi channel value changed - do the same like editing finished
void MainWindow::on_spinBoxMidiChannel_valueChanged(int arg1)
{
on_spinBoxMidiChannel_editingFinished();
}

//Pitch bend box changed - do the same like editing finished
void MainWindow::on_spinBoxPitchBend_valueChanged(int arg1)
{
on_spinBoxPitchBend_editingFinished();
}

//Transpose box changed - do the same like editing finished
void MainWindow::on_spinBoxTranspose_valueChanged(int arg1)
{
on_spinBoxTranspose_editingFinished();
}
11 changes: 5 additions & 6 deletions ConfiguratorModelD/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,22 @@ class MainWindow : public QMainWindow

private slots:
void on_actionSendAll_triggered();

void on_comboBoxKeyPrio_activated(int index);
void on_spinBoxMidiChannel_editingFinished();

void on_comboBoxMultiTrigger_activated(int index);

void on_spinBoxPitchBend_editingFinished();

void on_spinBoxTranspose_editingFinished();

void on_comboBoxModCurve_activated(int index);

void on_actionAboutQt_triggered();

void on_actionAboutConfiguratorModelD_triggered();

void on_actionFindModelD_triggered();

void on_spinBoxMidiChannel_valueChanged(int arg1);
void on_spinBoxPitchBend_valueChanged(int arg1);
void on_spinBoxTranspose_valueChanged(int arg1);

private:
Ui::MainWindow *ui;
void getPorts(void);
Expand Down

0 comments on commit 4eac5a7

Please sign in to comment.