KWidgetsAddons
kmultitabbar.cpp
43KMultiTabBarInternal::KMultiTabBarInternal(QWidget *parent, KMultiTabBar::KMultiTabBarPosition pos)
137KMultiTabBarButton::KMultiTabBarButton(const QIcon &icon, const QString &text, int id, QWidget *parent)
265 opt->toolButtonStyle = shouldDrawText() ? Qt::ToolButtonTextBesideIcon : Qt::ToolButtonIconOnly;
391 const QIcon::Mode iconMode = (opt.state & QStyle::State_MouseOver) ? QIcon::Active : QIcon::Normal;
392 const QPixmap iconPixmap = icon().pixmap(opt.iconSize, devicePixelRatioF(), iconMode, QIcon::On);
418 const int iconXShift = (isChecked() || isDown()) ? style()->pixelMetric(QStyle::PM_ButtonShiftHorizontal, &opt, this) : 0;
419 const int iconYShift = (isChecked() || isDown()) ? style()->pixelMetric(QStyle::PM_ButtonShiftVertical, &opt, this) : 0;
Use KMultiTabBar::appendButton to append a button, which creates a KMultiTabBarButton instance.
Definition kmultitabbar.h:154
KMultiTabBarButton(const QIcon &icon, const QString &, int id, QWidget *parent)
Should not be created directly.
Definition kmultitabbar.cpp:137
Use KMultiTabBar::appendTab to append a tab, which creates a KMultiTabBarTab instance.
Definition kmultitabbar.h:195
void setStyle(KMultiTabBar::KMultiTabBarStyle)
this is used internally, but can be used by the user, if (s)he wants to It the according call of KMul...
Definition kmultitabbar.cpp:232
void setPosition(KMultiTabBar::KMultiTabBarPosition)
this is used internally, but can be used by the user, if (s)he wants to It the according call of KMul...
Definition kmultitabbar.cpp:226
void setStyle(KMultiTabBarStyle style)
set the display style of the tabs
Definition kmultitabbar.cpp:605
int appendButton(const QIcon &icon, int id=-1, QMenu *popup=nullptr, const QString ¬_used_yet=QString())
append a new button to the button area.
Definition kmultitabbar.cpp:514
@ VSNET
Visual Studio .Net like, always shows icon, only show the text of active tabs.
Definition kmultitabbar.h:49
int appendTab(const QIcon &icon, int id=-1, const QString &text=QString())
append a new tab to the tab area.
Definition kmultitabbar.cpp:544
KMultiTabBar(QWidget *parent=nullptr)
Create a KMultiTabBar with Left as KMultiTabBar position.
Definition kmultitabbar.cpp:476
class KMultiTabBarButton * button(int id) const
get a pointer to a button within the button area identified by its ID
Definition kmultitabbar.cpp:550
class KMultiTabBarTab * tab(int id) const
get a pointer to a tab within the tab area, identified by its ID
Definition kmultitabbar.cpp:563
bool isTabRaised(int id) const
return the state of a tab, identified by its ID
Definition kmultitabbar.cpp:595
void setPosition(KMultiTabBarPosition pos)
set the real position of the widget.
Definition kmultitabbar.cpp:615
void setCheckable(bool)
bool isChecked() const const
void clicked(bool checked)
bool isDown() const const
iconSize
void setText(const QString &text)
void ignore()
QSize size(int flags, const QString &text, int tabStops, int *tabArray) const const
Sunken
Panel
Mode
bool hasNext() const const
const T & next()
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString tr(const char *sourceText, const char *disambiguation, int n)
qreal devicePixelRatioF() const const
Window
void setMenu(QMenu *menu)
int height() const const
void translate(const QPoint &offset)
int width() const const
int x() const const
int y() const const
int height() const const
void setHeight(int height)
int width() const const
Preferred
void clear()
bool isEmpty() const const
CC_ToolButton
CT_ToolButton
CE_PushButton
PM_ButtonShiftHorizontal
PE_Widget
State_AutoRaise
SC_ToolButton
virtual void drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const const=0
virtual void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const const=0
virtual void drawItemPixmap(QPainter *painter, const QRect &rectangle, int alignment, const QPixmap &pixmap) const const
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const const=0
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const const=0
virtual QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &contentsSize, const QWidget *widget) const const=0
void initFrom(const QWidget *widget)
AlignCenter
NoFocus
RightToLeft
ElideRight
ToolButtonTextBesideIcon
WA_LayoutUsesWidgetRect
void setFocusPolicy(Qt::FocusPolicy policy)
font
QFontMetrics fontMetrics() const const
height
virtual void hideEvent(QHideEvent *event)
layoutDirection
QWidget * parentWidget() const const
pos
rect
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void setContentsMargins(const QMargins &margins)
void setFixedWidth(int w)
void show()
virtual void showEvent(QShowEvent *event)
size
void setSizePolicy(QSizePolicy)
QStyle * style() const const
void setToolTip(const QString &)
bool underMouse() const const
void updateGeometry()
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:19:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:19:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.