Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -14,6 +14,7 @@ · 13 unmodified lines | |||
| 14 | #include "DependencyManager.h" | 14 | #include "DependencyManager.h" |
| 15 | #include <PathUtils.h> | 15 | #include <PathUtils.h> |
| 16 | #include <QmlWindowClass.h> | 16 | #include <QmlWindowClass.h> |
| 17 | #include <QQmlProperty> | ||
| 17 | #include <RegisteredMetaTypes.h> | 18 | #include <RegisteredMetaTypes.h> |
| 18 | #include "ScriptEngineLogging.h" | 19 | #include "ScriptEngineLogging.h" |
| 19 | #include <OffscreenUi.h> | 20 | #include <OffscreenUi.h> |
| @@ -543,6 +544,9 @@ void TabletProxy::addButtonsToToolbar() { · 523 unmodified lines | |||
| 543 | qCWarning(scriptengine) << "ToolbarProxy addButton has no result"; | 544 | qCWarning(scriptengine) << "ToolbarProxy addButton has no result"; |
| 544 | } | 545 | } |
| 545 | } | 546 | } |
| 547 | |||
| 548 | // make the toolbar visible | ||
| 549 | QMetaObject::invokeMethod(toolbarProxy, "writeProperty", Qt::AutoConnection, Q_ARG(QString, "visible"), Q_ARG(QVariant, QVariant(true))); | ||
| 546 | } | 550 | } |
| 547 | 551 | ||
| 548 | void TabletProxy::removeButtonsFromToolbar() { | 552 | void TabletProxy::removeButtonsFromToolbar() { |