Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -235,6 +235,14 @@ void WindowScriptingInterface::shareSnapshot(const QString& path, const QUrl& hr · 234 unmodified lines | ||
| 235 | 235 | qApp->shareSnapshot(path, href); |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | +void WindowScriptingInterface::makeConnection(bool success, const QString& userNameOrError) { | |
| 239 | + if (success) { | |
| 240 | + emit connectionAdded(userNameOrError); | |
| 241 | + } else { | |
| 242 | + emit connectionError(userNameOrError); | |
| 243 | + } | |
| 244 | +} | |
| 245 | + | |
| 238 | 246 | bool WindowScriptingInterface::isPhysicsEnabled() { |
| 239 | 247 | return qApp->isPhysicsEnabled(); |
| 240 | 248 | } |
| @@ -255,7 +263,7 @@ int WindowScriptingInterface::openMessageBox(QString title, QString text, int bu · 14 unmodified lines | ||
| 255 | 263 | } |
| 256 | 264 | |
| 257 | 265 | int WindowScriptingInterface::createMessageBox(QString title, QString text, int buttons, int defaultButton) { |
| 258 | − auto messageBox = DependencyManager::get<OffscreenUi>()->createMessageBox(OffscreenUi::ICON_INFORMATION, title, text, | |
| 266 | + auto messageBox = DependencyManager::get<OffscreenUi>()->createMessageBox(OffscreenUi::ICON_INFORMATION, title, text, | |
| 259 | 267 | static_cast<QFlags<QMessageBox::StandardButton>>(buttons), static_cast<QMessageBox::StandardButton>(defaultButton)); |
| 260 | 268 | connect(messageBox, SIGNAL(selected(int)), this, SLOT(onMessageBoxSelected(int))); |
| 261 | 269 | |