diff options
author | flow <flowlnlnln@gmail.com> | 2022-09-10 19:00:47 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-10-08 14:12:05 -0300 |
commit | d7992ab29d07c6d26377f6db1cfca6059aace471 (patch) | |
tree | 12a19e03d0cf1cabeced063296f6768da4574f53 | |
parent | 60f19f305e4e4540f337a4dbcc96536c14e23e82 (diff) | |
download | PrismLauncher-d7992ab29d07c6d26377f6db1cfca6059aace471.tar.gz PrismLauncher-d7992ab29d07c6d26377f6db1cfca6059aace471.tar.bz2 PrismLauncher-d7992ab29d07c6d26377f6db1cfca6059aace471.zip |
feat: add image support for FTB packs
Signed-off-by: flow <flowlnlnln@gmail.com>
-rw-r--r-- | launcher/ui/pages/modplatform/ftb/FtbPage.cpp | 2 | ||||
-rw-r--r-- | launcher/ui/pages/modplatform/ftb/FtbPage.ui | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/launcher/ui/pages/modplatform/ftb/FtbPage.cpp b/launcher/ui/pages/modplatform/ftb/FtbPage.cpp index 8975d74e..34734eaf 100644 --- a/launcher/ui/pages/modplatform/ftb/FtbPage.cpp +++ b/launcher/ui/pages/modplatform/ftb/FtbPage.cpp @@ -73,6 +73,8 @@ FtbPage::FtbPage(NewInstanceDialog* dialog, QWidget *parent) connect(ui->sortByBox, &QComboBox::currentTextChanged, this, &FtbPage::onSortingSelectionChanged); connect(ui->packView->selectionModel(), &QItemSelectionModel::currentChanged, this, &FtbPage::onSelectionChanged); connect(ui->versionSelectionBox, &QComboBox::currentTextChanged, this, &FtbPage::onVersionSelectionChanged); + + ui->packDescription->setMetaEntry("FTBPacks"); } FtbPage::~FtbPage() diff --git a/launcher/ui/pages/modplatform/ftb/FtbPage.ui b/launcher/ui/pages/modplatform/ftb/FtbPage.ui index 850bf091..8de0f4e6 100644 --- a/launcher/ui/pages/modplatform/ftb/FtbPage.ui +++ b/launcher/ui/pages/modplatform/ftb/FtbPage.ui @@ -57,7 +57,7 @@ </widget> </item> <item row="0" column="1"> - <widget class="QTextBrowser" name="packDescription"> + <widget class="ProjectDescriptionPage" name="packDescription"> <property name="openExternalLinks"> <bool>true</bool> </property> @@ -70,6 +70,13 @@ </item> </layout> </widget> + <customwidgets> + <customwidget> + <class>ProjectDescriptionPage</class> + <extends>QTextBrowser</extends> + <header>ui/widgets/ProjectDescriptionPage.h</header> + </customwidget> + </customwidgets> <tabstops> <tabstop>searchEdit</tabstop> <tabstop>versionSelectionBox</tabstop> |