}
SidebarWidget::SidebarWidget(QWidget *parent) :
- QWidget(parent) {
+ QWidget(parent), playlistWidth(0) {
playlist = 0;
QBoxLayout *layout = new QVBoxLayout(this);
void SidebarWidget::showRefineSearchWidget() {
if (!refineSearchWidget->isEnabled()) return;
+ playlistWidth = playlist->width();
+ refineSearchWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
refineSearchWidget->setDirty(false);
stackedWidget->setCurrentWidget(refineSearchWidget);
// refineSearchWidget->setFocus();
}
void SidebarWidget::hideRefineSearchWidget() {
+ refineSearchWidget->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
+ playlist->resize(playlistWidth, playlist->height());
stackedWidget->setCurrentWidget(playlist);
playlist->setFocus();
#ifdef APP_EXTRA