-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathWidgetCollection.cpp
More file actions
51 lines (44 loc) · 1.2 KB
/
WidgetCollection.cpp
File metadata and controls
51 lines (44 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "WidgetCollection.h"
//#include <QtCore/QtPlugin>
#include "SliderEditInterface.h"
#include "QIntSliderEditInterface.h"
#include "QLabelEditInterface.h"
#include "QVectorEditInterface.h"
#ifdef QT5
#ifdef _DEBUG
#pragma comment(lib,"Qt5Designerd")
#pragma comment(lib,"Qt5Cored")
#pragma comment(lib,"Qt5Guid")
#pragma comment(lib,"Qt5Widgetsd")
#else
#pragma comment(lib,"Qt5Designer")
#pragma comment(lib,"Qt5Core")
#pragma comment(lib,"Qt5Gui")
#pragma comment(lib,"Qt5Widgets")
#endif
#else
#ifdef _DEBUG
#pragma comment(lib,"QtDesignerd4")
#pragma comment(lib,"QtCored4")
#pragma comment(lib,"QtGuid4")
#else
#pragma comment(lib,"QtDesigner4")
#pragma comment(lib,"QtCore4")
#pragma comment(lib,"QtGui4")
#endif
#endif
WidgetCollection::WidgetCollection(QObject *parent)
: QObject(parent)
{
widgets.append(new QSliderEditInterface(this));
widgets.append(new QIntSliderEditInterface(this));
widgets.append(new QLabelEditInterface(this));
widgets.append(new QVectorEditInterface(this));
}
QList<QDesignerCustomWidgetInterface*> WidgetCollection::customWidgets() const
{
return widgets;
}
#ifndef QT5
Q_EXPORT_PLUGIN2(SimulQtWidgets, WidgetCollection)
#endif