diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2013-12-16 22:43:05 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-11 22:13:19 +0100 |
commit | cd5ae8fb21c2e44083f0b8ba85ef8d620803c934 (patch) | |
tree | b4ec936a4bd6a8a6375bffdcfc4a0931fed04286 /src/widgets/widgets/qtoolbar_p.h | |
parent | 684ebc66481eb095bac1aea4db5ae5a41aabd604 (diff) |
Enable window dragging code in QToolBar on Mac
Allows moving the window by dragging the unified
title and toolbar area.
Task-number: QTBUG-34411
Change-Id: Idd85c0031895b5afd7dfdc8616e4452c47935af2
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/widgets/widgets/qtoolbar_p.h')
-rw-r--r-- | src/widgets/widgets/qtoolbar_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/widgets/qtoolbar_p.h b/src/widgets/widgets/qtoolbar_p.h index 9ff0b9d61c..c9dd0490cd 100644 --- a/src/widgets/widgets/qtoolbar_p.h +++ b/src/widgets/widgets/qtoolbar_p.h @@ -75,7 +75,7 @@ public: allowedAreas(Qt::AllToolBarAreas), orientation(Qt::Horizontal), toolButtonStyle(Qt::ToolButtonIconOnly), layout(0), state(0) -#ifdef Q_WS_MAC +#ifdef Q_OS_OSX , macWindowDragging(false) #endif { } @@ -107,7 +107,7 @@ public: }; DragState *state; -#ifdef Q_WS_MAC +#ifdef Q_OS_OSX bool macWindowDragging; QPoint macWindowDragPressPosition; #endif |