Added settings class to QML Inspector

For starters, we only remember whether the initial warning about dangers
of Live Preview was shown.
This commit is contained in:
Lasse Holmstedt
2010-08-09 10:07:03 +02:00
parent 740aadb7cd
commit d572efedbd
8 changed files with 109 additions and 17 deletions

View File

@@ -554,10 +554,10 @@ void QmlJSLiveTextPreview::documentChanged(QmlJS::Document::Ptr doc)
if (delta.referenceRefreshRequired)
ClientProxy::instance()->refreshObjectTree();
if (Inspector::showExperimentalWarning() && delta.appliedChangesToViewer) {
if (Inspector::instance()->showExperimentalWarning() && delta.appliedChangesToViewer) {
showExperimentalWarning();
experimentalWarningShown = true;
Inspector::setShowExperimentalWarning(false);
Inspector::instance()->setShowExperimentalWarning(false);
}
if (delta.unsyncronizableChanges != NoUnsyncronizableChanges && !experimentalWarningShown)