diff options
author | flow <thiagodonato300@gmail.com> | 2022-03-06 15:23:00 -0300 |
---|---|---|
committer | flow <thiagodonato300@gmail.com> | 2022-03-06 15:23:00 -0300 |
commit | 5a638fa97711231638615f920462ed5f5f4507e0 (patch) | |
tree | 3b6d1f46241d0d7b37892bab61c6df5537c99e04 /launcher/ui/pages/modplatform/ModPage.h | |
parent | 5e9d49a91082c53907db84df809d21c3bdc8bcac (diff) | |
download | PrismLauncher-5a638fa97711231638615f920462ed5f5f4507e0.tar.gz PrismLauncher-5a638fa97711231638615f920462ed5f5f4507e0.tar.bz2 PrismLauncher-5a638fa97711231638615f920462ed5f5f4507e0.zip |
refactor: move "get versions" task from page to model
This seems more reasonable
Diffstat (limited to 'launcher/ui/pages/modplatform/ModPage.h')
-rw-r--r-- | launcher/ui/pages/modplatform/ModPage.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/ui/pages/modplatform/ModPage.h b/launcher/ui/pages/modplatform/ModPage.h index cd034a3a..b1681b8c 100644 --- a/launcher/ui/pages/modplatform/ModPage.h +++ b/launcher/ui/pages/modplatform/ModPage.h @@ -1,11 +1,10 @@ #pragma once -#include <Application.h> #include <QWidget> +#include "Application.h" #include "modplatform/ModAPI.h" #include "modplatform/ModIndex.h" -#include "tasks/Task.h" #include "ui/pages/BasePage.h" #include "ui/pages/modplatform/ModModel.h" @@ -37,13 +36,14 @@ class ModPage : public QWidget, public BasePage { virtual bool shouldDisplay() const override = 0; const ModAPI* apiProvider() const { return api.get(); }; + virtual void onGetVersionsSucceeded(ModPage*, QByteArray*, QString) = 0; + void openedImpl() override; bool eventFilter(QObject* watched, QEvent* event) override; BaseInstance* m_instance; protected: - virtual void onModVersionSucceed(ModPage*, QByteArray*, QString) = 0; void updateSelectionButton(); |