52 |
52 |
53 mediaObject->setTickInterval(1000); |
53 mediaObject->setTickInterval(1000); |
54 //![0] |
54 //![0] |
55 //![2] |
55 //![2] |
56 connect(mediaObject, SIGNAL(tick(qint64)), this, SLOT(tick(qint64))); |
56 connect(mediaObject, SIGNAL(tick(qint64)), this, SLOT(tick(qint64))); |
57 connect(mediaObject, SIGNAL(stateChanged(Phonon::State, Phonon::State)), |
57 connect(mediaObject, SIGNAL(stateChanged(Phonon::State,Phonon::State)), |
58 this, SLOT(stateChanged(Phonon::State, Phonon::State))); |
58 this, SLOT(stateChanged(Phonon::State,Phonon::State))); |
59 connect(metaInformationResolver, SIGNAL(stateChanged(Phonon::State,Phonon::State)), |
59 connect(metaInformationResolver, SIGNAL(stateChanged(Phonon::State,Phonon::State)), |
60 this, SLOT(metaStateChanged(Phonon::State, Phonon::State))); |
60 this, SLOT(metaStateChanged(Phonon::State,Phonon::State))); |
61 connect(mediaObject, SIGNAL(currentSourceChanged(const Phonon::MediaSource &)), |
61 connect(mediaObject, SIGNAL(currentSourceChanged(Phonon::MediaSource)), |
62 this, SLOT(sourceChanged(const Phonon::MediaSource &))); |
62 this, SLOT(sourceChanged(Phonon::MediaSource))); |
63 connect(mediaObject, SIGNAL(aboutToFinish()), this, SLOT(aboutToFinish())); |
63 connect(mediaObject, SIGNAL(aboutToFinish()), this, SLOT(aboutToFinish())); |
64 //![2] |
64 //![2] |
65 |
65 |
66 //![1] |
66 //![1] |
67 Phonon::createPath(mediaObject, audioOutput); |
67 Phonon::createPath(mediaObject, audioOutput); |
326 |
326 |
327 musicTable = new QTableWidget(0, 4); |
327 musicTable = new QTableWidget(0, 4); |
328 musicTable->setHorizontalHeaderLabels(headers); |
328 musicTable->setHorizontalHeaderLabels(headers); |
329 musicTable->setSelectionMode(QAbstractItemView::SingleSelection); |
329 musicTable->setSelectionMode(QAbstractItemView::SingleSelection); |
330 musicTable->setSelectionBehavior(QAbstractItemView::SelectRows); |
330 musicTable->setSelectionBehavior(QAbstractItemView::SelectRows); |
331 connect(musicTable, SIGNAL(cellPressed(int, int)), |
331 connect(musicTable, SIGNAL(cellPressed(int,int)), |
332 this, SLOT(tableClicked(int, int))); |
332 this, SLOT(tableClicked(int,int))); |
333 |
333 |
334 QHBoxLayout *seekerLayout = new QHBoxLayout; |
334 QHBoxLayout *seekerLayout = new QHBoxLayout; |
335 seekerLayout->addWidget(seekSlider); |
335 seekerLayout->addWidget(seekSlider); |
336 seekerLayout->addWidget(timeLcd); |
336 seekerLayout->addWidget(timeLcd); |
337 |
337 |