Smart playlist dialog fits in smaller screen

This commit is contained in:
dmdmdm 2020-05-26 15:38:17 -04:00 committed by John Maguire
parent 5899f68e2f
commit fa067bf5ce
2 changed files with 3 additions and 39 deletions

View File

@ -25,16 +25,7 @@
}</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,5,1">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<property name="margin">
<number>0</number>
</property>
<item>
@ -102,7 +93,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>420</width>
<width>418</width>
<height>182</height>
</rect>
</property>
@ -113,16 +104,7 @@
</sizepolicy>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<property name="margin">
<number>0</number>
</property>
<item>

View File

@ -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(