summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/propertyeditor
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2014-05-12 21:47:57 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2014-05-12 22:13:45 +0200
commitcdcaca426941d9b00f7a902db5dbc9e434b8dbea (patch)
tree0fb581d6884da344ee72f416187f3618e5a6c2e6 /src/plugins/qmldesigner/components/propertyeditor
parent539da9fe5c82f2e293ef820845e3782b90ab1979 (diff)
downloadqt-creator-cdcaca426941d9b00f7a902db5dbc9e434b8dbea.tar.gz
QmlDesigner: Add QmlDesignerWarning
This adds a general asynchronous warning to the QmlDesigner. Change-Id: Idf7989c52108f454191650fbb971261e1119ca09 Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/components/propertyeditor')
-rw-r--r--src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp
index 8000513957..d31d55c05c 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp
@@ -45,6 +45,8 @@
#include <nodeabstractproperty.h>
#include <rewriterview.h>
+#include <qmldesignerwarning.h>
+
#include <coreplugin/icore.h>
#include <utils/fileutils.h>
@@ -156,9 +158,9 @@ void PropertyEditorView::changeValue(const QString &name)
value->setValue(m_selectedNode.id());
m_locked = false;
if (!m_selectedNode.isValidId(newId))
- QMessageBox::warning(Core::ICore::dialogParent(), tr("Invalid Id"), tr("%1 is an invalid id.").arg(newId));
+ QmlDesignerWarning::show(tr("Invalid Id"), tr("%1 is an invalid id.").arg(newId));
else
- QMessageBox::warning(Core::ICore::dialogParent(), tr("Invalid Id"), tr("%1 already exists.").arg(newId));
+ QmlDesignerWarning::show(tr("Invalid Id"), tr("%1 already exists.").arg(newId));
}
return;
}