summaryrefslogtreecommitdiffstats
path: root/application/SettingsUI.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-06-01 12:28:53 +0200
committerPetr Mrázek <peterix@gmail.com>2019-06-01 12:28:53 +0200
commit932160818e8e15dc124e1ce281749d28e10c5e66 (patch)
tree1924f82fffccf54ef14cbfcd8a7f25ccda53daaf /application/SettingsUI.h
parent59e1ed3d8750b499b6d515a82bc08f6f72cc456a (diff)
downloadMultiMC-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.h26
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();
- }
-}
-}