Ejemplo n.º 1
0
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(&currentSong, SIGNAL(songChanged()), this, SLOT(songChanged()));

    loadSettings();
    setEffects();
}
Ejemplo n.º 2
0
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
}