[Kde-bindings] KDE/kdebindings/smoke

Richard Dale richard.j.dale at gmail.com
Sun Aug 15 21:47:17 UTC 2010


SVN commit 1164100 by rdale:

* The QSqlRelationalDelegate class was not included in the Smoke library for 
QSql. Add it and also add QT_GUI_LIB to qtdefines so that smokegen always 
includes the class. Do we need to add test for how Qt was built for QT_GUI_LIB
though in case we want to cater for users who are using QtSql without QtGui?

CCMAIL: kde-bindings at kde.org


 M  +1 -0      qtcore/QtGuess.txt  
 M  +3 -0      qtsql/CMakeLists.txt  
 M  +1 -0      qtsql/qtsql_includes.h  
 M  +2 -0      qtsql/smokeconfig.xml  


--- trunk/KDE/kdebindings/smoke/qtcore/QtGuess.txt #1164099:1164100
@@ -95,6 +95,7 @@
 
 # macro is defined in qt-copy/src/qbase.pri but couldn't be found by qtguess, so I append it manually
 list(APPEND qtdefines "QT_NO_CAST_TO_ASCII")
+list(APPEND qtdefines "QT_GUI_LIB")
 
 # check for MSVC compiler
 if (MSVC)
--- trunk/KDE/kdebindings/smoke/qtsql/CMakeLists.txt #1164099:1164100
@@ -21,6 +21,8 @@
                 ${CMAKE_CURRENT_BINARY_DIR}/x_1.cpp 
 )
 
+ADD_DEFINITIONS(-DQT_GUI_LIB)
+
 IF(CMAKE_CXX_FLAGS MATCHES "-fvisibility")
     ADD_DEFINITIONS(-DGCC_VISIBILITY)
 ENDIF(CMAKE_CXX_FLAGS MATCHES "-fvisibility")
@@ -31,6 +33,7 @@
 target_link_libraries(smokeqtsql 
                         smokeqtcore 
                         ${QT_QTCORE_LIBRARY} 
+                        ${QT_QTGUI_LIBRARY} 
                         ${QT_QTSQL_LIBRARY} )
 
 set_target_properties(smokeqtsql PROPERTIES VERSION 3.0.0 SOVERSION 3 )
--- trunk/KDE/kdebindings/smoke/qtsql/qtsql_includes.h #1164099:1164100
@@ -1,2 +1,3 @@
 #include <QtCore>
+#include <QtGui>
 #include <QtSql>
--- trunk/KDE/kdebindings/smoke/qtsql/smokeconfig.xml #1164099:1164100
@@ -2,6 +2,7 @@
     <moduleName>qtsql</moduleName>
     <parentModules>
         <module>qtcore</module>
+        <module>qtsql</module>
     </parentModules>
     <parts>1</parts>
     <scalarTypes>
@@ -47,6 +48,7 @@
         <class>QSqlQueryModel</class>
         <class>QSqlRecord</class>
         <class>QSqlRelation</class>
+        <class>QSqlRelationalDelegate</class>
         <class>QSqlRelationalTableModel</class>
         <class>QSqlResult</class>
         <class>QSqlTableModel</class>



More information about the Kde-bindings mailing list