summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qunifiedtoolbarsurface_mac_p.h
diff options
context:
space:
mode:
authorFabien Freling <fabien.freling@nokia.com>2011-02-24 15:36:44 (GMT)
committerFabien Freling <fabien.freling@nokia.com>2011-02-25 10:09:02 (GMT)
commit2b9e7bcede5ca6ba9de2534839244cc621f17e1c (patch)
tree477d5077cc2dcfb0a6ba2a576445f4640ecba837 /src/gui/painting/qunifiedtoolbarsurface_mac_p.h
parentf41e395e9ebc6db33c21ff082b59f2d7b6d2a3b2 (diff)
downloadQt-2b9e7bcede5ca6ba9de2534839244cc621f17e1c.zip
Qt-2b9e7bcede5ca6ba9de2534839244cc621f17e1c.tar.gz
Qt-2b9e7bcede5ca6ba9de2534839244cc621f17e1c.tar.bz2
Add the ability to remove a toolbar from the unified toolbar.
This allows to toggle the unified look of the toolbar. This is useful for apps going fullscreen since we have to turn the unified look off when entering fullscreen mode. Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/gui/painting/qunifiedtoolbarsurface_mac_p.h')
-rw-r--r--src/gui/painting/qunifiedtoolbarsurface_mac_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/painting/qunifiedtoolbarsurface_mac_p.h b/src/gui/painting/qunifiedtoolbarsurface_mac_p.h
index f7ad02e..99839fa 100644
--- a/src/gui/painting/qunifiedtoolbarsurface_mac_p.h
+++ b/src/gui/painting/qunifiedtoolbarsurface_mac_p.h
@@ -55,6 +55,7 @@
#include <private/qwindowsurface_raster_p.h>
#include <QWidget>
+#include <QToolBar>
#include <private/qwidget_p.h>
#include <private/qnativeimage_p.h>
@@ -82,15 +83,17 @@ public:
void setGeometry(const QRect &rect);
void beginPaint(const QRegion &rgn);
void insertToolbar(QWidget *toolbar, const QPoint &offset);
+ void removeToolbar(QToolBar *toolbar);
void updateToolbarOffset(QWidget *widget);
+ void renderToolbar(QWidget *widget, bool forceFlush = false);
QPaintDevice *paintDevice();
CGContextRef imageContext();
- void renderToolbar(QWidget *widget, bool forceFlush = false);
private:
void prepareBuffer(QImage::Format format, QWidget *widget);
void recursiveRedirect(QObject *widget, QWidget *parent_toolbar, const QPoint &offset);
+ void recursiveRemoval(QObject *object);
Q_DECLARE_PRIVATE(QUnifiedToolbarSurface)
QScopedPointer<QUnifiedToolbarSurfacePrivate> d_ptr;