diff --git a/src/plugins/qmldesigner/components/integration/allpropertiesviewcontroller.cpp b/src/plugins/qmldesigner/components/integration/allpropertiesviewcontroller.cpp deleted file mode 100644 index 35cb7b58ae4..00000000000 --- a/src/plugins/qmldesigner/components/integration/allpropertiesviewcontroller.cpp +++ /dev/null @@ -1,64 +0,0 @@ -/************************************************************************** -** -** This file is part of Qt Creator -** -** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -** -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** 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 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. -** -** If you are unsure which license is appropriate for your use, please -** contact the sales department at http://qt.nokia.com/contact. -** -**************************************************************************/ - -#include - -#include - -#include "designdocumentcontroller.h" -#include "allpropertiesviewcontroller.h" - -namespace QmlDesigner { - -AllPropertiesViewController::AllPropertiesViewController(QObject* parent): - StackedUtilityPanelController(parent) -{ - setObjectName("PropertiesViewController"); -} - -QWidget* AllPropertiesViewController::stackedPageWidget(DesignDocumentController* designDocumentController) const -{ - return designDocumentController->allPropertiesBox(); -} - -void AllPropertiesViewController::showNewLookProperties() -{ - AllPropertiesBox* propsBox = dynamic_cast(dynamic_cast(contentWidget())->currentWidget()); - if (propsBox) - propsBox->showNewLook(); -} - -void AllPropertiesViewController::showTraditionalProperties() -{ - AllPropertiesBox* propsBox = dynamic_cast(dynamic_cast(contentWidget())->currentWidget()); - if (propsBox) - propsBox->showTraditional(); -} - -} // namespace QmlDesigner diff --git a/src/plugins/qmldesigner/components/integration/allpropertiesviewcontroller.h b/src/plugins/qmldesigner/components/integration/allpropertiesviewcontroller.h deleted file mode 100644 index 210ed504041..00000000000 --- a/src/plugins/qmldesigner/components/integration/allpropertiesviewcontroller.h +++ /dev/null @@ -1,54 +0,0 @@ -/************************************************************************** -** -** This file is part of Qt Creator -** -** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -** -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** 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 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. -** -** If you are unsure which license is appropriate for your use, please -** contact the sales department at http://qt.nokia.com/contact. -** -**************************************************************************/ - -#ifndef ALLPROPERTIESVIEWCONTROLLER_H -#define ALLPROPERTIESVIEWCONTROLLER_H - -#include "stackedutilitypanelcontroller.h" - -namespace QmlDesigner { - -class AllPropertiesViewController : public StackedUtilityPanelController -{ - Q_OBJECT - -public: - AllPropertiesViewController(QObject* parent = 0); - -public slots: - void showNewLookProperties(); - void showTraditionalProperties(); - -protected: - class QWidget* stackedPageWidget(class DesignDocumentController* designDocumentController) const; -}; - -} // namespace QmlDesigner - -#endif // ALLPROPERTIESVIEWCONTROLLER_H diff --git a/src/plugins/qmldesigner/components/integration/integration.pri b/src/plugins/qmldesigner/components/integration/integration.pri index 0247e2df106..d7f6d3a18f4 100644 --- a/src/plugins/qmldesigner/components/integration/integration.pri +++ b/src/plugins/qmldesigner/components/integration/integration.pri @@ -6,7 +6,6 @@ SOURCES += \ designdocumentcontroller.cpp \ designdocumentcontrollerview.cpp \ navigatorcontroller.cpp \ - allpropertiesviewcontroller.cpp \ utilitypanelcontroller.cpp \ widgetboxcontroller.cpp \ stackedutilitypanelcontroller.cpp \ @@ -22,7 +21,6 @@ HEADERS += \ designdocumentcontrollerview.h \ designdocumentcontroller.h \ navigatorcontroller.h \ - allpropertiesviewcontroller.h \ utilitypanelcontroller.h \ widgetboxcontroller.h \ stackedutilitypanelcontroller.h \