Merge remote branch 'origin/2.1'

Conflicts:
    share/qtcreator/static.pro
    src/plugins/qmljseditor/qmljsoutlinetreeview.cpp
    src/plugins/projectexplorer/outputwindow.cpp
This commit is contained in:
Oswald Buddenhagen
2010-11-15 19:03:18 +01:00
29 changed files with 245 additions and 688 deletions

View File

@@ -62,11 +62,12 @@ QString QmlFileWizard::fileContents(const QString &fileName) const
QTextStream str(&contents);
// str << CppTools::AbstractEditorSupport::licenseTemplate();
// 100:62 is the 'golden ratio'
str << QLatin1String("import Qt 4.7\n")
<< QLatin1String("\n")
<< QLatin1String("Rectangle {\n")
<< QLatin1String(" width: 640\n")
<< QLatin1String(" height: 480\n")
<< QLatin1String(" width: 100\n")
<< QLatin1String(" height: 62\n")
<< QLatin1String("}\n");
return contents;

View File

@@ -159,6 +159,13 @@ void QuickToolBar::apply(TextEditor::BaseTextEditorEditable *editor, Document::P
end = objectBinding->lastSourceLocation().end();
}
if (lookupContext.isNull()) {
if (name != m_oldType)
m_prototypes.clear();
}
m_oldType = name;
m_prototypes.append(name);
int line1;

View File

@@ -53,6 +53,7 @@ private:
bool m_blockWriting;
QStringList m_propertyOrder;
QStringList m_prototypes;
QString m_oldType;
};
} //QmlDesigner