summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Oliver Kropp <dok@directfb.org>2011-04-18 10:24:31 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-04-18 10:25:45 (GMT)
commit41c3b83ff68d2a58f5fda462907bbf0f8c63effc (patch)
tree2717a0a159eeb368a9e13b73309c402227986566
parentcec6c3ad52f6b4cdf04b70340ff7d15ebd8c7d26 (diff)
downloadQt-41c3b83ff68d2a58f5fda462907bbf0f8c63effc.zip
Qt-41c3b83ff68d2a58f5fda462907bbf0f8c63effc.tar.gz
Qt-41c3b83ff68d2a58f5fda462907bbf0f8c63effc.tar.bz2
Fix build of Qt/DirectFB without graphics view support.
Merge-request: 1187 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-rw-r--r--src/gui/widgets/qcombobox.cpp2
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/qcombobox.cpp b/src/gui/widgets/qcombobox.cpp
index 4b087e9..04ab801 100644
--- a/src/gui/widgets/qcombobox.cpp
+++ b/src/gui/widgets/qcombobox.cpp
@@ -704,11 +704,13 @@ void QComboBoxPrivateContainer::hideEvent(QHideEvent *)
{
emit resetButton();
combo->update();
+#ifndef QT_NO_GRAPHICSVIEW
// QGraphicsScenePrivate::removePopup closes the combo box popup, it hides it non-explicitly.
// Hiding/showing the QComboBox after this will unexpectedly show the popup as well.
// Re-hiding the popup container makes sure it is explicitly hidden.
if (QGraphicsProxyWidget *proxy = graphicsProxyWidget())
proxy->hide();
+#endif
}
void QComboBoxPrivateContainer::mousePressEvent(QMouseEvent *e)
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
index 3d8cf50..9a94c30 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
@@ -365,10 +365,12 @@ void QDirectFBWindowSurface::flush(QWidget *widget, const QRegion &region,
if (!win)
return;
-#ifndef QT_NO_QWS_PROXYSCREEN
+#if !defined(QT_NO_QWS_PROXYSCREEN) && !defined(QT_NO_GRAPHICSVIEW)
QWExtra *extra = qt_widget_private(widget)->extraData();
if (extra && extra->proxyWidget)
return;
+#else
+ Q_UNUSED(widget);
#endif
const quint8 windowOpacity = quint8(win->windowOpacity() * 0xff);