multipagewidgetplugin.cpp \
multipagewidgetcontainerextension.cpp \
multipagewidgetextensionfactory.cpp
+
+OTHER_FILES += multipagewidget.json
#! [2]
# install
}
//! [13]
-
-//! [14]
-Q_EXPORT_PLUGIN2(containerextension, MultiPageWidgetPlugin)
-//! [14]
class MultiPageWidgetPlugin: public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidget" FILE "multipagewidget.json")
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
MultiPageWidgetPlugin(QObject *parent = 0);
return "analogclock.h";
}
//! [12]
-
-//! [13]
-Q_EXPORT_PLUGIN2(customwidgetplugin, AnalogClockPlugin)
-//! [13]
class AnalogClockPlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface" FILE "analogclock.json")
Q_INTERFACES(QDesignerCustomWidgetInterface)
-
public:
AnalogClockPlugin(QObject *parent = 0);
customwidgetplugin.h
SOURCES = analogclock.cpp \
customwidgetplugin.cpp
+OTHER_FILES += analogclock.json
#! [3]
# install
tictactoedialog.cpp \
tictactoeplugin.cpp \
tictactoetaskmenu.cpp
+OTHER_FILES += tictactoe.json
#! [2]
# install
}
//! [3]
-
-//! [4]
-Q_EXPORT_PLUGIN2(taskmenuextension, TicTacToePlugin)
-//! [4]
class TicTacToePlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface" FILE "tictactoe.json")
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
{
return "worldtimeclock.h";
}
-
-//! [0]
-Q_EXPORT_PLUGIN2(worldtimeclockplugin, WorldTimeClockPlugin)
-//! [0]
public QDesignerCustomWidgetInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface" FILE "worldtimeclock.json")
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
SOURCES += \
$$PWD/buddyeditor.cpp \
$$PWD/buddyeditor_tool.cpp \
- $$PWD/buddyeditor_plugin.cpp \
- $$PWD/buddyeditor_instance.cpp
+ $$PWD/buddyeditor_plugin.cpp
+
+OTHER_FILES += $$PWD/buddyeditor.json
+++ /dev/null
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the Qt Designer of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** 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.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtCore/qplugin.h>
-
-#include "buddyeditor_plugin.h"
-
-QT_USE_NAMESPACE
-
-using namespace qdesigner_internal;
-
-Q_EXPORT_PLUGIN(BuddyEditorPlugin)
class QT_BUDDYEDITOR_EXPORT BuddyEditorPlugin: public QObject, public QDesignerFormEditorPluginInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerFormEditorPluginInterface" FILE "buddyeditor.json")
Q_INTERFACES(QDesignerFormEditorPluginInterface)
public:
BuddyEditorPlugin();
$$PWD/signalsloteditor.cpp \
$$PWD/signalsloteditor_tool.cpp \
$$PWD/signalsloteditor_plugin.cpp \
- $$PWD/signalsloteditor_instance.cpp \
$$PWD/signalsloteditorwindow.cpp
FORMS += $$PWD/connectdialog.ui
+
+OTHER_FILES += $$PWD/signalsloteditor.json
+++ /dev/null
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the Qt Designer of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** 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.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtCore/qplugin.h>
-
-#include "signalsloteditor_plugin.h"
-
-QT_USE_NAMESPACE
-
-using namespace qdesigner_internal;
-
-Q_EXPORT_PLUGIN(SignalSlotEditorPlugin)
class QT_SIGNALSLOTEDITOR_EXPORT SignalSlotEditorPlugin: public QObject, public QDesignerFormEditorPluginInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerFormEditorPluginInterface" FILE "signalsloteditor.json")
Q_INTERFACES(QDesignerFormEditorPluginInterface)
public:
SignalSlotEditorPlugin();
SOURCES += \
$$PWD/tabordereditor.cpp \
$$PWD/tabordereditor_tool.cpp \
- $$PWD/tabordereditor_plugin.cpp \
- $$PWD/tabordereditor_instance.cpp
+ $$PWD/tabordereditor_plugin.cpp
+
+OTHER_FILES += $$PWD/tabordereditor.json
+++ /dev/null
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the Qt Designer of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** 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.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtCore/qplugin.h>
-
-#include "tabordereditor_plugin.h"
-
-QT_USE_NAMESPACE
-using namespace qdesigner_internal;
-
-Q_EXPORT_PLUGIN(TabOrderEditorPlugin)
class QT_TABORDEREDITOR_EXPORT TabOrderEditorPlugin: public QObject, public QDesignerFormEditorPluginInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerFormEditorPluginInterface" FILE "tabordereditor.json")
Q_INTERFACES(QDesignerFormEditorPluginInterface)
public:
TabOrderEditorPlugin();
virtual QObject *extension(QObject *object, const QString &iid) const = 0;
};
-Q_DECLARE_INTERFACE(QAbstractExtensionFactory, "com.trolltech.Qt.QAbstractExtensionFactory")
+Q_DECLARE_INTERFACE(QAbstractExtensionFactory, "org.qt-project.Qt.QAbstractExtensionFactory")
class QAbstractExtensionManager
{
virtual QObject *extension(QObject *object, const QString &iid) const = 0;
};
-Q_DECLARE_INTERFACE(QAbstractExtensionManager, "com.trolltech.Qt.QAbstractExtensionManager")
+Q_DECLARE_INTERFACE(QAbstractExtensionManager, "org.qt-project.Qt.QAbstractExtensionManager")
#if defined(Q_CC_MSVC) && (_MSC_VER < 1300)
virtual QDesignerFormEditorInterface *core() const = 0;
};
-Q_DECLARE_INTERFACE(QDesignerFormEditorPluginInterface, "com.trolltech.Qt.Designer.QDesignerFormEditorPluginInterface")
+Q_DECLARE_INTERFACE(QDesignerFormEditorPluginInterface, "org.qt-project.Qt.Designer.QDesignerFormEditorPluginInterface")
QT_END_NAMESPACE
virtual QString uiExtension() const = 0;
};
-Q_DECLARE_EXTENSION_INTERFACE(QDesignerLanguageExtension, "com.trolltech.Qt.Designer.Language.3")
+Q_DECLARE_EXTENSION_INTERFACE(QDesignerLanguageExtension, "org.qt-project.Qt.Designer.Language.3")
QT_END_NAMESPACE
virtual bool isDynamicProperty(int index) const = 0;
virtual bool canAddDynamicProperty(const QString &propertyName) const = 0;
};
-Q_DECLARE_EXTENSION_INTERFACE(QDesignerDynamicPropertySheetExtension, "com.trolltech.Qt.Designer.DynamicPropertySheet")
+Q_DECLARE_EXTENSION_INTERFACE(QDesignerDynamicPropertySheetExtension, "org.qt-project.Qt.Designer.DynamicPropertySheet")
QT_END_NAMESPACE
private:
QString m_workingDirectory;
};
-Q_DECLARE_EXTENSION_INTERFACE(QDesignerExtraInfoExtension, "com.trolltech.Qt.Designer.ExtraInfo.2")
+Q_DECLARE_EXTENSION_INTERFACE(QDesignerExtraInfoExtension, "org.qt-project.Qt.Designer.ExtraInfo.2")
QT_END_NAMESPACE
virtual void adjustIndicator(const QPoint &pos, int index) = 0;
};
-Q_DECLARE_EXTENSION_INTERFACE(QDesignerLayoutDecorationExtension, "com.trolltech.Qt.Designer.LayoutDecoration")
+Q_DECLARE_EXTENSION_INTERFACE(QDesignerLayoutDecorationExtension, "org.qt-project.Qt.Designer.LayoutDecoration")
QT_END_NAMESPACE
virtual QList<QByteArray> parameterTypes(int index) const = 0;
virtual QList<QByteArray> parameterNames(int index) const = 0;
};
-Q_DECLARE_EXTENSION_INTERFACE(QDesignerMemberSheetExtension, "com.trolltech.Qt.Designer.MemberSheet")
+Q_DECLARE_EXTENSION_INTERFACE(QDesignerMemberSheetExtension, "org.qt-project.Qt.Designer.MemberSheet")
QT_END_NAMESPACE
};
Q_DECLARE_EXTENSION_INTERFACE(QDesignerPropertySheetExtension,
- "com.trolltech.Qt.Designer.PropertySheet")
+ "org.qt-project.Qt.Designer.PropertySheet")
QT_END_NAMESPACE
virtual QList<QAction*> taskActions() const = 0;
};
-Q_DECLARE_EXTENSION_INTERFACE(QDesignerTaskMenuExtension, "com.trolltech.Qt.Designer.TaskMenu")
+Q_DECLARE_EXTENSION_INTERFACE(QDesignerTaskMenuExtension, "org.qt-project.Qt.Designer.TaskMenu")
inline QAction *QDesignerTaskMenuExtension::preferredEditAction() const
return -1;
}
-Q_DECLARE_EXTENSION_INTERFACE(QDesignerActionProviderExtension, "com.trolltech.Qt.Designer.ActionProvider")
+Q_DECLARE_EXTENSION_INTERFACE(QDesignerActionProviderExtension, "org.qt-project.Qt.Designer.ActionProvider")
QT_END_NAMESPACE
* by the form builders (names, etc).
* Note that the property editor uses unqualified names ("Cancel") while the form builder serialization (uic)
* requires the whole string
- * ("QDialogButtonBox::Cancel" or "com.trolltech.qt.gui.QDialogButtonBox.StandardButton.Cancel").*/
+ * ("QDialogButtonBox::Cancel" or "org.qt-project.qt.gui.QDialogButtonBox.StandardButton.Cancel").*/
/* --------- MetaEnum: Base class representing a QMetaEnum with lookup functions
* in both ways. Template of int type since unsigned is more suitable for flags.
// ### Qt6 remove body, provided in Qt5 for source compatibility to Qt4.
{ Q_UNUSED(index); return true; }
};
-Q_DECLARE_EXTENSION_INTERFACE(QDesignerContainerExtension, "com.trolltech.Qt.Designer.Container")
+Q_DECLARE_EXTENSION_INTERFACE(QDesignerContainerExtension, "org.qt-project.Qt.Designer.Container")
QT_END_NAMESPACE
virtual QString codeTemplate() const { return QString(); }
};
-Q_DECLARE_INTERFACE(QDesignerCustomWidgetInterface, "com.trolltech.Qt.Designer.CustomWidget")
+#define QDesignerCustomWidgetInterface_iid "org.qt-project.QDesignerCustomWidgetInterface"
+
+Q_DECLARE_INTERFACE(QDesignerCustomWidgetInterface, QDesignerCustomWidgetInterface_iid)
class QDesignerCustomWidgetCollectionInterface
{
virtual QList<QDesignerCustomWidgetInterface*> customWidgets() const = 0;
};
-Q_DECLARE_INTERFACE(QDesignerCustomWidgetCollectionInterface,
- "com.trolltech.Qt.Designer.CustomWidgetCollection")
+
+#define QDesignerCustomWidgetCollectionInterface_iid "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface"
+
+Q_DECLARE_INTERFACE(QDesignerCustomWidgetCollectionInterface, QDesignerCustomWidgetCollectionInterface_iid)
QT_END_NAMESPACE
TEMPLATE = lib
DESTDIR = $$QT.designer.plugins/designer
+QT += designer-private widgets
CONFIG += qt warn_on qaxcontainer plugin designer debug_and_release
build_all:!build_pass {
CONFIG -= build_all
$$QT.activeqt.sources/shared/qaxtypes.h
# install
+OTHER_FILES += activeqt.json
target.path = $$[QT_INSTALL_PLUGINS]/designer
INSTALLS += target
</ui>");
}
-Q_EXPORT_PLUGIN(QAxWidgetPlugin)
-
QT_END_NAMESPACE
class QAxWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidget" FILE "activeqt.json")
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
- explicit inline QAxWidgetPlugin(QObject *parent = 0);
+ explicit QAxWidgetPlugin(QObject *parent = 0);
virtual QString name() const;
virtual QString group() const;
#include <QtCore/QDebug>
#include <QtWidgets/QIcon>
#include <QtGui/QPainter>
-#include <QtWidgets/QResizeEvent>
+#include <QtGui/QResizeEvent>
#include <ActiveQt/QAxWidget>
class PhononCollection: public QObject, public QDesignerCustomWidgetCollectionInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface" FILE "phonon.json")
Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
public:
explicit PhononCollection(QObject *parent = 0);
return m_plugins;
}
-Q_EXPORT_PLUGIN(PhononCollection)
-
QT_END_NAMESPACE
#include "phononcollection.moc"
seeksliderplugin.h \
volumesliderplugin.h
+OTHER_FILES = "phonon.json"
+
RESOURCES += phononwidgets.qrc
SOURCES += qdeclarativeview_plugin.cpp
HEADERS += qdeclarativeview_plugin.h
+OTHER_FILES += qdeclarativeview.json
</ui>");
}
-Q_EXPORT_PLUGIN2(customwidgetplugin, QDeclarativeViewPlugin)
-
QT_END_NAMESPACE
class QDeclarativeViewPlugin: public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface" FILE "qdeclarativeview.json")
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
QDeclarativeViewPlugin(QObject *parent = 0);
SOURCES += qwebview_plugin.cpp
HEADERS += qwebview_plugin.h
RESOURCES += qwebview_plugin.qrc
+OTHER_FILES += qwebview.json
</ui>");
}
-Q_EXPORT_PLUGIN2(customwidgetplugin, QWebViewPlugin)
-
QT_END_NAMESPACE
class QWebViewPlugin: public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface" FILE "qwebview.json")
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
QWebViewPlugin(QObject *parent = 0);