New QmlDesigner plugin & Design mode

This adds a new "Design" mode that can be used to manipulate qml files
in a visual way. It will only get build if you have the declarativeui
module in Qt.

This is a squashed import from the Bauhaus project. Share & enjoy :)
This commit is contained in:
Kai Koehne
2010-01-07 12:14:35 +01:00
parent ae535daa20
commit 818a7b226b
743 changed files with 102919 additions and 23 deletions

View File

@@ -171,6 +171,7 @@ void QmlHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in
}
}
QString symbolName = QLatin1String("<unknown>");
if (m_helpId.isEmpty()) {
// Move to the end of a qualified name
bool stop = false;
@@ -194,7 +195,12 @@ void QmlHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in
QmlSymbol *resolvedSymbol = resolver.typeOf(expressionUnderCursor.expressionNode());
if (resolvedSymbol) {
m_helpId = buildHelpId(resolvedSymbol);
symbolName = resolvedSymbol->name();
if (resolvedSymbol->isBuildInSymbol())
m_helpId = buildHelpId(resolvedSymbol);
else if (QmlSymbolFromFile *symbolFromFile = resolvedSymbol->asSymbolFromFile())
m_toolTip = symbolFromFile->fileName();
}
}
@@ -216,6 +222,6 @@ void QmlHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in
} else if (!m_toolTip.isEmpty()) {
m_toolTip = QString(QLatin1String("<nobr>%1")).arg(m_toolTip);
} else if (!m_helpId.isEmpty()) {
m_toolTip = QString(QLatin1String("<nobr>No help available for \"%1\"")).arg(m_helpId);
m_toolTip = QString(QLatin1String("<nobr>No help available for \"%1\"")).arg(symbolName);
}
}