57 #include "private/qwidget_p.h" 66 #define ANIMATION_DURATION 250 97 #ifndef QT_NO_ANIMATION
105 #ifndef QT_NO_TOOLTIP 108 #ifndef QT_NO_WHATSTHIS 123 #ifndef QT_NO_ANIMATION 151 #endif //QT_NO_ANIMATION 156 void slide(
int from,
int to);
175 void moveTab(
int index,
int offset);
214 optTabBase->
init(tabbar);
217 if (theParent && overlap > 0) {
219 switch (tabOverlap.
shape) {
250 QSize sizeHint()
const;
252 {
return sizeHint(); }
254 void leaveEvent(
QEvent *event);
The QVariant class acts like a union for the most common Qt data types.
void moveTab(int index, int offset)
em>Reimplemented Function
The QColor class provides colors based on RGB, HSV or CMYK values.
bool validIndex(int index) const
void updateMacBorderMetrics()
#define QT_END_NAMESPACE
This macro expands to.
void moveTabFinished(int index)
em>Reimplemented Function
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option=0, const QWidget *widget=0) const =0
Returns the value of the given pixel metric.
void updateCurrentValue(const QVariant ¤t)
This pure virtual function is called every time the animation's current value changes.
void setCurrentNextEnabledIndex(int offset)
em>Reimplemented Function
void setEasingCurve(const QEasingCurve &easing)
void startAnimation(QTabBarPrivate *priv, int duration)
void start(QAbstractAnimation::DeletionPolicy policy=KeepWhenStopped)
Starts the animation.
void init(const QWidget *w)
Use initFrom(widget) instead.
int count(const T &t) const
Returns the number of occurrences of value in the list.
int indexAtPos(const QPoint &p) const
The QTabBar class provides a tab bar, e.g.
The QString class provides a Unicode character string.
void setEndValue(const QVariant &value)
QTabBar::SelectionBehavior selectionBehaviorOnRemove
QTabBar::Shape shape
the tab shape used to draw the tab; by default QTabBar::RoundedNorth
void setStartValue(const QVariant &value)
Tab(const QIcon &ico, const QString &txt)
int toInt(bool *ok=0) const
Returns the variant as an int if the variant has type() Int , Bool , ByteArray , Char ...
void setDuration(int msecs)
int width() const
Returns the width.
#define QT_BEGIN_NAMESPACE
This macro expands to.
Shape
This enum type lists the built-in shapes supported by QTabBar.
bool documentMode
whether the tabbar is in document mode.
TabBarAnimation(Tab *t, QTabBarPrivate *_priv)
The QVariantAnimation class provides an abstract base class for animations.
bool operator==(const Tab &other) const
Returns true if tab other is equal to this tab; otherwise returns false.
QTabBarPrivate::Tab::TabBarAnimation * animation
void slide(int from, int to)
int calculateNewPosition(int from, int to, int index) const
The State element defines configurations of objects and properties.
QSize minimumTabSizeHint(int index)
bool useScrollButtonsSetByUser
bool documentMode
Whether or not the tab bar is rendered in a mode suitable for the main window.
SelectionBehavior
This enum type lists the behavior of QTabBar when a tab is removed and the tab being removed is also ...
The QStyleOptionTabBarBaseV2 class is used to describe the base of a tab bar, i.e.
Shape shape
the shape of the tabs in the tab bar
#define Q_DECLARE_PUBLIC(Class)
static void initStyleBaseOption(QStyleOptionTabBarBaseV2 *optTabBase, QTabBar *tabbar, QSize size)
QObject * parent() const
Returns a pointer to the parent object.
void setRect(int x, int y, int w, int h)
Sets the coordinates of the rectangle's top-left corner to ({x}, {y}), and its size to the given widt...
The QPoint class defines a point in the plane using integer precision.
int height() const
Returns the height.
The QRect class defines a rectangle in the plane using integer precision.
QTabBar::Shape shape
the shape of the tab bar
void layoutWidgets(int start=0)
Qt::TextElideMode elideMode
void updateState(State, State newState)
The QStyleOptionTab class is used to describe the parameters for drawing a tab bar.
void layoutTab(int index)
The QSize class defines the size of a two-dimensional object using integer point precision.
The QPaintEvent class contains event parameters for paint events.
The QEvent class is the base class of all event classes.
bool event(QEvent *event)
Reimplemented Function
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QRect rect
the area that should be used for various calculations and painting
void makeVisible(int index)
The QList class is a template class that provides lists.
The QIcon class provides scalable icons in different modes and states.