X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fplayerform.cpp;h=a0ffb3783fa9c818969f1fe741d5011fedffdea8;hb=refs%2Ftags%2F1.4.0;hp=ec52a4b986ce1dacebcc83c49768c7c11d079f36;hpb=dd5116c03cafc924071ac3ee837b78cfcfb2c792;p=someplayer diff --git a/src/playerform.cpp b/src/playerform.cpp index ec52a4b..a0ffb37 100644 --- a/src/playerform.cpp +++ b/src/playerform.cpp @@ -288,7 +288,6 @@ void PlayerForm::_add_to_favorites() { return; int id = idx.first().row(); _lib->addToFavorites(_current_playlist.tracks().at(id)); - qWarning() << "added to favorites: " << id << _current_playlist.tracks().at(id).metadata().title(); } void PlayerForm::_state_changed(PlayerState state) { @@ -433,22 +432,22 @@ void PlayerForm::landscapeMode() { ui->widget->layout()->removeItem(ui->controlLayout); ui->controlLayout->removeItem(ui->countHLayout); ui->controlLayout->removeItem(ui->cverticalSpacer_0); - ui->controlLayout->removeWidget(ui->titleLabel); + ui->controlLayout->removeItem(ui->titleLayout); ui->controlLayout->removeItem(ui->coverLayout); ui->controlLayout->removeItem(ui->cverticalSpacer_1); ui->controlLayout->removeItem(ui->seekLayout); ui->controlLayout->removeItem(ui->progressLayout); ui->controlLayout->removeItem(ui->cverticalSpacer_2); - ui->controlLayout->removeWidget(ui->artistAlbumLabel); + ui->controlLayout->removeItem(ui->artistAlbumLayout); ui->controlLayout->removeItem(ui->cverticalSpacer_3); ui->controlLayout->addItem(ui->countHLayout); ui->controlLayout->addItem(ui->cverticalSpacer_0); - ui->controlLayout->addWidget(ui->titleLabel); + ui->controlLayout->addItem(ui->titleLayout); ui->controlLayout->addItem(ui->cverticalSpacer_1); ui->controlLayout->addItem(ui->progressLayout); ui->controlLayout->addItem(ui->seekLayout); ui->controlLayout->addItem(ui->cverticalSpacer_2); - ui->controlLayout->addWidget(ui->artistAlbumLabel); + ui->controlLayout->addItem(ui->artistAlbumLayout); ui->controlLayout->addItem(ui->cverticalSpacer_3); ((QGridLayout *)ui->widget->layout())->addItem(ui->coverLayout, 0, 0); @@ -497,22 +496,22 @@ void PlayerForm::portraitMode() { ui->controlLayout->removeItem(ui->countHLayout); ui->controlLayout->removeItem(ui->cverticalSpacer_0); - ui->controlLayout->removeWidget(ui->titleLabel); + ui->controlLayout->removeItem(ui->titleLayout); ui->controlLayout->removeItem(ui->coverLayout); ui->controlLayout->removeItem(ui->cverticalSpacer_1); ui->controlLayout->removeItem(ui->seekLayout); ui->controlLayout->removeItem(ui->progressLayout); ui->controlLayout->removeItem(ui->cverticalSpacer_2); - ui->controlLayout->removeWidget(ui->artistAlbumLabel); + ui->controlLayout->removeItem(ui->artistAlbumLayout); ui->controlLayout->removeItem(ui->cverticalSpacer_3); ui->controlLayout->addItem(ui->countHLayout); ui->controlLayout->addItem(ui->progressLayout); ui->controlLayout->addItem(ui->seekLayout); ui->controlLayout->addItem(ui->cverticalSpacer_0); - ui->controlLayout->addWidget(ui->titleLabel); + ui->controlLayout->addItem(ui->titleLayout); ui->controlLayout->addItem(ui->coverLayout); - ui->controlLayout->addWidget(ui->artistAlbumLabel); + ui->controlLayout->addItem(ui->artistAlbumLayout); ui->controlLayout->addItem(ui->cverticalSpacer_1); ui->controlLayout->invalidate(); @@ -668,7 +667,6 @@ void PlayerForm::_display_cover(QImage image) { void PlayerForm::_c_add_to_favorites() { int id = _track_renderer->activeRow(); - qWarning() << id; if (id >= 0 && id < _current_playlist.tracks().count()) { ui->playlistView->selectRow(id); _add_to_favorites(); @@ -677,7 +675,6 @@ void PlayerForm::_c_add_to_favorites() { void PlayerForm::_c_delete_track() { int id = _track_renderer->activeRow(); - qWarning() << id; if (id >= 0 && id < _current_playlist.tracks().count()) { ui->playlistView->selectRow(id); _delete_track(); @@ -686,7 +683,6 @@ void PlayerForm::_c_delete_track() { void PlayerForm::_c_add_to_playlists() { int id = _track_renderer->activeRow(); - qWarning() << id; if (id >= 0 && id < _current_playlist.tracks().count()) { ui->playlistView->selectRow(id); _add_to_playlists(); @@ -695,7 +691,6 @@ void PlayerForm::_c_add_to_playlists() { void PlayerForm::_c_edit_tags() { int id = _track_renderer->activeRow(); - qWarning() << id; if (id >= 0 && id < _current_playlist.tracks().count()) { ui->playlistView->selectRow(id); _edit_tags();