From fa067bf5ceabcd4976878f6ad75e1d7ab7af6520 Mon Sep 17 00:00:00 2001 From: dmdmdm Date: Tue, 26 May 2020 15:38:17 -0400 Subject: [PATCH] Smart playlist dialog fits in smaller screen --- src/smartplaylists/querysearchpage.ui | 24 +++--------------------- src/smartplaylists/querywizardplugin.cpp | 18 ------------------ 2 files changed, 3 insertions(+), 39 deletions(-) diff --git a/src/smartplaylists/querysearchpage.ui b/src/smartplaylists/querysearchpage.ui index 3495855fa..2e26b6310 100644 --- a/src/smartplaylists/querysearchpage.ui +++ b/src/smartplaylists/querysearchpage.ui @@ -25,16 +25,7 @@ } - - 0 - - - 0 - - - 0 - - + 0 @@ -102,7 +93,7 @@ 0 0 - 420 + 418 182 @@ -113,16 +104,7 @@ - - 0 - - - 0 - - - 0 - - + 0 diff --git a/src/smartplaylists/querywizardplugin.cpp b/src/smartplaylists/querywizardplugin.cpp index 7c365029f..fa66bf03e 100644 --- a/src/smartplaylists/querywizardplugin.cpp +++ b/src/smartplaylists/querywizardplugin.cpp @@ -152,24 +152,6 @@ int QueryWizardPlugin::CreatePages(QWizard* wizard, int finish_page_id) { SLOT(UpdateSortPreview())); connect(sort_ui_->random, SIGNAL(toggled(bool)), SLOT(UpdateSortPreview())); - // Adjust height, if necessary - /* - QScreen *scn = QGuiApplication::primaryScreen(); - QRect scnGeo = scn->availableGeometry(); - const int scnHeight = scnGeo.height(); - //QRect pgeGeo = search_page_->geometry(); - const int pgeHeight = search_page_->height(); - printf("djm: pgeHeight=%d, scnHeight=%d\n", pgeHeight, scnHeight); - if (pgeHeight > scnHeight) { - printf("djm: too tall\n"); - const int pgeWidth = search_page_->width(); - search_page_->resize(pgeWidth, scnHeight); - } - else { - printf("djm: OK tall\n"); - } - */ - // Configure the page text search_page_->setTitle(tr("Search terms")); search_page_->setSubTitle(