Skip to content

Commit

Permalink
Merge branch 'master' into mergeopenmp
Browse files Browse the repository at this point in the history
  • Loading branch information
andresy committed Jun 5, 2012
2 parents 3e96df6 + bb4bc8b commit 5f39484
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion exe/qtlua/packages/qtgui/CMakeLists.txt
@@ -1,6 +1,10 @@
# -*- cmake -*-

SET(QT_USE_QTWEBKIT 1)
IF (QT_QTWEBKIT_FOUND)
SET(QT_USE_QTWEBKIT 1)
SET(QT_USE_QTNETWORK 1)
ADD_DEFINITIONS("-DHAVE_QTWEBKIT=1")
ENDIF (QT_QTWEBKIT_FOUND)

INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}")
Expand Down
8 changes: 6 additions & 2 deletions exe/qtlua/packages/qtgui/qtgui.cpp
Expand Up @@ -44,8 +44,9 @@
#include <QTransform>
#include <QVariant>
#include <QVector>
#if HAVE_QTWEBKIT
#include <QWebView>

#endif

Q_DECLARE_METATYPE(QGradient)
Q_DECLARE_METATYPE(QPainterPath)
Expand Down Expand Up @@ -1961,6 +1962,7 @@ do_hook(qtransform)
// ========================================
// QWEBVIEW

#if HAVE_QTWEBKIT

static int
qwebview_new(lua_State *L)
Expand Down Expand Up @@ -1999,7 +2001,7 @@ static struct luaL_Reg qwebview_lib[] = {

do_qhook(qwebview)


#endif

// ========================================
// QWIDGET
Expand Down Expand Up @@ -2441,7 +2443,9 @@ luaopen_libqtgui(lua_State *L)
HOOK_QVARIANT(QPen, qpen);
HOOK_QOBJECT(QtLuaAction, qtluaaction);
HOOK_QVARIANT(QTransform, qtransform);
#if HAVE_QTWEBKIT
HOOK_QOBJECT(QWebView, qwebview);
#endif
HOOK_QOBJECT(QWidget, qwidget);

return 0;
Expand Down

0 comments on commit 5f39484

Please sign in to comment.