QtGui/qtabbar.h Source File
Go to the documentation of this file.
65 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged)
67 Q_PROPERTY(
bool drawBase READ drawBase WRITE setDrawBase)
70 Q_PROPERTY(
bool usesScrollButtons READ usesScrollButtons WRITE setUsesScrollButtons)
71 Q_PROPERTY(
bool tabsClosable READ tabsClosable WRITE setTabsClosable)
73 Q_PROPERTY(
bool expanding READ expanding WRITE setExpanding)
75 Q_PROPERTY(
bool documentMode READ documentMode WRITE setDocumentMode)
81 enum
Shape { RoundedNorth, RoundedSouth, RoundedWest, RoundedEast,
83 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
84 , RoundedAbove = RoundedNorth, RoundedBelow = RoundedSouth,
85 TriangularAbove = TriangularNorth, TriangularBelow = TriangularSouth
101 void setShape(Shape shape);
103 int addTab(
const QString &text);
109 void removeTab(
int index);
110 void moveTab(
int from,
int to);
112 bool isTabEnabled(
int index)
const;
113 void setTabEnabled(
int index,
bool);
122 void setTabIcon(
int index,
const QIcon &icon);
127 #ifndef QT_NO_TOOLTIP
132 #ifndef QT_NO_WHATSTHIS
141 int tabAt(
const QPoint &pos)
const;
143 int currentIndex()
const;
149 void setDrawBase(
bool drawTheBase);
150 bool drawBase()
const;
152 QSize iconSize()
const;
155 bool usesScrollButtons()
const;
156 void setUsesScrollButtons(
bool useButtons);
158 bool tabsClosable()
const;
159 void setTabsClosable(
bool closable);
161 void setTabButton(
int index, ButtonPosition position,
QWidget *widget);
162 QWidget *tabButton(
int index, ButtonPosition position)
const;
164 SelectionBehavior selectionBehaviorOnRemove()
const;
165 void setSelectionBehaviorOnRemove(SelectionBehavior behavior);
167 bool expanding()
const;
168 void setExpanding(
bool enabled);
170 bool isMovable()
const;
171 void setMovable(
bool movable);
173 bool documentMode()
const;
174 void setDocumentMode(
bool set);
177 void setCurrentIndex(
int index);
180 void currentChanged(
int index);
181 void tabCloseRequested(
int index);
182 void tabMoved(
int from,
int to);
186 virtual void tabInserted(
int index);
187 virtual void tabRemoved(
int index);
188 virtual void tabLayoutChange();
198 #ifndef QT_NO_WHEELEVENT
207 QT_MOC_COMPAT
void setCurrentTab(
int index) { setCurrentIndex(index); }
209 QT_MOC_COMPAT
void selected(
int);
212 friend class QAccessibleTabBar;
220 #endif // QT_NO_TABBAR
#define Q_PRIVATE_SLOT(d, signature)
#define QT_BEGIN_NAMESPACE
GLsizei GLsizei GLenum GLenum const GLvoid * data
GLuint GLuint GLsizei count