diff options
author | flow <flowlnlnln@gmail.com> | 2022-10-22 10:48:00 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 10:48:00 -0300 |
commit | 81f13052701dbec499ef65fe714f107a9b584ebf (patch) | |
tree | 7a8818394a44816ed6c732aef1d900270c924dd4 /launcher/ui/pages/modplatform/flame/FlamePage.cpp | |
parent | 2ec43101043885b124a0870b30afd35074f79e35 (diff) | |
parent | 9b17cde01929e58819c353868734f81faf811958 (diff) | |
download | PrismLauncher-81f13052701dbec499ef65fe714f107a9b584ebf.tar.gz PrismLauncher-81f13052701dbec499ef65fe714f107a9b584ebf.tar.bz2 PrismLauncher-81f13052701dbec499ef65fe714f107a9b584ebf.zip |
Merge pull request #215 from forkiesassds/develop
Diffstat (limited to 'launcher/ui/pages/modplatform/flame/FlamePage.cpp')
-rw-r--r-- | launcher/ui/pages/modplatform/flame/FlamePage.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/flame/FlamePage.cpp b/launcher/ui/pages/modplatform/flame/FlamePage.cpp index 7d2ba2e2..a65b6585 100644 --- a/launcher/ui/pages/modplatform/flame/FlamePage.cpp +++ b/launcher/ui/pages/modplatform/flame/FlamePage.cpp @@ -43,6 +43,10 @@ #include "InstanceImportTask.h" #include "Json.h" #include "ui/dialogs/NewInstanceDialog.h" +#include "ui/widgets/ProjectItem.h" +#include "modplatform/flame/FlameAPI.h" + +static FlameAPI api; FlamePage::FlamePage(NewInstanceDialog* dialog, QWidget* parent) : QWidget(parent), ui(new Ui::FlamePage), dialog(dialog) { @@ -66,6 +70,9 @@ FlamePage::FlamePage(NewInstanceDialog* dialog, QWidget* parent) : QWidget(paren connect(ui->sortByBox, SIGNAL(currentIndexChanged(int)), this, SLOT(triggerSearch())); connect(ui->packView->selectionModel(), &QItemSelectionModel::currentChanged, this, &FlamePage::onSelectionChanged); connect(ui->versionSelectionBox, &QComboBox::currentTextChanged, this, &FlamePage::onVersionSelectionChanged); + + ui->packView->setItemDelegate(new ProjectItemDelegate(this)); + ui->packDescription->setMetaEntry("FlamePacks"); } FlamePage::~FlamePage() @@ -250,7 +257,10 @@ void FlamePage::updateUi() text += "- " + tr("Source code: <a href=%1>%1</a>").arg(current.extra.sourceUrl) + "<br>"; } + text += "<hr>"; + text += api.getModDescription(current.addonId).toUtf8(); ui->packDescription->setHtml(text + current.description); + ui->packDescription->flush(); } |