Multi-Qt building

git-svn-id: svn://db.shs.com.ru/libs@250 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
2017-08-03 08:09:44 +00:00
parent 96935ebb4a
commit 0834c45c90
78 changed files with 410 additions and 249 deletions

View File

@@ -1 +1 @@
qad_plugin(graphic "")
qad_plugin(graphic "Gui;Widgets;OpenGL" "")

View File

@@ -1,7 +1,11 @@
#ifndef GRAPHICPLUGIN_H
#define GRAPHICPLUGIN_H
#include <QDesignerCustomWidgetInterface>
#if QT_VERSION >= 0x050000
# include <QtUiPlugin/QDesignerCustomWidgetInterface>
#else
# include <QDesignerCustomWidgetInterface>
#endif
class GraphicPlugin: public QObject, public QDesignerCustomWidgetInterface
{

View File

@@ -1,5 +1,5 @@
#include "graphicplugin.h"
#include "qad_graphic.h"
#include "graphicplugin.h"
QADGraphic::QADGraphic(QObject * parent): QObject(parent)
{
@@ -11,4 +11,7 @@ QList<QDesignerCustomWidgetInterface * > QADGraphic::customWidgets() const {
return m_widgets;
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(qad_graphic_plugin, QADGraphic)
#endif

View File

@@ -8,7 +8,9 @@ class QADGraphic: public QObject, public QDesignerCustomWidgetCollectionInterfac
{
Q_OBJECT
Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
#if QT_VERSION >= 0x050000
Q_PLUGIN_METADATA(IID "qad.graphic")
#endif
public:
explicit QADGraphic(QObject * parent = 0);
virtual QList<QDesignerCustomWidgetInterface * > customWidgets() const;