KDEUI
kmultitabbar.cpp
Go to the documentation of this file.
60 KMultiTabBarInternal::KMultiTabBarInternal(QWidget *parent, KMultiTabBar::KMultiTabBarPosition pos):QFrame(parent)
259 opt->toolButtonStyle = shouldDrawText() ? Qt::ToolButtonTextBesideIcon : Qt::ToolButtonIconOnly;
class KMultiTabBarTab * tab(int id) const
get a pointer to a tab within the tab area, identiifed by its ID
Definition: kmultitabbar.cpp:547
void setTransform(const QTransform &transform, bool combine)
void setMenu(QMenu *menu)
QSize size() const
bool underMouse() const
void setHeight(int height)
const QPalette & palette() const
int width() const
int width() const
const T & next()
void setFixedWidth(int w)
void updateGeometry()
Definition: kmultitabbar.h:64
class KMultiTabBarButton * button(int id) const
get a pointer to a button within the button area identified by its ID
Definition: kmultitabbar.cpp:535
void setFocusPolicy(Qt::FocusPolicy policy)
QStyle * style() const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
virtual void paintEvent(class QPaintEvent *)
Definition: kmultitabbar.cpp:188
int height() const
int x() const
int y() const
virtual ~KMultiTabBarButton()
Definition: kmultitabbar.cpp:156
bool isTabRaised(int id) const
return the state of a tab, identified by its ID
Definition: kmultitabbar.cpp:579
QIcon icon() const
QString tr(const char *sourceText, const char *disambiguation, int n)
QPixmap pixmap(const QSize &size, Mode mode, State state) const
void setPosition(KMultiTabBar::KMultiTabBarPosition)
this is used internaly, but can be used by the user, if (s)he wants to It the according call of KMult...
Definition: kmultitabbar.cpp:219
void clear()
Definition: kmultitabbar.h:71
void initFrom(const QWidget *widget)
int width() const
QSize size() const
Definition: kmultitabbar.h:71
Use KMultiTabBar::appendTab to append a tab, which creates a KMultiTabBarTab instance.
Definition: kmultitabbar.h:192
virtual void showEvent(QShowEvent *event)
void ignore()
void setPosition(KMultiTabBarPosition pos)
set the real position of the widget.
Definition: kmultitabbar.cpp:598
Qt::LayoutDirection layoutDirection() const
virtual void hideEvent(QHideEvent *event)
QSize iconSize() const
void setWidth(int width)
bool isEmpty() const
QString elidedText(const QString &text, Qt::TextElideMode mode, int width, int flags) const
QPoint pos() const
virtual void drawItemText(QPainter *painter, const QRect &rectangle, int alignment, const QPalette &palette, bool enabled, const QString &text, QPalette::ColorRole textRole) const
void setCheckable(bool)
virtual void hideEvent(class QHideEvent *)
Definition: kmultitabbar.cpp:176
void setSizePolicy(QSizePolicy)
QRect rect() const
int appendButton(const QPixmap &pic, int id=-1, QMenu *popup=0, const QString ¬_used_yet=QString())
append a new button to the button area.
Definition: kmultitabbar.cpp:501
int height() const
const QFont & font() const
virtual void drawItemPixmap(QPainter *painter, const QRect &rectangle, int alignment, const QPixmap &pixmap) const
Definition: kmultitabbar.h:64
int appendTab(const QPixmap &pic, int id=-1, const QString &text=QString())
append a new tab to the tab area.
Definition: kmultitabbar.cpp:529
bool isChecked() const
int width() const
QFontMetrics fontMetrics() const
void setStyle(KMultiTabBar::KMultiTabBarStyle)
this is used internaly, but can be used by the user, if (s)he wants to It the according call of KMult...
Definition: kmultitabbar.cpp:225
KMultiTabBar(KMultiTabBarPosition pos, QWidget *parent=0)
Definition: kmultitabbar.cpp:464
QFontMetrics fontMetrics() const
QWidget * parentWidget() const
virtual void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
int height() const
QPixmap SmallIcon(const QString &name, int force_size, int state, const QStringList &overlays)
Definition: kiconloader.cpp:1553
virtual QSize minimumSizeHint() const
Definition: kmultitabbar.cpp:268
void setText(const QString &text)
virtual void drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const =0
QSize size(int flags, const QString &text, int tabStops, int *tabArray) const
void show()
void setToolTip(const QString &)
KMultiTabBarButton(const QPixmap &pic, const QString &, int id, QWidget *parent)
Should not be created directly.
Definition: kmultitabbar.cpp:144
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void showEvent(class QShowEvent *)
Definition: kmultitabbar.cpp:182
Use KMultiTabBar::appendButton to append a button, which creates a KMultiTabBarButton instance...
Definition: kmultitabbar.h:155
virtual QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &contentsSize, const QWidget *widget) const =0
void setStyle(KMultiTabBarStyle style)
set the display style of the tabs
Definition: kmultitabbar.cpp:588
int height() const
bool hasNext() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.