History

Remove Window.customPrompt() from JavaScript API

David Rowe committed 8 years ago

Commit d842e531 parent c8bb26a5 files · +0 −62Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 5 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.h+0−20
@@ -22,17 +22,6 @@ · 21 unmodified lines
2222
2323 #include <DependencyManager.h>
2424
25−class CustomPromptResult {
26−public:
27− QVariant value;
28−};
29−
30−Q_DECLARE_METATYPE(CustomPromptResult);
31−
32−QScriptValue CustomPromptResultToScriptValue(QScriptEngine* engine, const CustomPromptResult& result);
33−void CustomPromptResultFromScriptValue(const QScriptValue& object, CustomPromptResult& result);
34−
35−
3625 /**jsdoc
3726 * The Window API provides various facilities not covered elsewhere: window dimensions, window focus, normal or entity camera
3827 * view, clipboard, announcements, user connections, common dialog boxes, snapshots, file import, domain changes, domain
@@ -142,15 +131,6 @@ public slots: · 103 unmodified lines
142131 */
143132 void promptAsync(const QString& message = "", const QString& defaultText = "");
144133
145− /**jsdoc
146− * Prompt the user for input in a custom, modal dialog.
147− * @deprecated This function is deprecated and will soon be removed.
148− * @function Window.customPrompt
149− * @param {object} config - Configures the modal dialog.
150− * @returns {object} The user's response.
151− */
152− CustomPromptResult customPrompt(const QVariant& config);
153−
154134 /**jsdoc
155135 * Prompt the user to choose a directory. Displays a modal dialog that navigates the directory tree.
156136 * @function Window.browseDir