Update Technic layout to be more consistent with others

This commit is contained in:
jopejoe1 2022-02-21 03:50:37 +13:00 committed by GitHub
parent 3ca661127f
commit da36a5f8de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 41 deletions

View File

@ -1,4 +1,4 @@
/* Copyright 2013-2021 MultiMC Contributors /* Copyright 2013-2022 MultiMC Contributors
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -11,6 +11,11 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*
* -----
*
* This source and all future changes to it are subject to the Microsoft Permissive License (MS-PL).
* Please see the COPYING.md file for more information.
*/ */
#include "TechnicPage.h" #include "TechnicPage.h"
@ -187,8 +192,9 @@ void TechnicPage::metadataLoaded()
text += tr(" by ") + current.author; text += tr(" by ") + current.author;
} }
ui->frame->setModText(text); text += "<br><br>";
ui->frame->setModDescription(current.description);
ui->packDescription->setHtml(text + current.description);
if (!current.isSolder) if (!current.isSolder)
{ {
dialog->setSuggestedPack(current.name, new Technic::SingleZipPackInstallTask(current.url, current.minecraftVersion)); dialog->setSuggestedPack(current.name, new Technic::SingleZipPackInstallTask(current.url, current.minecraftVersion));

View File

@ -44,6 +44,14 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QGridLayout" name="gridLayout">
<property name="rightMargin">
<number>0</number>
</property>
<item row="0" column="1">
<widget class="QTextBrowser" name="packDescription"/>
</item>
<item row="0" column="0">
<widget class="QListView" name="packView"> <widget class="QListView" name="packView">
<property name="horizontalScrollBarPolicy"> <property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum> <enum>Qt::ScrollBarAlwaysOff</enum>
@ -59,36 +67,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> </layout>
<widget class="MCModInfoFrame" name="frame">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>
<customwidgets>
<customwidget>
<class>MCModInfoFrame</class>
<extends>QFrame</extends>
<header>ui/widgets/MCModInfoFrame.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops> <tabstops>
<tabstop>searchEdit</tabstop> <tabstop>searchEdit</tabstop>
<tabstop>searchButton</tabstop> <tabstop>searchButton</tabstop>
<tabstop>packView</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>
<connections/> <connections/>