KWidgetsAddons
ktitlewidget.cpp
26 // use Left so updateIconAlignment(ImageRight) as called by constructor triggers the default layout
53 return QStringLiteral("QLabel { font-size: %1pt; color: %2 }").arg(QString::number(fontSize), q->palette().color(QPalette::WindowText).name());
68 .arg(q->palette().color(QPalette::HighlightedText).name(), q->palette().color(QPalette::Highlight).name());
172 d->commentLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse);
174 d->updateIconAlignment(ImageRight); // make sure d->iconAlignment is left, to trigger initial layout
241 if (e->type() == QEvent::PaletteChange || e->type() == QEvent::FontChange || e->type() == QEvent::ApplicationFontChange) {
void setIcon(const QIcon &icon, ImageAlignment alignment=ImageRight)
Set the icon to display in the header.
Definition ktitlewidget.cpp:299
void setIconSize(const QSize &iconSize)
Set the size of the icon to display in the header.
Definition ktitlewidget.cpp:310
void setText(const QString &text, Qt::Alignment alignment=Qt::AlignLeft|Qt::AlignVCenter)
Definition ktitlewidget.cpp:253
void setLevel(int level)
Sets the level of this title, similar to HTML's h1 h2 h3... Follows the KDE HIG.
Definition ktitlewidget.cpp:266
void setAutoHideTimeout(int msecs)
Set the autohide timeout of the label Set value to 0 to disable autohide, which is the default.
Definition ktitlewidget.cpp:335
void setComment(const QString &comment, MessageType type=PlainMessage)
Definition ktitlewidget.cpp:288
QFont font()
MouseButtonPress
Type type() const const
int pointSize() const const
void addWidget(QWidget *widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment)
void setColumnStretch(int column, int stretch)
QPixmap pixmap(QWindow *window, const QSize &size, Mode mode, State state) const const
QIcon fromTheme(const QString &name)
bool isNull() const const
void setPixmap(const QPixmap &)
SetFixedSize
void removeWidget(QWidget *widget)
virtual bool eventFilter(QObject *watched, QEvent *event)
void installEventFilter(QObject *filterObj)
void removeEventFilter(QObject *obj)
WindowText
Qt::MouseButton button() const const
QString arg(Args &&... args) const const
bool isNull() const const
QString number(double n, char format, int precision)
PM_MessageBoxIconSize
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const const=0
bool mightBeRichText(const QString &text)
AlignVCenter
LeftButton
TextSelectableByMouse
singleShot
virtual void changeEvent(QEvent *event)
virtual bool event(QEvent *event) override
palette
void show()
QStyle * style() const const
virtual void setVisible(bool visible)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.