diff --git a/src/tools/qml/standalone/128xBauhaus_Logo.png b/src/tools/qml/standalone/128xBauhaus_Logo.png
deleted file mode 100644
index dc680dae3e0d875ee9e240455e689cb87d6519c8..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/128xBauhaus_Logo.png and /dev/null differ
diff --git a/src/tools/qml/standalone/16xBauhaus_Logo.png b/src/tools/qml/standalone/16xBauhaus_Logo.png
deleted file mode 100644
index 851973b30ace531ad5f31a41d05ceb1b9d61c929..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/16xBauhaus_Logo.png and /dev/null differ
diff --git a/src/tools/qml/standalone/256xBauhaus_Logo.png b/src/tools/qml/standalone/256xBauhaus_Logo.png
deleted file mode 100644
index 9ead12ddf2b08b4406b080bda6751b0799531ceb..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/256xBauhaus_Logo.png and /dev/null differ
diff --git a/src/tools/qml/standalone/512xBauhaus_Logo.png b/src/tools/qml/standalone/512xBauhaus_Logo.png
deleted file mode 100644
index d0229f9c89067fc42454c50e515f44018cd068b9..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/512xBauhaus_Logo.png and /dev/null differ
diff --git a/src/tools/qml/standalone/64xBauhaus_Logo.png b/src/tools/qml/standalone/64xBauhaus_Logo.png
deleted file mode 100644
index 098b823c945e10ecbbfb68cca4fc9af8e302f4ab..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/64xBauhaus_Logo.png and /dev/null differ
diff --git a/src/tools/qml/standalone/Info.plist b/src/tools/qml/standalone/Info.plist
deleted file mode 100644
index bbeb033718eae6979b061e67738ae6564bc81adc..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/Info.plist
+++ /dev/null
@@ -1,196 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>CFBundleDocumentTypes</key>
-	<array>
-		<dict>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeIconFile</key>
-			<string>qtcreator.icns</string>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>pro</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Qt Project File</string>
-			<key>LSHandlerRank</key>
-			<string>Default</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>pri</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Qt Project Include File</string>
-			<key>LSHandlerRank</key>
-			<string>Default</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>qrc</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Qt Resource File</string>
-			<key>LSHandlerRank</key>
-			<string>Default</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>pri</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Qt UI File</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>h</string>
-				<string>hpp</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Header File</string>
-			<key>CFBundleTypeOSTypes</key>
-			<array>
-				<string>TEXT</string>
-				<string>utxt</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>cc</string>
-				<string>CC</string>
-				<string>cp</string>
-				<string>CP</string>
-				<string>cpp</string>
-				<string>CPP</string>
-				<string>cxx</string>
-				<string>CXX</string>
-				<string>c++</string>
-				<string>C++</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>C++ Source File</string>
-			<key>CFBundleTypeOSTypes</key>
-			<array>
-				<string>TEXT</string>
-				<string>utxt</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>mm</string>
-				<string>MM</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Objective-C++ Source File</string>
-			<key>CFBundleTypeOSTypes</key>
-			<array>
-				<string>TEXT</string>
-				<string>utxt</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>m</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Objective-C Source File</string>
-			<key>CFBundleTypeOSTypes</key>
-			<array>
-				<string>TEXT</string>
-				<string>utxt</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>c</string>
-				<string>C</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>C Source File</string>
-			<key>CFBundleTypeOSTypes</key>
-			<array>
-				<string>TEXT</string>
-				<string>utxt</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>txt</string>
-				<string>text</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Text File</string>
-			<key>CFBundleTypeOSTypes</key>
-			<array>
-				<string>TEXT</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>*</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>NSStringPboardType</string>
-			<key>CFBundleTypeOSTypes</key>
-			<array>
-				<string>****</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-	</array>
-        <key>NSHumanReadableCopyright</key>
-        <string>(C) 2008-2011 Nokia Corporation
-Commercial Usage
-
-Licensees holding valid Qt Commercial licenses may use this file in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
-
-GNU Lesser General Public License Usage
-
-Alternatively, this plugin may be used under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation and appearing in the file LICENSE.LGPL included in the packaging of this file.  Please review the following information to ensure the GNU Lesser General Public License version 2.1 requirements will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.</string>
-        <key>CFBundleIconFile</key>
-	<string>@ICON@</string>
-	<key>CFBundlePackageType</key>
-	<string>APPL</string>
-	<key>CFBundleSignature</key>
-	<string>@TYPEINFO@</string>
-	<key>CFBundleExecutable</key>
-	<string>@EXECUTABLE@</string>
-	<key>CFBundleIdentifier</key>
-	<string>com.nokia.bauhaus</string>
-	<key>CFBundleVersion</key>
-	<string>1.0.0</string>
-	<key>CFBundleShortVersionString</key>
-	<string>1.0.0</string>
-</dict>
-</plist>
diff --git a/src/tools/qml/standalone/aboutdialog.cpp b/src/tools/qml/standalone/aboutdialog.cpp
deleted file mode 100644
index acb7d664696e9d6634b21377555a4b197d690cc1..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/aboutdialog.cpp
+++ /dev/null
@@ -1,99 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights.  These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**************************************************************************/
-
-#include "aboutdialog.h"
-#include "integrationcore.h"
-#include "pluginmanager.h"
-
-#include <QtCore/QDebug>
-#include <QtCore/QUrl>
-
-#include <QtGui/QApplication>
-#include <QtGui/QGridLayout>
-#include <QtGui/QTextEdit>
-#include <QtGui/QPushButton>
-
-
-static QString aboutText = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">"
-                           "<html><head><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\"font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">"
-                           "<p align=\"center\"><img src=\"logo\"/></p>"
-                           "<h2 align=\"center\">Bauhaus</h2>"
-                           "</body></html>";
-
-AboutDialog::AboutDialog(QWidget* parent):
-        QDialog(parent)
-{
-    setWindowFlags(windowFlags() | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint);
-    setStyleSheet(QString("background-color: #FFFFFF;"));
-
-    QGridLayout* dialogLayout = new QGridLayout;
-    setLayout(dialogLayout);
-
-    QTextEdit* textArea = new QTextEdit(this);
-    textArea->setReadOnly(true);
-    textArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
-    textArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
-    textArea->setFrameShape(QFrame::NoFrame);
-    textArea->setLineWidth(0);
-    QImage logoImage = QImage(QString(":/128xBauhaus_Logo.png"));
-    textArea->document()->addResource(QTextDocument::ImageResource, QUrl("logo"), logoImage);
-    textArea->setHtml(aboutText);
-    dialogLayout->addWidget(textArea, 0, 0, 1, 3);
-
-    QPushButton* aboutPluginsButton = new QPushButton("About Plug-ins...", this);
-    dialogLayout->addWidget(aboutPluginsButton, 1, 0, 1, 1);
-    connect(aboutPluginsButton, SIGNAL(clicked()), this, SLOT(doAboutPlugins()));
-
-    QPushButton* aboutQtButton = new QPushButton("About Qt...", this);
-    dialogLayout->addWidget(aboutQtButton, 1, 1, 1, 1);
-    connect(aboutQtButton, SIGNAL(clicked()), qApp, SLOT(aboutQt()));
-
-    QPushButton* closeButton = new QPushButton("Close", this);
-    dialogLayout->addWidget(closeButton, 1, 2, 1, 1);
-    connect(closeButton, SIGNAL(clicked()), this, SLOT(close()));
-}
-
-void AboutDialog::go(QWidget* parent)
-{
-    AboutDialog dialog(parent);
-    dialog.setWindowTitle(tr("About Bauhaus", "AboutDialog"));
-    dialog.exec();
-}
-
-void AboutDialog::doAboutPlugins()
-{
-    QmlDesigner::IntegrationCore *core = QmlDesigner::IntegrationCore::instance();
-    QDialog* dialog = core->pluginManager()->createAboutPluginDialog(this);
-    dialog->setWindowFlags(Qt::Sheet);
-    dialog->exec();
-}
diff --git a/src/tools/qml/standalone/aboutdialog.h b/src/tools/qml/standalone/aboutdialog.h
deleted file mode 100644
index 91501a8eaf6bd45c158b1f19e2f1ef659ef19bf8..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/aboutdialog.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights.  These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**************************************************************************/
-
-#ifndef AboutDialog_h
-#define AboutDialog_h
-
-#include <QtGui/QDialog>
-
-
-/*!
- This dialog could do with some animations and general beautification.
- */
-class AboutDialog: public QDialog
-{
-    Q_OBJECT
-
-public:
-    static void go(QWidget* parent = 0);
-
-public slots:
-    void doAboutPlugins();
-
-private:
-    AboutDialog(QWidget* parent = 0);
-};
-
-#endif // AboutDialog_h
diff --git a/src/tools/qml/standalone/application.cpp b/src/tools/qml/standalone/application.cpp
deleted file mode 100644
index 9dcf94d36ca76b66f67e1121e8a385ac4f1ad208..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/application.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights.  These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**************************************************************************/
-
-#include "application.h"
-#include <QtCore/QCoreApplication>
-#include <QtCore/QFileInfo>
-
-QString Application::sharedDirPath()
-{
-    QString path = QCoreApplication::applicationDirPath();
-
-#ifdef Q_OS_MACX
-    path += "/../../..";
-#endif // Q_OS_MACX
-
-    return QFileInfo(path + "/../../../../share/qtcreator/qmldesigner/").absoluteFilePath();
-}
diff --git a/src/tools/qml/standalone/application.h b/src/tools/qml/standalone/application.h
deleted file mode 100644
index 2de93c1f6c0352b1ff5676cf6541fb01ce2aadc0..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/application.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights.  These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**************************************************************************/
-
-#ifndef APPLICATION_H
-#define APPLICATION_H
-
-#include <QtCore/QString>
-
-class Application {
-public:
-    static QString sharedDirPath();
-};
-
-#endif // APPLICATION_H
diff --git a/src/tools/qml/standalone/bauhaus-logo.icns b/src/tools/qml/standalone/bauhaus-logo.icns
deleted file mode 100644
index ab9758015a4386e9c0fc88000dfc645eca0d74fc..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/bauhaus-logo.icns and /dev/null differ
diff --git a/src/tools/qml/standalone/bauhaus-macos.css b/src/tools/qml/standalone/bauhaus-macos.css
deleted file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000
diff --git a/src/tools/qml/standalone/bauhaus-windows.css b/src/tools/qml/standalone/bauhaus-windows.css
deleted file mode 100644
index 6c5bf7d2c6444eac2925e9d8dfcd0867399b0c5b..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/bauhaus-windows.css
+++ /dev/null
@@ -1,3 +0,0 @@
-QStatusBar {
-    border-top: 1px solid #b8b9b8;
-}
diff --git a/src/tools/qml/standalone/bauhaus-x11.css b/src/tools/qml/standalone/bauhaus-x11.css
deleted file mode 100644
index 6c5bf7d2c6444eac2925e9d8dfcd0867399b0c5b..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/bauhaus-x11.css
+++ /dev/null
@@ -1,3 +0,0 @@
-QStatusBar {
-    border-top: 1px solid #b8b9b8;
-}
diff --git a/src/tools/qml/standalone/bauhaus.css b/src/tools/qml/standalone/bauhaus.css
deleted file mode 100644
index 32b97e36516310aa575807a0af9dd4aa02bab4be..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/bauhaus.css
+++ /dev/null
@@ -1,28 +0,0 @@
-QTreeView#widgetTreeView {
-    background: #bababa;
-    border: 0px;
-	font-size: 11px;
-    selection-color: #fff;
-	selection-background-color: #3875d7;
-	font-variant: normal;
-}
-
-//QTreeView::item {
-//    padding: 3px;
-//}
-//
-//QTreeView::item:selected {
-//    border: 3px solid #ff0000;
-//    padding: 3px;
-//    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #3c77ad, stop: 1 #003882);
-//}
-
-//QTreeView#widgetTreeView::item {
-// inactive, in favour of the 2 items above (for testing, as the QTreeView seems to contain a bug which prevents border/padding to work correctly
-//    border: 1px solid #ff0000;
-//}
-
-QStackedWidget#widgetTreeStack {
-    background: #bababa;
-    border: 0px;
-}
diff --git a/src/tools/qml/standalone/bauhaus.ico b/src/tools/qml/standalone/bauhaus.ico
deleted file mode 100644
index d6e91cc255ca47fe916fabce607f017a288f983c..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/bauhaus.ico and /dev/null differ
diff --git a/src/tools/qml/standalone/bauhaus.qrc b/src/tools/qml/standalone/bauhaus.qrc
deleted file mode 100644
index 51bf90777490947e68b08b02757106f745157da5..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/bauhaus.qrc
+++ /dev/null
@@ -1,18 +0,0 @@
-<RCC>
-    <qresource prefix="/">
-        <file>toolbar-cssedit.png</file>
-        <file>toolbar-edit.png</file>
-        <file>bauhaus-windows.css</file>
-        <file>bauhaus-macos.css</file>
-        <file>bauhaus-x11.css</file>
-        <file>128xBauhaus_Logo.png</file>
-        <file>bauhaus.css</file>
-        <file alias="qmldesigner/templates/General/Empty QWidget">templates/qwidget.qml</file>
-        <file alias="qmldesigner/templates/General/Empty QGraphicsView">templates/qgraphicsview.qml</file>
-        <file>64xBauhaus_Logo.png</file>
-        <file>preview.png</file>
-        <file alias="qmldesigner/templates/General/Empty Fx">templates/fx.qml</file>
-        <file>16xBauhaus_Logo.png</file>
-        <file>256xBauhaus_Logo.png</file>
-    </qresource>
-</RCC>
diff --git a/src/tools/qml/standalone/css.png b/src/tools/qml/standalone/css.png
deleted file mode 100644
index 3a2c2555c418bf8fe2534bcb482f9b01a05a36dd..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/css.png and /dev/null differ
diff --git a/src/tools/qml/standalone/edit.png b/src/tools/qml/standalone/edit.png
deleted file mode 100644
index 2a55a4576d07188592620c5752660b6bc748fa09..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/edit.png and /dev/null differ
diff --git a/src/tools/qml/standalone/main.cpp b/src/tools/qml/standalone/main.cpp
deleted file mode 100644
index 1bceeb38c5779fa8b4366eb0d6c37f1dbdab3075..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/main.cpp
+++ /dev/null
@@ -1,165 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights.  These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**************************************************************************/
-
-#include <QtDebug>
-#include <QtCore/QFile>
-#include <QtCore/QTextStream>
-
-#include <QtGui/QApplication>
-
-#include <integrationcore.h>
-#include <pluginmanager.h>
-#include <model.h>
-
-#include <exception.h>
-#include "mainwindow.h"
-
-enum {
-    debug = false
-};
-
-static void doStyling(QApplication& app)
-{
-    QString ws;
-#ifdef Q_WS_MAC
-    ws = "macos";
-#endif // Q_WS_MAC
-
-#ifdef Q_WS_WIN
-    ws = "windows";
-#endif // Q_WS_WIN
-
-#ifdef Q_WS_X11
-    ws = "x11";
-#endif // Q_WS_X11
-
-    QFile platformCssFile(QString(":/bauhaus-%1.css").arg(ws));
-    platformCssFile.open(QIODevice::ReadOnly | QIODevice::Text);
-    QTextStream platformCssStream(&platformCssFile);
-    QString styleSheet(platformCssStream.readAll());
-    platformCssFile.close();
-
-    QFile genericCssFile(QLatin1String(":/bauhaus.css"));
-    genericCssFile.open(QIODevice::ReadOnly | QIODevice::Text);
-    QTextStream genericCssStream(&genericCssFile);
-    styleSheet.append(genericCssStream.readAll());
-    genericCssFile.close();
-
-    app.setStyleSheet(styleSheet);
-}
-
-static void parseArguments(const QStringList& argumentList, MainWindow& mainWindow)
-{
-    QStringList passArgumentList;
-    passArgumentList.append("--no-resync");
-    passArgumentList.append("-h");
-    passArgumentList.append("-graphicssystem");
-
-    for (int i = 1; i < argumentList.size(); ++i) {
-        if (argumentList[i].at(0) == QLatin1Char('-')) {
-            if (argumentList[i] == "--file" || argumentList[i] == "-file" || argumentList[i] == "-f") {
-                ++i;
-                if (i < argumentList.size()) {
-                    mainWindow.openFile(argumentList[i]);
-                } else {
-                    mainWindow.doOpen();
-                }
-            } else if (argumentList[i] == "--help" || argumentList[i] == "-h") {
-                qWarning() << "Usage: bauhaus [OPTION...]\n";
-                qWarning() << "  -f, --file      open this file";
-                qWarning() << "  --no-resync     disable rewriter";
-                exit(0);
-            } else if (passArgumentList.contains(argumentList[i].split('=').first())) {
-            } else {
-                qWarning() << "bauhaus: unrecognized option "<< argumentList[i];
-                qWarning() << "Try `bauhaus --help'";
-                exit(1);
-            }
-        } else {
-            mainWindow.openFile(argumentList[i]);
-        }
-    }
-}
-
-static QStringList pluginPaths()
-{
-    QStringList result;
-#ifdef Q_OS_MAC
-    result += QCoreApplication::applicationDirPath() + "/../PlugIns/Bauhaus/ItemLibs";
-#else // Q_OS_MAC
-    result += QCoreApplication::applicationDirPath() + "/../lib/itemlibs";
-#endif // Q_OS_MAC
-
-    return result;
-}
-
-int main(int argc, char *argv[])
-{
-    QApplication app(argc, argv);
-    Q_INIT_RESOURCE(bauhaus);
-
-    doStyling(app);
-
-#ifdef Q_WS_X11
-    QIcon applicationIcon;
-    applicationIcon.addFile(":/16xBauhaus_Log");
-    applicationIcon.addFile(":/64xBauhaus_Logo.png");
-    applicationIcon.addFile(":/128xBauhaus_Logo.png");
-    applicationIcon.addFile(":/256xBauhaus_Logo.png");
-    Q_ASSERT(!applicationIcon.isNull());
-    app.setWindowIcon(applicationIcon);
-#endif
-
-    QCoreApplication::setOrganizationName("Nokia");
-    QCoreApplication::setOrganizationDomain("nokia.com");
-    QCoreApplication::setApplicationName("Bauhaus");
-
-    try {
-        QmlDesigner::IntegrationCore core;
-        core.pluginManager()->setPluginPaths(pluginPaths());
-
-        MainWindow mainWindow;
-        mainWindow.show();
-
-        parseArguments(app.arguments(), mainWindow);
-
-//        if (mainWindow.documentCount() == 0)
-//            mainWindow.showWelcomeScreen();
-//
-        return app.exec();
-
-    } catch (const QmlDesigner::Exception &exception) {
-        qWarning() << exception;
-        return -1;
-    }
-}
diff --git a/src/tools/qml/standalone/mainwindow.cpp b/src/tools/qml/standalone/mainwindow.cpp
deleted file mode 100644
index a365f8a14240d4833afe90627ccb8711850a5588..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/mainwindow.cpp
+++ /dev/null
@@ -1,569 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights.  These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**************************************************************************/
-
-#include <QtCore/QtDebug>
-#include <QtCore/QBuffer>
-#include <QtCore/QFileInfo>
-#include <QtCore/QSettings>
-
-#include <QtGui/QAction>
-#include <QtGui/QApplication>
-#include <QtGui/QBoxLayout>
-#include <QtGui/QCloseEvent>
-#include <QtGui/QErrorMessage>
-#include <QtGui/QFrame>
-#include <QtGui/QMessageBox>
-#include <QtGui/QSplitter>
-#include <QtGui/QStackedWidget>
-#include <QtGui/QStatusBar>
-#include <QFile>
-
-#include "aboutdialog.h"
-#include "allpropertiesviewcontroller.h"
-#include "designdocumentcontroller.h"
-#include "multipledocumentscontroller.h"
-#include "mainwindow.h"
-#include "stylemanager.h"
-#include "widgetboxcontroller.h"
-#include "navigatorcontroller.h"
-#include "stateseditorcontroller.h"
-#include "xuifiledialog.h"
-#include "welcomescreen.h"
-
-using namespace QmlDesigner;
-
-class StyleAction: public QAction
-{
-public:
-    StyleAction(const QString& text, const QString& styleName, QObject* parent): QAction(text, parent), m_styleName(styleName) {}
-    StyleAction(const QString& text, QObject* parent): QAction(text, parent), m_styleName(QString()) {}
-
-    QString styleName() const { return m_styleName; }
-
-private:
-    QString m_styleName;
-};
-
-MainWindow::MainWindow(QWidget* parent):
-        QMainWindow(parent),
-        m_shutdown(false),
-        m_lastPath(QString()),
-        m_documentCount(0),
-        m_menuBar(new QMenuBar(this)),
-        m_itemLibraryController(new ItemLibraryController(this)),
-        m_navigatorController(new NavigatorController(this)),
-        m_statesEditorController(new StatesEditorController(this)),
-        m_propertiesViewController(new AllPropertiesViewController(this)),
-        m_multipleDocumentsController(new MultipleDocumentsController(this)),
-        m_recentFilesMenu(0),
-        m_mainArea(new QStackedWidget(this)),
-        m_welcomeScreen(new WelcomeScreen(this))
-{
-     //    setWindowFlags(Qt::MacWindowToolBarButtonHint);
-//    setUnifiedTitleAndToolBarOnMac(true);
-    setObjectName(QLatin1String("mainWindow"));
-    setWindowTitle(tr("Bauhaus", "MainWindowClass"));
-    resize(1046, 700);
-
-    QFile file(":/qmldesigner/stylesheet.css");
-    file.open(QFile::ReadOnly);
-    QString styleSheet = QLatin1String(file.readAll());
-    setStyleSheet(styleSheet);
-
-    setMenuBar(m_menuBar);
-
-    createMenus();
-    createMainArea();
-    createStatusBar();
-
-    updateActions();
-    updateMainArea();
-
-    connect(m_multipleDocumentsController, SIGNAL(documentCountChanged(unsigned)), this, SLOT(documentCountChanged(unsigned)));
-    connect(m_welcomeScreen, SIGNAL(newFile(QString)), this, SLOT(newFile(QString)));
-    connect(m_welcomeScreen, SIGNAL(openFile(QString)), this, SLOT(openFile(QString)));
-}
-
-MainWindow::~MainWindow()
-{
-    m_documentActions.clear();
-}
-
-int MainWindow::documentCount() const
-{
-    return m_documentCount;
-}
-
-void MainWindow::closeEvent(QCloseEvent *event)
-{
-    m_shutdown = true;
-    m_multipleDocumentsController->closeAll(true);
-    event->setAccepted(false);
-}
-
-void MainWindow::doQuit()
-{
-    m_shutdown = true;
-    m_multipleDocumentsController->closeAll(true);
-}
-
-void MainWindow::createMenus()
-{
-    // File menu:
-    QMenu* fileMenu = new QMenu(tr("&File"), m_menuBar);
-    m_menuBar->addMenu(fileMenu);
-
-    QAction* newAction = new QAction(tr("&New..."), fileMenu);
-    newAction->setShortcut(QKeySequence(tr("Ctrl+N")));
-    connect(newAction, SIGNAL(triggered()), this, SLOT(doNew()));
-    fileMenu->addAction(newAction);
-
-    QAction* openAction = new QAction(tr("&Open..."), fileMenu);
-    openAction->setShortcut(QKeySequence(tr("Ctrl+O")));
-    connect(openAction, SIGNAL(triggered()), this, SLOT(doOpen()));
-    fileMenu->addAction(openAction);
-
-    m_recentFilesMenu = new QMenu(tr("Recent Files"), fileMenu);
-    connect(m_recentFilesMenu, SIGNAL(aboutToShow()), this, SLOT(showRecentFilesMenu()));
-    fileMenu->addMenu(m_recentFilesMenu);
-
-    fileMenu->addSeparator();
-
-    QAction* saveAction = new QAction(tr("&Save"), fileMenu);
-    saveAction->setShortcut(QKeySequence(tr("Ctrl+S")));
-    connect(saveAction, SIGNAL(triggered()), m_multipleDocumentsController, SLOT(doSave()));
-    fileMenu->addAction(saveAction);
-    m_documentActions.append(saveAction);
-
-    QAction* saveAsAction = new QAction(tr("Save &As..."), fileMenu);
-    connect(saveAsAction, SIGNAL(triggered()), m_multipleDocumentsController, SLOT(doSaveAs()));
-    fileMenu->addAction(saveAsAction);
-    m_documentActions.append(saveAsAction);
-
-    fileMenu->addSeparator();
-
-    m_previewAction = new QAction(tr("&Preview"), fileMenu);
-    m_previewAction->setShortcut(QKeySequence(tr("Ctrl+R")));
-//    m_previewAction->setIcon(QIcon(":/preview.png"));
-    m_previewAction->setCheckable(true);
-    connect(m_previewAction, SIGNAL(toggled(bool)), m_multipleDocumentsController, SLOT(doPreview(bool)));
-    connect(m_multipleDocumentsController, SIGNAL(previewVisibilityChanged(bool)), m_previewAction, SLOT(setChecked(bool)));
-    fileMenu->addAction(m_previewAction);
-    m_documentActions.append(m_previewAction);
-
-    m_previewWithDebugAction = new QAction(tr("&Preview with Debug"), fileMenu);
-    m_previewWithDebugAction->setShortcut(QKeySequence(tr("Ctrl+D")));
-    m_previewWithDebugAction->setCheckable(true);
-    connect(m_previewWithDebugAction, SIGNAL(toggled(bool)), m_multipleDocumentsController, SLOT(doPreviewWithDebug(bool)));
-    connect(m_multipleDocumentsController, SIGNAL(previewWithDebugVisibilityChanged(bool)), m_previewWithDebugAction, SLOT(setChecked(bool)));
-    fileMenu->addAction(m_previewWithDebugAction);
-    m_documentActions.append(m_previewWithDebugAction);
-
-#ifndef Q_WS_MAC
-    fileMenu->addSeparator();
-#endif // !Q_WS_MAC
-
-    QAction* quitAction = new QAction(tr("&Quit"), fileMenu);
-    quitAction->setShortcut(QKeySequence(tr("Ctrl+Q")));
-    fileMenu->addAction(quitAction);
-    connect(quitAction, SIGNAL(triggered()), this, SLOT(doQuit()));
-
-    // Edit menu:
-    QMenu* editMenu = new QMenu(tr("&Edit"), m_menuBar);
-    m_menuBar->addMenu(editMenu);
-
-    QAction* undoAction = m_multipleDocumentsController->undoAction();
-    undoAction->setParent(editMenu);
-    undoAction->setShortcut(tr("Ctrl+Z"));
-    editMenu->addAction(undoAction);
-
-    QAction* redoAction = m_multipleDocumentsController->redoAction();
-    redoAction->setParent(editMenu);
-#ifdef Q_WS_WIN
-    redoAction->setShortcut(tr("Ctrl+Y"));
-#else // !Q_WS_WIN
-    redoAction->setShortcut(tr("Ctrl+Shift+Z"));
-#endif // Q_WS_WIN
-    editMenu->addAction(redoAction);
-
-    editMenu->addSeparator();
-
-    QAction *copyAction = new QAction(tr("&Copy"), editMenu);
-    connect(copyAction, SIGNAL(triggered()), m_multipleDocumentsController, SLOT(doCopy()));
-    copyAction->setShortcuts(QList<QKeySequence>() << QKeySequence(QKeySequence::Copy));
-    editMenu->addAction(copyAction);
-    m_documentActions.append(copyAction);
-
-    QAction *cutAction = new QAction(tr("&Cut"), editMenu);
-    connect(cutAction, SIGNAL(triggered()), m_multipleDocumentsController, SLOT(doCut()));
-    cutAction->setShortcuts(QList<QKeySequence>() << QKeySequence(QKeySequence::Cut));
-    editMenu->addAction(cutAction);
-    m_documentActions.append(cutAction);
-
-    QAction *pasteAction = new QAction(tr("&Paste"), editMenu);
-    connect(pasteAction, SIGNAL(triggered()), m_multipleDocumentsController, SLOT(doPaste()));
-    pasteAction->setShortcuts(QList<QKeySequence>() << QKeySequence(QKeySequence::Paste));
-    editMenu->addAction(pasteAction);
-    m_documentActions.append(pasteAction);
-
-    QAction *deleteAction = new QAction(tr("&Delete"), editMenu);
-    connect(deleteAction, SIGNAL(triggered()), m_multipleDocumentsController, SLOT(doDelete()));
-    deleteAction->setShortcuts(QList<QKeySequence>() << QKeySequence(tr("Del")) << QKeySequence(tr("Backspace")));
-    editMenu->addAction(deleteAction);
-    m_documentActions.append(deleteAction);
-
-    // View menu:
-    QMenu* viewMenu = new QMenu(tr("&View"), m_menuBar);
-    m_menuBar->addMenu(viewMenu);
-//
-//    m_showNewLookPropertiesAction = viewMenu->addAction(tr("&New Look Properties"));
-//    m_showNewLookPropertiesAction->setCheckable(true);
-//    m_showNewLookPropertiesAction->setEnabled(false);
-//    connect(m_showNewLookPropertiesAction, SIGNAL(triggered()), m_propertiesViewController, SLOT(showNewLookProperties()));
-//    m_documentActions.append(m_showNewLookPropertiesAction);
-//
-//    m_showTraditionalPropertiesAction = viewMenu->addAction(tr("&Traditional Properties"));
-//    m_showTraditionalPropertiesAction->setCheckable(true);
-//    m_showTraditionalPropertiesAction->setEnabled(false);
-//    connect(m_showTraditionalPropertiesAction, SIGNAL(triggered()), m_propertiesViewController, SLOT(showTraditionalProperties()));
-//    m_documentActions.append(m_showTraditionalPropertiesAction);
-//
-//    QActionGroup* propertiesLookGroup = new QActionGroup(this);
-//    propertiesLookGroup->addAction(m_showNewLookPropertiesAction);
-//    propertiesLookGroup->addAction(m_showTraditionalPropertiesAction);
-//    m_showNewLookPropertiesAction->setChecked(true);
-
-//    viewMenu->addSeparator();
-
-#ifdef ENABLE_TEXT_VIEW
-    QAction* showFormAction = m_multipleDocumentsController->showFormAction(viewMenu);
-    viewMenu->addAction(showFormAction);
-    QAction* showTextAction = m_multipleDocumentsController->showTextAction(viewMenu);
-    viewMenu->addAction(showTextAction);
-
-    QActionGroup* formTextGroup = new QActionGroup(this);
-    formTextGroup->addAction(showFormAction);
-    formTextGroup->addAction(showTextAction);
-    showFormAction->setChecked(true);
-
-    viewMenu->addSeparator();
-#endif // ENABLE_TEXT_VIEW
-
-    // Style selection:
-//    QMenu* styleMenu = viewMenu->addMenu("&Style");
-//    QActionGroup* styleGroup = new QActionGroup(this);
-//
-//    StyleAction* defaultStyleAction = new StyleAction("&Default", viewMenu);
-//    styleMenu->addAction(defaultStyleAction);
-//    defaultStyleAction->setCheckable(true);
-//    styleGroup->addAction(defaultStyleAction);
-//    connect(defaultStyleAction, SIGNAL(triggered()), this, SLOT(styleActionTriggered()));
-//
-//    styleMenu->addSeparator();
-//
-//    foreach (const QString styleName, StyleManager::styles()) {
-//        StyleAction* styleAction = new StyleAction(styleName, styleName, viewMenu);
-//        styleMenu->addAction(styleAction);
-//        styleAction->setCheckable(true);
-//        styleGroup->addAction(styleAction);
-//        connect(styleAction, SIGNAL(triggered()), this, SLOT(styleActionTriggered()));
-//    }
-//
-//    defaultStyleAction->setChecked(true);
-
-    // Help menu:
-    QMenu* helpMenu = new QMenu(tr("&Help"), this);
-    helpMenu->setObjectName(QString::fromAscii("helpMenu"));
-    m_menuBar->addMenu(helpMenu);
-
-    QAction* aboutAppAction = new QAction(tr("&About..."), this);
-    aboutAppAction->setObjectName(QString::fromAscii("aboutAppAction"));
-    connect(aboutAppAction, SIGNAL(triggered()), this, SLOT(doAbout()));
-    helpMenu->addAction(aboutAppAction);
-}
-
-void MainWindow::showRecentFilesMenu()
-{
-    m_recentFilesMenu->clear();
-    foreach (const QString &path, recentFiles()) {
-        QAction *action = m_recentFilesMenu->addAction(path);
-        action->setData(path);
-        connect(action, SIGNAL(triggered()), this, SLOT(doOpen()));
-    }
-}
-
-void MainWindow::styleActionTriggered()
-{
-    //### remove setStyle()
-//    StyleAction* source = dynamic_cast<StyleAction*>(sender());
-//
-//    if (source) {
-//        QString styleName = source->styleName();
-//
-//        if (styleName.isNull()) {
-//        } else {
-//            StyleManager::setStyle(styleName);
-//        }
-//    }
-}
-
-void MainWindow::createMainArea()
-{
-    QSplitter* mainSplitter = new QSplitter(this);
-    mainSplitter->setObjectName("mainSplitter");
-
-    // Left area:
-    QSplitter* leftSplitter = new QSplitter(mainSplitter);
-    leftSplitter->setObjectName("leftSplitter");
-    leftSplitter->setOrientation(Qt::Vertical);
-    {
-        QSizePolicy policy = leftSplitter->sizePolicy();
-        policy.setHorizontalStretch(0);
-        policy.setHorizontalPolicy(QSizePolicy::Preferred);
-        leftSplitter->setSizePolicy(policy);
-    }
-
-    leftSplitter->addWidget(m_navigatorController->widget());
-
-    QTabWidget *leftBottomTabWidget = new QTabWidget(this);
-    leftBottomTabWidget->addTab(m_itemLibraryController->widget(), "Library");
-    leftBottomTabWidget->addTab(m_propertiesViewController->widget(), tr("Properties"));
-    leftSplitter->addWidget(leftBottomTabWidget);
-
-    // right area:
-    QSplitter *rightSplitter = new QSplitter(mainSplitter);
-    rightSplitter->setObjectName("rightSplitter");
-    rightSplitter->setOrientation(Qt::Vertical);
-
-    rightSplitter->addWidget(m_statesEditorController->widget());
-    rightSplitter->addWidget(m_multipleDocumentsController->tabWidget());
-    {
-        QSizePolicy policy = m_multipleDocumentsController->tabWidget()->sizePolicy();
-        policy.setHorizontalStretch(1);
-        policy.setHorizontalPolicy(QSizePolicy::Expanding);
-        m_multipleDocumentsController->tabWidget()->setSizePolicy(policy);
-    }
-
-    // Finishing touches:
-    mainSplitter->setSizes(QList<int>() << 240 << 530);
-    rightSplitter->setSizes(QList<int>() << 100 << 400);
-    leftSplitter->setSizes(QList<int>() << 300 << 300);
-
-    // Wire everything together:
-    connect(m_multipleDocumentsController, SIGNAL(activeDocumentChanged(DesignDocumentController*)),
-            m_itemLibraryController, SLOT(show(DesignDocumentController*)));
-    connect(m_multipleDocumentsController, SIGNAL(documentClosed(DesignDocumentController*)),
-            m_itemLibraryController, SLOT(close(DesignDocumentController*)));
-
-    connect(m_multipleDocumentsController, SIGNAL(activeDocumentChanged(DesignDocumentController*)),
-            m_navigatorController, SLOT(show(DesignDocumentController*)));
-    connect(m_multipleDocumentsController, SIGNAL(documentClosed(DesignDocumentController*)),
-            m_navigatorController, SLOT(close(DesignDocumentController*)));
-
-    connect(m_multipleDocumentsController, SIGNAL(activeDocumentChanged(DesignDocumentController*)),
-            m_statesEditorController, SLOT(show(DesignDocumentController*)));
-    connect(m_multipleDocumentsController, SIGNAL(documentClosed(DesignDocumentController*)),
-            m_statesEditorController, SLOT(close(DesignDocumentController*)));
-
-    connect(m_multipleDocumentsController, SIGNAL(activeDocumentChanged(DesignDocumentController*)),
-            m_propertiesViewController, SLOT(show(DesignDocumentController*)));
-    connect(m_multipleDocumentsController, SIGNAL(documentClosed(DesignDocumentController*)),
-            m_propertiesViewController, SLOT(close(DesignDocumentController*)));
-
-    m_mainArea->addWidget(m_welcomeScreen);
-    m_mainArea->addWidget(mainSplitter);
-    setCentralWidget(m_mainArea);
-}
-
-void MainWindow::createStatusBar()
-{
-//    statusBar();
-}
-
-void MainWindow::doNew()
-{
-//    QWizard wizard;
-//    Internal::FormTemplateWizardPage page;
-//    wizard.addPage(&page);
-//    wizard.setWindowTitle("New Component Wizard");
-//    if (wizard.exec() != QDialog::Accepted)
-//        return;
-
-    QFile file(":/qmldesigner/templates/General/Empty Fx");
-    file.open(QFile::ReadOnly);
-    newFile(file.readAll());
-//    newFile(page.templateContents().toLatin1());
-}
-
-void MainWindow::doOpen()
-{
-    if (QAction *senderAction = qobject_cast<QAction*>(sender())) {
-        if (senderAction->data().isValid()) {
-            // from recent files menu
-            QString path = senderAction->data().toString();
-            openFile(path);
-            return;
-        }
-    }
-    XUIFileDialog::runOpenFileDialog(m_lastPath, this, this, SLOT(openFile(QString)));
-}
-
-void MainWindow::openFile(const QString &fileName)
-{
-//    qDebug() << "openFile("+fileName+")";
-//
-    if (fileName.isNull())
-        return;
-
-    m_lastPath = QFileInfo(fileName).path();
-
-    QString errorMessage;
-
-    QFile file(fileName);
-    if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
-        errorMessage = tr("Could not open file <%1>").arg(fileName);
-    } else {
-        DesignDocumentController* controller = new DesignDocumentController(m_multipleDocumentsController);
-        controller->setFileName(fileName);
-        QList<QmlDesigner::RewriterView::Error> errors = controller->loadMaster(file.readAll());
-        if (errors.isEmpty()) {
-            connect(controller, SIGNAL(fileToOpen(QString)), this, SLOT(openFile(QString)));
-            m_multipleDocumentsController->open(controller);
-            addRecentFile(QFileInfo(file).absoluteFilePath());
-        } else {
-            errorMessage = serializeErrors(errors);
-            delete controller;
-        }
-    }
-
-    if (!errorMessage.isEmpty()) {
-        QErrorMessage msgBox(this);
-        msgBox.showMessage(errorMessage);
-        msgBox.exec();
-    }
-}
-
-void MainWindow::newFile(const QString &templateName)
-{
-    if (templateName.isNull())
-        return;
-
-    QFile file(templateName);
-    if (!file.open(QFile::ReadOnly))
-        return;
-
-    newFile(file.readAll());
-}
-
-void MainWindow::doAbout()
-{
-    AboutDialog::go(this);
-}
-
-void MainWindow::documentCountChanged(unsigned newCount)
-{
-    if (m_documentCount == newCount)
-        return;
-    m_documentCount = newCount;
-
-    if (!m_shutdown) {
-        updateActions();
-        updateMainArea();
-    }
-}
-
-void MainWindow::updateActions()
-{
-    bool enable = m_documentCount != 0;
-    foreach (QAction *documentAction, m_documentActions)
-        documentAction->setEnabled(enable);
-}
-
-void MainWindow::updateMainArea()
-{
-    if (m_multipleDocumentsController->activeDocumentCount() == 0) {
-        m_welcomeScreen->setRecentFiles(recentFiles());
-        m_mainArea->setCurrentIndex(0); // welcome screen
-    } else {
-        m_mainArea->setCurrentIndex(1);
-    }
-}
-
-void MainWindow::newFile(const QByteArray &templateContents)
-{
-    DesignDocumentController *controller = new DesignDocumentController(m_multipleDocumentsController);
-    QList<QmlDesigner::RewriterView::Error> errors = controller->loadMaster(templateContents);
-
-    if (errors.isEmpty()) {
-        connect(controller, SIGNAL(fileToOpen(QString)), this, SLOT(openFile(QString)));
-        m_multipleDocumentsController->open(controller);
-    } else {
-        delete controller;
-        QErrorMessage msgBox(this);
-        msgBox.showMessage(serializeErrors(errors));
-        msgBox.exec();
-    }
-}
-
-QStringList MainWindow::recentFiles() const
-{
-    const QSettings settings;
-    return settings.value("recentFiles", QStringList()).toStringList();
-}
-
-void MainWindow::addRecentFile(const QString &path)
-{
-    QSettings settings;
-    QStringList files = settings.value("recentFiles", QStringList()).toStringList();
-
-    files.removeAll(path);
-    if (files.size() > 10)
-        files.removeLast();
-    files.prepend(path);
-
-    settings.setValue("recentFiles", files);
-}
-
-QString MainWindow::serializeErrors(const QList<QmlDesigner::RewriterView::Error> &errors)
-{
-    if (errors.isEmpty())
-        return QString();
-    QString errorMsg = tr("Qml Errors:");
-    foreach (const QmlDesigner::RewriterView::Error &error, errors) {
-        if (!error.url().isEmpty())
-         errorMsg.append(tr("\n%1 %2:%3 - %4").arg(error.url().toString(), QString(error.line()), QString(error.column()), error.description()));
-        else
-         errorMsg.append(tr("\n%1:%2 - %3").arg(QString(error.line()), QString(error.column()), error.description()));
-    }
-    return errorMsg;
-}
diff --git a/src/tools/qml/standalone/mainwindow.h b/src/tools/qml/standalone/mainwindow.h
deleted file mode 100644
index 7e75d2896a7cac1941df2b80bb77de89309731d3..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/mainwindow.h
+++ /dev/null
@@ -1,124 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights.  These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**************************************************************************/
-
-#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
-
-#include <QtCore/QList>
-#include <QtCore/QString>
-
-#include <QtGui/QMainWindow>
-#include <QtGui/QMenuBar>
-#include <QtGui/QMenu>
-#include <QtGui/QStackedWidget>
-
-#include "rewriterview.h"
-
-class QmlError;
-class WelcomeScreen;
-
-namespace QmlDesigner {
-    class ItemLibraryController;
-    class NavigatorController;
-    class StatesEditorController;
-    class AllPropertiesViewController;
-    class MultipleDocumentsController;
-}
-
-class MainWindow : public QMainWindow
-{
-    Q_OBJECT
-
-public:
-    MainWindow(QWidget* parent = 0);
-    ~MainWindow();
-
-    int documentCount() const;
-
-public slots:
-    void documentCountChanged(unsigned newCount);
-    void openFile(const QString &fileName);
-    void newFile(const QString &fileTemplate);
-
-    void doNew();
-    void doOpen();
-    void doQuit();
-    void doAbout();
-
-protected:
-    void closeEvent(QCloseEvent *event);
-
-private slots:
-    void showRecentFilesMenu();
-    void styleActionTriggered();
-
-private:
-    void createMenus();
-    void createMainArea();
-    void createMainEditArea();
-    void createMainStyleArea();
-    void createStatusBar();
-    void updateActions();
-    void updateMainArea();
-
-    void newFile(const QByteArray &templateContents);
-
-    QStringList recentFiles() const;
-    void addRecentFile(const QString &path);
-
-    QString serializeErrors(const QList<QmlDesigner::RewriterView::Error> &errors);
-
-private:
-    bool m_shutdown;
-    QString m_lastPath;
-    QList<QAction*> m_documentActions;
-    unsigned int m_documentCount;
-
-    QMenuBar* m_menuBar;
-
-    QmlDesigner::ItemLibraryController* m_itemLibraryController;
-    QmlDesigner::NavigatorController* m_navigatorController;
-    QmlDesigner::StatesEditorController* m_statesEditorController;
-    QmlDesigner::AllPropertiesViewController* m_propertiesViewController;
-    QmlDesigner::MultipleDocumentsController* m_multipleDocumentsController;
-    QAction* m_previewAction;
-    QAction* m_previewWithDebugAction;
-    QAction* m_showNewLookPropertiesAction;
-    QAction* m_showTraditionalPropertiesAction;
-    QMenu* m_recentFilesMenu;
-
-    QStackedWidget *m_mainArea;
-    WelcomeScreen *m_welcomeScreen;
-};
-
-#endif // MAINWINDOW_H
diff --git a/src/tools/qml/standalone/preview.png b/src/tools/qml/standalone/preview.png
deleted file mode 100644
index 496498ff9a0b781a7d75543a0709b496fdc74f27..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/preview.png and /dev/null differ
diff --git a/src/tools/qml/standalone/standalone.pro b/src/tools/qml/standalone/standalone.pro
deleted file mode 100644
index 6b09c847ddfd217fbf09306df36b3013f1823851..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/standalone.pro
+++ /dev/null
@@ -1,50 +0,0 @@
-!contains(QT_CONFIG, declarative) {
-    error("Qt is not configured with the declarative model.");
-}
-
-TEMPLATE = app
-CONFIG(debug, debug|release):CONFIG += console
-TARGET = bauhaus
-macx:TARGET = Bauhaus
-CONFIG += qt
-CONFIG += webkit
-QT += gui opengl
-
-HEADERS += \
-    aboutdialog.h \
-    mainwindow.h \
-    application.h \
-    welcomescreen.h
-
-SOURCES += \
-    aboutdialog.cpp \
-    main.cpp \
-    mainwindow.cpp \
-    application.cpp \
-    welcomescreen.cpp
-
-include(../../../libs/qmljs/qmljs-lib.pri)
-HEADERS+=../../../libs/utils/changeset.h
-SOURCES+=../../../libs/utils/changeset.cpp
-INCLUDEPATH+=../../../libs
-DEFINES+=QTCREATOR_UTILS_STATIC_LIB QML_BUILD_STATIC_LIB
-
-include(../../../plugins/qmldesigner/config.pri)
-include(../../../plugins/qmldesigner/components/integration/integration.pri)
-include(../../../plugins/qmldesigner/components/propertyeditor/propertyeditor.pri)
-include(../../../plugins/qmldesigner/components/formeditor/formeditor.pri)
-include(../../../plugins/qmldesigner/components/navigator/navigator.pri)
-include(../../../plugins/qmldesigner/components/stateseditor/stateseditor.pri)
-include(../../../plugins/qmldesigner/components/itemlibrary/itemlibrary.pri)
-include(../../../plugins/qmldesigner/components/resources/resources.pri)
-include(../../../plugins/qmldesigner/components/pluginmanager/pluginmanager.pri)
-include(../../../plugins/qmldesigner/components/themeloader/qts60stylethemeio.pri)
-include (../../../plugins/qmldesigner/core/core.pri)
-RESOURCES += bauhaus.qrc
-win32:RC_FILE = bauhaus.rc
-macx {
-    ICON = bauhaus-logo.icns
-    QMAKE_INFO_PLIST = Info.plist
-}
-QMAKE_CXXFLAGS_HIDESYMS=""
-
diff --git a/src/tools/qml/standalone/templates/fx.qml b/src/tools/qml/standalone/templates/fx.qml
deleted file mode 100644
index 9689e0c3665cc87faa2355c415e0f47da9874d5a..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/templates/fx.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import Qt 4.7
-
-Item {
-    id: rootItem
-    width: 640
-    height: 480
-}
diff --git a/src/tools/qml/standalone/templates/qgraphicsview.qml b/src/tools/qml/standalone/templates/qgraphicsview.qml
deleted file mode 100644
index 1c46f7347beffa62168598e3b659ac565fb28a5d..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/templates/qgraphicsview.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import Qt 4.7
-
-QGraphicsView {
-    objectName: "view"
-    width: 300
-    height: 300
-    scene: QGraphicsScene {
-        objectName: "scene"
-    }
-}
diff --git a/src/tools/qml/standalone/templates/qwidget.qml b/src/tools/qml/standalone/templates/qwidget.qml
deleted file mode 100644
index 0c27daa325a23e4adef82ffd69057efd55601e84..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/templates/qwidget.qml
+++ /dev/null
@@ -1,9 +0,0 @@
-import Qt 4.7
-
-QWidget {
-    objectName: "Form"
-    x: 300
-    y: 200
-    width: 455
-    height: 376
-}
diff --git a/src/tools/qml/standalone/toolbar-cssedit.png b/src/tools/qml/standalone/toolbar-cssedit.png
deleted file mode 100644
index 423d1b04b3023f870a7dfc444db94c200b23a744..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/toolbar-cssedit.png and /dev/null differ
diff --git a/src/tools/qml/standalone/toolbar-edit.png b/src/tools/qml/standalone/toolbar-edit.png
deleted file mode 100644
index 8c2f4c1209a7fd4bada73c1178e09c192c0fa582..0000000000000000000000000000000000000000
Binary files a/src/tools/qml/standalone/toolbar-edit.png and /dev/null differ
diff --git a/src/tools/qml/standalone/welcomescreen.cpp b/src/tools/qml/standalone/welcomescreen.cpp
deleted file mode 100644
index 1686a5b11a14e7b4c53a93f9105b3508c4d4feb8..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/welcomescreen.cpp
+++ /dev/null
@@ -1,154 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights.  These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**************************************************************************/
-
-#include "welcomescreen.h"
-#include "application.h"
-
-#include <QtGui/QBoxLayout>
-#include <QtDeclarative/QmlView>
-#include <QtDeclarative/QmlGraphicsItem>
-#include <QtDeclarative/QmlContext>
-#include <QtCore/QCoreApplication>
-
-RecentFileModel::RecentFileModel(QObject *parent) :
-        QListModelInterface(parent)
-{
-}
-
-void RecentFileModel::setRecentFiles(const QStringList &filePaths)
-{
-    QStringList oldPaths = m_paths;
-    m_paths.clear();
-    if (oldPaths.size() > 0) {
-        emit itemsRemoved(0, oldPaths.size());
-    }
-
-    m_paths = filePaths;
-
-    if (m_paths.size() > 0) {
-        emit itemsInserted(0, m_paths.size());
-    }
-}
-
-int RecentFileModel::count() const
-{
-    return m_paths.size();
-}
-
-QHash<int, QVariant> RecentFileModel::data(int index, const QList<int> &/*roles*/) const
-{
-    QHash<int,QVariant> dataHash;
-
-    dataHash.insert(NameRole, displayPath(m_paths.at(index)));
-    dataHash.insert(FileNameRole, m_paths.at(index));
-    return dataHash;
-}
-
-QVariant RecentFileModel::data(int index, int role) const
-{
-    if (role == NameRole)
-        return displayPath(m_paths.at(index));
-    if (role == FileNameRole)
-        return m_paths.at(index);
-    return QVariant();
-}
-
-QList<int> RecentFileModel::roles() const
-{
-    return QList<int>() << NameRole << FileNameRole;
-}
-
-QString RecentFileModel::toString(int role) const
-{
-    switch (role) {
-    case NameRole: return "name"; break;
-    case FileNameRole: return "fileName"; break;
-    default: Q_ASSERT_X(0, Q_FUNC_INFO, "Unknown role");
-    }
-    return QString();
-}
-
-QString RecentFileModel::displayPath(const QString &filePath) const
-{
-    QString displayPath = filePath;
-    while (displayPath.length() > 25 && displayPath.contains('/')) {
-        displayPath.remove(0, displayPath.indexOf('/') + 1);
-    }
-
-    if (displayPath != filePath)
-        displayPath.prepend("../");
-
-    return displayPath;
-}
-
-WelcomeScreen::WelcomeScreen(QWidget *parent) :
-        QWidget(parent),
-        m_view(new QmlView(this)),
-        m_recentFileModel(new RecentFileModel(this))
-{
-    m_view->setUrl(QUrl::fromLocalFile(Application::sharedDirPath() + "welcomescreen.qml"));
-    m_view->setContentResizable(true);
-
-    QmlContext *context = m_view->rootContext();
-    context->setContextProperty(QLatin1String("recentFiles"), m_recentFileModel);
-
-    m_view->execute();
-
-    QObject *rootItem = m_view->root();
-    connect(rootItem, SIGNAL(openFile()), this, SLOT(openFile()));
-
-    QBoxLayout *layout = new QBoxLayout(QBoxLayout::LeftToRight, this);
-    layout->setMargin(0);
-    layout->addWidget(m_view);
-
-    QPalette palette;
-    palette.setColor(QPalette::Window, QColor(0x2e, 0x2e, 0x2e));
-    setPalette(palette);
-    setBackgroundRole(QPalette::Window);
-    setAutoFillBackground(true);
-}
-
-void WelcomeScreen::setRecentFiles(const QStringList &files)
-{
-    m_recentFileModel->setRecentFiles(files);
-}
-
-void WelcomeScreen::openFile()
-{
-    QString filePath = m_view->root()->property("selectedFile").toString();
-    if (filePath.startsWith(':')) {
-        emit newFile(filePath);
-    } else {
-        emit openFile(filePath);
-    }
-}
diff --git a/src/tools/qml/standalone/welcomescreen.h b/src/tools/qml/standalone/welcomescreen.h
deleted file mode 100644
index 8f908874286f9989d11e665229646e0fd2383599..0000000000000000000000000000000000000000
--- a/src/tools/qml/standalone/welcomescreen.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights.  These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**************************************************************************/
-
-#include <QtCore/QMetaType>
-#include <QtGui/QDialog>
-#include <private/qlistmodelinterface_p.h>
-
-class QmlView;
-
-class RecentFileModel : public QListModelInterface {
-    Q_OBJECT
-public:
-    enum Roles {
-        NameRole,
-        FileNameRole
-    };
-
-    RecentFileModel(QObject *parent = 0);
-    void setRecentFiles(const QStringList &filePaths);
-
-    int count() const;
-    QHash<int, QVariant> data(int index, const QList<int> &roles = QList<int>()) const;
-    QVariant data(int index, int role) const;
-    QList<int> roles() const;
-    QString toString(int role) const;
-private:
-    QString displayPath(const QString &filePath) const;
-
-    QStringList m_paths;
-};
-
-class WelcomeScreen : public QWidget {
-    Q_OBJECT
-
-public:
-    WelcomeScreen(QWidget *parent);
-    void setRecentFiles(const QStringList &recentFiles);
-
-signals:
-    void appExit();
-    void openFile(const QString &filePath);
-    void newFile(const QString &templatePath);
-
-private slots:
-    void openFile();
-
-private:
-    QmlView *m_view;
-    RecentFileModel *m_recentFileModel;
-};
-