basicsettingwindow.cpp
439 Bytes
#include "basicsettingwindow.h"
#include "ui_basicsettingwindow.h"
#include "soundplayer.h"
BasicSettingWindow::BasicSettingWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::BasicSettingWindow)
{
ui->setupUi(this);
foreach (QPushButton *button, findChildren<QPushButton *>())
connect(button, &QPushButton::pressed, SoundPlayer::playClick);
}
BasicSettingWindow::~BasicSettingWindow()
{
delete ui;
}