| 214 | |
| 215 | |
| 216 | void UBWidgetUniboardAPI::addObject(QString pUrl, int width, int height, int x, int y, bool background) |
| 217 | { |
| 218 | // not great, but make it easily scriptable -- |
| 219 | // |
| 220 | // download url should be moved to the scene from the controller |
| 221 | // |
| 222 | |
| 223 | if (UBApplication::boardController->activeScene() != mScene.lock()) |
| 224 | return; |
| 225 | |
| 226 | UBApplication::boardController->downloadURL(QUrl(pUrl), QString(), QPointF(x, y), QSize(width, height), background); |
| 227 | |
| 228 | } |
| 229 | |
| 230 | |
| 231 | void UBWidgetUniboardAPI::setBackground(bool pIsDark, bool pIsCrossed) |
no test coverage detected