27 #include <QtGui/QTabWidget>
47 #ifndef KDE_NO_DEPRECATED
48 Q_PROPERTY(
bool tabReorderingEnabled READ isTabReorderingEnabled WRITE setTabReorderingEnabled )
49 Q_PROPERTY(
bool hoverCloseButton READ hoverCloseButton WRITE setHoverCloseButton )
50 Q_PROPERTY(
bool hoverCloseButtonDelayed READ hoverCloseButtonDelayed WRITE setHoverCloseButtonDelayed )
51 Q_PROPERTY(
bool closeButtonEnabled READ isCloseButtonEnabled WRITE setCloseButtonEnabled )
52 Q_PROPERTY(
bool tabCloseActivatePrevious READ tabCloseActivatePrevious WRITE setTabCloseActivatePrevious )
54 Q_PROPERTY(
bool automaticResizeTabs READ automaticResizeTabs WRITE setAutomaticResizeTabs )
75 void setTabTextColor(
int index,
const QColor& color );
81 QColor tabTextColor(
int index )
const;
89 #ifndef KDE_NO_DEPRECATED
90 KDE_DEPRECATED
bool isTabReorderingEnabled()
const;
99 #ifndef KDE_NO_DEPRECATED
100 KDE_DEPRECATED
bool hoverCloseButton()
const;
109 #ifndef KDE_NO_DEPRECATED
110 KDE_DEPRECATED
bool hoverCloseButtonDelayed()
const;
120 #ifndef KDE_NO_DEPRECATED
121 KDE_DEPRECATED
bool isCloseButtonEnabled()
const;
130 #ifndef KDE_NO_DEPRECATED
131 KDE_DEPRECATED
bool tabCloseActivatePrevious()
const;
138 bool automaticResizeTabs()
const;
144 void setTabBarHidden(
bool hide );
151 bool isTabBarHidden()
const;
177 #ifndef KDE_NO_DEPRECATED
178 inline KDE_DEPRECATED
QString label(
int index )
const {
return tabText( index ); }
184 #ifndef KDE_NO_DEPRECATED
185 inline KDE_DEPRECATED
QString tabLabel(
QWidget *w )
const {
return tabText( indexOf( w ) ); }
191 #ifndef KDE_NO_DEPRECATED
192 inline KDE_DEPRECATED
void setTabLabel(
QWidget *w,
const QString &l ) { setTabText( indexOf( w ),l ); }
199 void setTabText(
int ,
const QString & );
201 using QTabWidget::tabBar;
208 virtual void moveTab(
int,
int );
215 virtual QT_MOC_COMPAT
void removePage (
QWidget * w );
221 virtual void removeTab(
int index);
238 #ifndef KDE_NO_DEPRECATED
239 QT_MOC_COMPAT
void setTabReorderingEnabled(
bool enable );
249 #ifndef KDE_NO_DEPRECATED
250 QT_MOC_COMPAT
void setHoverCloseButton(
bool enable );
259 #ifndef KDE_NO_DEPRECATED
260 QT_MOC_COMPAT
void setHoverCloseButtonDelayed(
bool delayed );
272 #ifndef KDE_NO_DEPRECATED
273 QT_MOC_COMPAT
void setCloseButtonEnabled(
bool );
282 #ifndef KDE_NO_DEPRECATED
283 QT_MOC_COMPAT
void setTabCloseActivatePrevious(
bool previous );
292 void setAutomaticResizeTabs(
bool enable );
298 void testCanDecode(
const QDragMoveEvent *e,
bool &accept );
304 void receivedDropEvent( QDropEvent * );
310 void receivedDropEvent(
QWidget *, QDropEvent * );
315 void initiateDrag(
QWidget * );
320 void contextMenu(
const QPoint & );
327 #ifndef KDE_NO_DEPRECATED
332 void movedTab(
int,
int );
339 void mouseDoubleClick();
345 void mouseDoubleClick(
QWidget * );
351 void mouseMiddleClick();
357 void mouseMiddleClick(
QWidget * );
363 void closeRequest(
QWidget * );
366 virtual void mouseDoubleClickEvent( QMouseEvent* );
367 virtual void mousePressEvent( QMouseEvent* );
368 virtual void mouseReleaseEvent( QMouseEvent* );
369 virtual void dragEnterEvent( QDragEnterEvent* );
370 virtual void dragMoveEvent( QDragMoveEvent* );
371 virtual void dropEvent( QDropEvent* );
372 int tabBarWidthForMaxChars(
int );
373 #ifndef QT_NO_WHEELEVENT
374 virtual void wheelEvent( QWheelEvent* );
376 virtual void resizeEvent( QResizeEvent* );
377 virtual void tabInserted(
int );
378 virtual void tabRemoved (
int );
383 #ifndef KDE_NO_DEPRECATED
384 KDE_DEPRECATED
void currentChanged(
int );
388 virtual void receivedDropEvent(
int, QDropEvent* );
389 virtual void initiateDrag(
int );
390 virtual void contextMenu(
int,
const QPoint& );
391 virtual void mouseDoubleClick(
int );
392 virtual void mouseMiddleClick(
int );
393 virtual void closeRequest(
int );
394 #ifndef QT_NO_WHEELEVENT
395 virtual void wheelDelta(
int );
402 Q_PRIVATE_SLOT(d,
void slotTabMoved(
int,
int))
QString label(StandardShortcut id)
Returns a localized label for user-visible display.