forked from qt-creator/qt-creator
Qml JS Live Preview: Show warnings when running Live Preview
Two kinds of warnings are now shown: one for warning about the Live Preview itself, as it is experimental, and another when user changes id's of objects during runtime, as this is not supported at the moment. More warnings will be added later for other unsupported changes.
This commit is contained in:
@@ -166,7 +166,7 @@ void QmlInspectorToolbar::createActions(const Core::Context &context)
|
||||
m_selectMarqueeAction = new QAction(QIcon(":/qml/images/select-marquee-small.png"), tr("Select (Marquee)"), this);
|
||||
m_zoomAction = new QAction(QIcon(":/qml/images/zoom-small.png"), tr("Zoom"), this);
|
||||
m_colorPickerAction = new QAction(QIcon(":/qml/images/color-picker-small.png"), tr("Color Picker"), this);
|
||||
m_toQmlAction = new QAction(QIcon(":/qml/images/to-qml-small.png"), tr("Apply Changes to QML Viewer"), this);
|
||||
m_toQmlAction = new QAction(QIcon(":/qml/images/to-qml-small.png"), tr("Live Preview Changes in QML Viewer"), this);
|
||||
|
||||
m_designmodeAction->setCheckable(true);
|
||||
m_designmodeAction->setChecked(false);
|
||||
@@ -401,6 +401,11 @@ void QmlInspectorToolbar::activateZoomOnClick()
|
||||
}
|
||||
}
|
||||
|
||||
void QmlInspectorToolbar::setLivePreviewChecked(bool value)
|
||||
{
|
||||
m_fromQmlAction->setChecked(value);
|
||||
}
|
||||
|
||||
void QmlInspectorToolbar::setSelectedColor(const QColor &color)
|
||||
{
|
||||
m_colorBox->setColor(color);
|
||||
|
||||
Reference in New Issue
Block a user