diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-06-01 12:28:53 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-06-01 12:28:53 +0200 |
commit | 932160818e8e15dc124e1ce281749d28e10c5e66 (patch) | |
tree | 1924f82fffccf54ef14cbfcd8a7f25ccda53daaf /application/SettingsUI.h | |
parent | 59e1ed3d8750b499b6d515a82bc08f6f72cc456a (diff) | |
download | MultiMC-932160818e8e15dc124e1ce281749d28e10c5e66.tar MultiMC-932160818e8e15dc124e1ce281749d28e10c5e66.tar.gz MultiMC-932160818e8e15dc124e1ce281749d28e10c5e66.tar.lz MultiMC-932160818e8e15dc124e1ce281749d28e10c5e66.tar.xz MultiMC-932160818e8e15dc124e1ce281749d28e10c5e66.zip |
NOISSUE add option to open global settings from instance settings
This should hopefully giude people towards using the right thing.
Diffstat (limited to 'application/SettingsUI.h')
-rw-r--r-- | application/SettingsUI.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/application/SettingsUI.h b/application/SettingsUI.h deleted file mode 100644 index 474bc1ab..00000000 --- a/application/SettingsUI.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once -#include "pages/BasePageProvider.h" -#include "MultiMC.h" -#include "pagedialog/PageDialog.h" -#include "InstancePageProvider.h" -#include <settings/SettingsObject.h> -#include <BaseInstance.h> - -/* - * FIXME: this is a fragment. find a better place for it. - */ -namespace SettingsUI -{ -template <typename T> -void ShowPageDialog(T raw_provider, QWidget * parent, QString open_page = QString()) -{ - auto provider = std::dynamic_pointer_cast<BasePageProvider>(raw_provider); - if(!provider) - return; - { - SettingsObject::Lock lock(MMC->settings()); - PageDialog dlg(provider.get(), open_page, parent); - dlg.exec(); - } -} -} |