forked from MrBesen/soundboard
removed some verbose logging
This commit is contained in:
parent
098c1a2d6e
commit
93709ff3fd
|
@ -92,32 +92,22 @@ static uint8_t wrap0(uint8_t a, uint8_t max) {
|
|||
}
|
||||
|
||||
void MainWindow::moveUp() {
|
||||
Log::debug << "up";
|
||||
reselectNext([max = ui->gridLayout->rowCount()](uint8_t&, uint8_t& y){ y = wrap(--y, max); });
|
||||
Log::debug << "x " << (int) xCoord << " y " << (int) yCoord;
|
||||
}
|
||||
|
||||
void MainWindow::moveDown() {
|
||||
Log::debug << "down";
|
||||
reselectNext([max = ui->gridLayout->rowCount()](uint8_t&, uint8_t& y){ y = wrap0(++y, max); });
|
||||
Log::debug << "x " << (int) xCoord << " y " << (int) yCoord;
|
||||
}
|
||||
|
||||
void MainWindow::moveLeft() {
|
||||
Log::debug << "left";
|
||||
reselectNext([max = ui->gridLayout->columnCount()](uint8_t& x, uint8_t&){ x = wrap(--x, max); });
|
||||
Log::debug << "x " << (int) xCoord << " y " << (int) yCoord;
|
||||
}
|
||||
|
||||
void MainWindow::moveRight() {
|
||||
Log::debug << "right";
|
||||
reselectNext([max = ui->gridLayout->columnCount()](uint8_t& x, uint8_t&){ x = wrap0(++x, max); });
|
||||
Log::debug << "x " << (int) xCoord << " y " << (int) yCoord;
|
||||
}
|
||||
|
||||
void MainWindow::playCurrent() {
|
||||
Log::debug << "play";
|
||||
|
||||
QLayoutItem* item = ui->gridLayout->itemAtPosition(yCoord, xCoord);
|
||||
if(item && item->widget()) {
|
||||
SoundButton* button = (SoundButton*) item->widget();
|
||||
|
|
Loading…
Reference in New Issue