summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qtabbar_p.h
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2012-07-10 15:57:36 +0400
committerIvan Komissarov <ABBAPOH@gmail.com>2014-08-06 15:19:22 +0200
commit54ca39afec6c3a175da085a704772b28f42bc274 (patch)
treeddd4b9baebad197794dd3cd88908b719fa0ed260 /src/widgets/widgets/qtabbar_p.h
parente3e2e6877499ac6a151691e79d51850b9dad8941 (diff)
Add the QTabBar::changeCurrentOnDrag property.
This property indicates that the current tab will change whilst dragging over the tabbar [ChangeLog][QtWidgets][QTabBar] Added changeCurrentOnDrag property. Change-Id: Ib7d5a7613c9cd8432b84c523f66c02cd6c3c3c81 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/widgets/widgets/qtabbar_p.h')
-rw-r--r--src/widgets/widgets/qtabbar_p.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/widgets/widgets/qtabbar_p.h b/src/widgets/widgets/qtabbar_p.h
index 1238057e2a..bc6153dd34 100644
--- a/src/widgets/widgets/qtabbar_p.h
+++ b/src/widgets/widgets/qtabbar_p.h
@@ -77,7 +77,8 @@ public:
:currentIndex(-1), pressedIndex(-1), shape(QTabBar::RoundedNorth), layoutDirty(false),
drawBase(true), scrollOffset(0), elideModeSetByUser(false), useScrollButtonsSetByUser(false), expanding(true), closeButtonOnTabs(false),
selectionBehaviorOnRemove(QTabBar::SelectRightTab), paintWithOffsets(true), movable(false),
- dragInProgress(false), documentMode(false), autoHide(false), movingTab(0)
+ dragInProgress(false), documentMode(false), autoHide(false), changeCurrentOnDrag(false),
+ switchTabCurrentIndex(-1), switchTabTimerId(0), movingTab(0)
#ifdef Q_WS_MAC
, previousPressedIndex(-1)
#endif
@@ -203,6 +204,10 @@ public:
bool dragInProgress;
bool documentMode;
bool autoHide;
+ bool changeCurrentOnDrag;
+
+ int switchTabCurrentIndex;
+ int switchTabTimerId;
QWidget *movingTab;
#ifdef Q_WS_MAC
@@ -242,6 +247,8 @@ public:
}
}
+ void killSwitchTabTimer();
+
};
class CloseButton : public QAbstractButton