X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68be9f090f422450d333385cf62c9b4d350674be..edc8bd8df31879c79f286c3b3842da0a2c82e208:/include/wx/dragimag.h

diff --git a/include/wx/dragimag.h b/include/wx/dragimag.h
index d137c02f21..63ab20c64d 100644
--- a/include/wx/dragimag.h
+++ b/include/wx/dragimag.h
@@ -1,6 +1,8 @@
 #ifndef _WX_DRAGIMAG_H_BASE_
 #define _WX_DRAGIMAG_H_BASE_
 
+#if wxUSE_DRAGIMAGE
+
 #if defined(__WXMSW__)
 #ifdef __WIN16__
 #include "wx/generic/dragimgg.h"
@@ -20,11 +22,6 @@
 #define wxDragImage wxGenericDragImage
 #define sm_classwxDragImage sm_classwxGenericDragImage
 
-#elif defined(__WXQT__)
-#include "wx/generic/dragimgg.h"
-#define wxDragImage wxGenericDragImage
-#define sm_classwxDragImage sm_classwxGenericDragImage
-
 #elif defined(__WXMAC__)
 #include "wx/generic/dragimgg.h"
 #define wxDragImage wxGenericDragImage
@@ -42,5 +39,7 @@
 
 #endif
 
+#endif // wxUSE_DRAGIMAGE
+
 #endif
     // _WX_DRAGIMAG_H_BASE_