Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 45 files). Show all
Unified · Split
| @@ -9,11 +9,14 @@ · 8 unmodified lines | ||
| 9 | 9 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html |
| 10 | 10 | // |
| 11 | 11 | |
| 12 | +#include "WindowScriptingInterface.h" | |
| 13 | + | |
| 12 | 14 | #include <QClipboard> |
| 13 | 15 | #include <QtCore/QDir> |
| 14 | 16 | #include <QMessageBox> |
| 15 | 17 | #include <QScriptValue> |
| 16 | 18 | |
| 19 | +#include <shared/QtHelpers.h> | |
| 17 | 20 | #include <SettingHandle.h> |
| 18 | 21 | |
| 19 | 22 | #include <display-plugins/CompositorHelper.h> |
| @@ -24,8 +27,6 @@ · 4 unmodified lines | ||
| 24 | 27 | #include "Menu.h" |
| 25 | 28 | #include "OffscreenUi.h" |
| 26 | 29 | |
| 27 | −#include "WindowScriptingInterface.h" | |
| 28 | − | |
| 29 | 30 | static const QString DESKTOP_LOCATION = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); |
| 30 | 31 | static const QString LAST_BROWSE_LOCATION_SETTING = "LastBrowseLocation"; |
| 31 | 32 | static const QString LAST_BROWSE_ASSETS_LOCATION_SETTING = "LastBrowseAssetsLocation"; |
| @@ -316,7 +317,7 @@ bool WindowScriptingInterface::isPhysicsEnabled() { · 284 unmodified lines | ||
| 316 | 317 | int WindowScriptingInterface::openMessageBox(QString title, QString text, int buttons, int defaultButton) { |
| 317 | 318 | if (QThread::currentThread() != thread()) { |
| 318 | 319 | int result; |
| 319 | − QMetaObject::invokeMethod(this, "openMessageBox", Qt::BlockingQueuedConnection, | |
| 320 | + hifi::qt::blockingInvokeMethod(this, "openMessageBox", | |
| 320 | 321 | Q_RETURN_ARG(int, result), |
| 321 | 322 | Q_ARG(QString, title), |
| 322 | 323 | Q_ARG(QString, text), |