diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-07-22 11:26:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 11:26:02 +0100 |
commit | 57430fd189aed592a170d597de61b3acabaaa43d (patch) | |
tree | b3727db40fdea31d24541c0c8181c43df13e774c /launcher/ui/dialogs/ExportInstanceDialog.h | |
parent | ec85266860b7503b24ff3840fb6bf74588acc7c8 (diff) | |
parent | 6ffcfcd7e9d96ae0a2846d1cf23b27425a838709 (diff) | |
download | PrismLauncher-57430fd189aed592a170d597de61b3acabaaa43d.tar.gz PrismLauncher-57430fd189aed592a170d597de61b3acabaaa43d.tar.bz2 PrismLauncher-57430fd189aed592a170d597de61b3acabaaa43d.zip |
Merge branch 'develop' into better-launch
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/dialogs/ExportInstanceDialog.h')
-rw-r--r-- | launcher/ui/dialogs/ExportInstanceDialog.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/launcher/ui/dialogs/ExportInstanceDialog.h b/launcher/ui/dialogs/ExportInstanceDialog.h index 5e801875..02f38f63 100644 --- a/launcher/ui/dialogs/ExportInstanceDialog.h +++ b/launcher/ui/dialogs/ExportInstanceDialog.h @@ -2,6 +2,7 @@ /* * Prism Launcher - Minecraft Launcher * Copyright (C) 2023 TheKodeToad <TheKodeToad@proton.me> + * Copyright (c) 2023 Trial97 <alexandru.tripon97@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,39 +39,37 @@ #include <QDialog> #include <QModelIndex> #include <memory> -#include "FileIgnoreProxy.h" #include "FastFileIconProvider.h" +#include "FileIgnoreProxy.h" class BaseInstance; typedef std::shared_ptr<BaseInstance> InstancePtr; -namespace Ui -{ +namespace Ui { class ExportInstanceDialog; } -class ExportInstanceDialog : public QDialog -{ +class ExportInstanceDialog : public QDialog { Q_OBJECT -public: - explicit ExportInstanceDialog(InstancePtr instance, QWidget *parent = 0); + public: + explicit ExportInstanceDialog(InstancePtr instance, QWidget* parent = 0); ~ExportInstanceDialog(); virtual void done(int result); -private: - bool doExport(); + private: + void doExport(); void loadPackIgnore(); void savePackIgnore(); QString ignoreFileName(); -private: - Ui::ExportInstanceDialog *ui; + private: + Ui::ExportInstanceDialog* ui; InstancePtr m_instance; - FileIgnoreProxy * proxyModel; + FileIgnoreProxy* proxyModel; FastFileIconProvider icons; -private slots: + private slots: void rowsInserted(QModelIndex parent, int top, int bottom); }; |