summaryrefslogtreecommitdiff
path: root/src/gui/widgets/qtabbar_p.h
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ulattil@nokia.com>2009-10-27 10:56:39 +0100
committerPrasanth Ullattil <prasanth.ulattil@nokia.com>2009-10-27 10:56:39 +0100
commit3bc088fad760bd50eec05b323a056641247a9a59 (patch)
tree7e8ea3eba5d282891a013c6a14c3ac19aa650427 /src/gui/widgets/qtabbar_p.h
parent5393f71b9ac66395258713d1703e5c7f23aba206 (diff)
downloadqt4-tools-3bc088fad760bd50eec05b323a056641247a9a59.tar.gz
QTabbar is not behaving (painting) like native ones on Mac.
When a tab is clicked and mouse is moved outside that tab, it should be drawn as normal (not in sunken state). Reviewed-by: MortenS
Diffstat (limited to 'src/gui/widgets/qtabbar_p.h')
-rw-r--r--src/gui/widgets/qtabbar_p.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/widgets/qtabbar_p.h b/src/gui/widgets/qtabbar_p.h
index 494a340205..9f3285ba1b 100644
--- a/src/gui/widgets/qtabbar_p.h
+++ b/src/gui/widgets/qtabbar_p.h
@@ -77,7 +77,11 @@ public:
:currentIndex(-1), pressedIndex(-1), shape(QTabBar::RoundedNorth), layoutDirty(false),
drawBase(true), scrollOffset(0), expanding(true), closeButtonOnTabs(false),
selectionBehaviorOnRemove(QTabBar::SelectRightTab), paintWithOffsets(true), movable(false),
- dragInProgress(false), documentMode(false), movingTab(0) {}
+ dragInProgress(false), documentMode(false), movingTab(0)
+#ifdef Q_WS_MAC
+ , previousPressedIndex(-1)
+#endif
+ {}
int currentIndex;
int pressedIndex;
@@ -195,7 +199,9 @@ public:
bool documentMode;
QWidget *movingTab;
-
+#ifdef Q_WS_MAC
+ int previousPressedIndex;
+#endif
// shared by tabwidget and qtabbar
static void initStyleBaseOption(QStyleOptionTabBarBaseV2 *optTabBase, QTabBar *tabbar, QSize size)
{