summaryrefslogtreecommitdiff
blob: f8777b037c5430d83cc21d3a47edd37158c8f860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -ru soqt-1.4.1~/src/Inventor/Qt/SoQtComponent.cpp soqt-1.4.1/src/Inventor/Qt/SoQtComponent.cpp
--- soqt-1.4.1~/src/Inventor/Qt/SoQtComponent.cpp	2009-02-25 07:55:02.000000000 -0800
+++ soqt-1.4.1/src/Inventor/Qt/SoQtComponent.cpp	2009-02-25 07:56:36.000000000 -0800
@@ -100,10 +100,17 @@
   this->parent->removeEventFilter(this);
 }
 
+#if COIN_MAJOR_VERSION >= 3
+static void delete_dict_value(SbDict::Key key, void * value)
+{
+  delete (QCursor *)value;
+}
+#else // COIN_MAJOR_VERSION >= 3
 static void delete_dict_value(unsigned long key, void * value)
 {
   delete (QCursor *)value;
 }
+#endif // COIN_MAJOR_VERSION < 3
 
 void
 SoQtComponentP::atexit_cleanup()