diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-16 20:53:58 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-16 20:53:58 +0300 |
commit | 251055302eec0232a89f0466efe3e7e7f3fa7de3 (patch) | |
tree | 07dd9da435765f7332c7b65081777f6f8d813da8 /launcher/ui/dialogs/ExportInstanceDialog.h | |
parent | b9568279dc364a462e9837ea13bc3c4f61abdda8 (diff) | |
download | PrismLauncher-251055302eec0232a89f0466efe3e7e7f3fa7de3.tar.gz PrismLauncher-251055302eec0232a89f0466efe3e7e7f3fa7de3.tar.bz2 PrismLauncher-251055302eec0232a89f0466efe3e7e7f3fa7de3.zip |
format
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/dialogs/ExportInstanceDialog.h')
-rw-r--r-- | launcher/ui/dialogs/ExportInstanceDialog.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/launcher/ui/dialogs/ExportInstanceDialog.h b/launcher/ui/dialogs/ExportInstanceDialog.h index 5e801875..20a92807 100644 --- a/launcher/ui/dialogs/ExportInstanceDialog.h +++ b/launcher/ui/dialogs/ExportInstanceDialog.h @@ -38,39 +38,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: + private: bool 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); }; |