Qt 4.8
Classes | Public Functions | Public Variables | List of all members
QTabBarPrivate::Tab Struct Reference

#include <qtabbar_p.h>

Classes

struct  TabBarAnimation
 

Public Functions

bool operator== (const Tab &other) const
 Returns true if tab other is equal to this tab; otherwise returns false. More...
 
void startAnimation (QTabBarPrivate *priv, int duration)
 
 Tab (const QIcon &ico, const QString &txt)
 
 ~Tab ()
 

Public Variables

QTabBarPrivate::Tab::TabBarAnimationanimation
 
QVariant data
 
int dragOffset
 
bool enabled
 
QIcon icon
 
int lastTab
 
QWidgetleftWidget
 
QRect maxRect
 
QRect minRect
 
QRect rect
 
QWidgetrightWidget
 
int shortcutId
 
QString text
 
QColor textColor
 
QString toolTip
 
QString whatsThis
 

Detailed Description

Definition at line 93 of file qtabbar_p.h.

Constructors and Destructors

◆ Tab()

QTabBarPrivate::Tab::Tab ( const QIcon ico,
const QString txt 
)
inline

Definition at line 94 of file qtabbar_p.h.

95  : enabled(true) , shortcutId(0), text(txt), icon(ico),
97 #ifndef QT_NO_ANIMATION
98  , animation(0)
99 #endif //QT_NO_ANIMATION
100  {}
QWidget * rightWidget
Definition: qtabbar_p.h:119
QTabBarPrivate::Tab::TabBarAnimation * animation
QWidget * leftWidget
Definition: qtabbar_p.h:118

◆ ~Tab()

QTabBarPrivate::Tab::~Tab ( )
inline

Definition at line 124 of file qtabbar_p.h.

124 { delete animation; }
QTabBarPrivate::Tab::TabBarAnimation * animation

Functions

◆ operator==()

bool Tab::operator== ( const Tab other) const
inline

Returns true if tab other is equal to this tab; otherwise returns false.

Definition at line 101 of file qtabbar_p.h.

101 { return &other == this; }

◆ startAnimation()

void QTabBarPrivate::Tab::startAnimation ( QTabBarPrivate priv,
int  duration 
)
inline

Definition at line 140 of file qtabbar_p.h.

140  {
141  if (!animation)
142  animation = new TabBarAnimation(this, priv);
145  animation->setDuration(duration);
146  animation->start();
147  }
void start(QAbstractAnimation::DeletionPolicy policy=KeepWhenStopped)
Starts the animation.
void setEndValue(const QVariant &value)
void setStartValue(const QVariant &value)
void setDuration(int msecs)
QTabBarPrivate::Tab::TabBarAnimation * animation

Properties

◆ animation

QTabBarPrivate::Tab::TabBarAnimation * QTabBarPrivate::Tab::animation

◆ data

QVariant QTabBarPrivate::Tab::data

Definition at line 117 of file qtabbar_p.h.

◆ dragOffset

int QTabBarPrivate::Tab::dragOffset

Definition at line 121 of file qtabbar_p.h.

Referenced by QTabBarPrivate::layoutTab(), and QTabBarPrivate::moveTabFinished().

◆ enabled

bool QTabBarPrivate::Tab::enabled

Definition at line 102 of file qtabbar_p.h.

Referenced by QTabBar::initStyleOption().

◆ icon

QIcon QTabBarPrivate::Tab::icon

Definition at line 111 of file qtabbar_p.h.

Referenced by QTabBar::initStyleOption().

◆ lastTab

int QTabBarPrivate::Tab::lastTab

Definition at line 120 of file qtabbar_p.h.

◆ leftWidget

QWidget* QTabBarPrivate::Tab::leftWidget

Definition at line 118 of file qtabbar_p.h.

Referenced by QTabBar::initStyleOption(), and QTabBarPrivate::layoutTab().

◆ maxRect

QRect QTabBarPrivate::Tab::maxRect

Definition at line 114 of file qtabbar_p.h.

◆ minRect

QRect QTabBarPrivate::Tab::minRect

Definition at line 113 of file qtabbar_p.h.

◆ rect

QRect QTabBarPrivate::Tab::rect

Definition at line 112 of file qtabbar_p.h.

Referenced by QTabBarPrivate::initStyleBaseOption().

◆ rightWidget

QWidget* QTabBarPrivate::Tab::rightWidget

Definition at line 119 of file qtabbar_p.h.

Referenced by QTabBar::initStyleOption(), and QTabBarPrivate::layoutTab().

◆ shortcutId

int QTabBarPrivate::Tab::shortcutId

Definition at line 103 of file qtabbar_p.h.

Referenced by QTabBar::event().

◆ text

QString QTabBarPrivate::Tab::text

Definition at line 104 of file qtabbar_p.h.

Referenced by QTabBar::initStyleOption(), and QTabBarPrivate::minimumTabSizeHint().

◆ textColor

QColor QTabBarPrivate::Tab::textColor

Definition at line 116 of file qtabbar_p.h.

Referenced by QTabBar::initStyleOption().

◆ toolTip

QString QTabBarPrivate::Tab::toolTip

Definition at line 106 of file qtabbar_p.h.

◆ whatsThis

QString QTabBarPrivate::Tab::whatsThis

Definition at line 109 of file qtabbar_p.h.

Referenced by QTabBar::event().


The documentation for this struct was generated from the following files: