MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); this->setWindowIcon(QIcon(":/images/logo-0.png")); radio = new GstreamerRadio(); radio->init(); connect(radio, SIGNAL(bufferChanged(int)), this, SLOT(bufferChanged(int))); connect(¤tSong, SIGNAL(songChanged()), this, SLOT(songChanged())); loadSettings(); setEffects(); }
void MainWindow::setupTimer() { // setup a timer that repeatedly calls MainWindow::realtimeDataSlot: connect(&dataTimer, SIGNAL(timeout()), this, SLOT(setEffects())); dataTimer.start(50); // Interval 0 means to refresh as fast as possible }