浏览代码

COMP: Add dllimport/dllexport for windows build (ctkPixmapIconEngine)

Julien Finet 15 年之前
父节点
当前提交
86ba71093c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Libs/Widgets/ctkPixmapIconEngine.h

+ 3 - 1
Libs/Widgets/ctkPixmapIconEngine.h

@@ -66,6 +66,8 @@
 #include <QPixmap>
 #include <QVector>
 
+#include "CTKWidgetsExport.h"
+
 struct ctkPixmapIconEngineEntry
 {
     ctkPixmapIconEngineEntry():mode(QIcon::Normal), state(QIcon::Off){}
@@ -81,7 +83,7 @@ struct ctkPixmapIconEngineEntry
     bool isNull() const {return (fileName.isEmpty() && pixmap.isNull()); }
 };
 
-class ctkPixmapIconEngine : public QIconEngineV2 {
+class CTK_WIDGETS_EXPORT ctkPixmapIconEngine : public QIconEngineV2 {
 public:
     ctkPixmapIconEngine();
     ctkPixmapIconEngine(const ctkPixmapIconEngine &);