Refactored osgQt so that QWebViewImage is now entirely implementated in the header, and osgQt itself no longer compiles it,

leaving it to only applications that require it to include the header and it's implementation and with ith the QWebKit dependency.
This commit is contained in:
Robert Osfield
2010-05-22 15:45:02 +00:00
parent 0165862701
commit e826bfeb3c
8 changed files with 63 additions and 92 deletions

View File

@@ -13,7 +13,6 @@
#include <osgQt/QGraphicsViewAdapter>
#include <osgQt/QWidgetImage>
#include <osgQt/QWebViewImage>
#include <QtOpenGL/QGLWidget>
@@ -310,11 +309,7 @@ bool QGraphicsViewAdapter::handlePointerEvent(int x, int y, int buttonMask)
if (eventType==QEvent::MouseButtonPress)
{
QWidgetImage* qwidgetImage = dynamic_cast<QWidgetImage*>(_image.get());
if (qwidgetImage) qwidgetImage->focusWidget(true);
QWebViewImage* qwebViewImage = dynamic_cast<QWebViewImage*>(_image.get());
if (qwebViewImage) qwebViewImage->focusBrowser(true);
_image->sendFocusHint(true);
}
QMouseEvent event(eventType, QPoint(x, y), qtButton, qtMouseButtons, 0);