KWidgetsAddons
ksqueezedtextlabel.cpp
71 int textWidth = fm.boundingRect(0, 0, 2000, 2000, Qt::AlignAbsolute | Qt::TextExpandTabs | Qt::AlignLeft, d->fullText).width();
207 QAction *act = new QAction(QIcon::fromTheme(QStringLiteral("edit-copy")), tr("&Copy Full Text", "@action:inmenu"), &menu);
virtual void setAlignment(Qt::Alignment)
Overridden for internal reasons; the API remains unaffected.
Definition ksqueezedtextlabel.cpp:164
void resizeEvent(QResizeEvent *) override
Called when widget is resized.
Definition ksqueezedtextlabel.cpp:50
void setTextElideMode(Qt::TextElideMode mode)
Sets the text elide mode.
Definition ksqueezedtextlabel.cpp:177
void mouseReleaseEvent(QMouseEvent *) override
Definition ksqueezedtextlabel.cpp:220
void contextMenuEvent(QContextMenuEvent *) override
Definition ksqueezedtextlabel.cpp:193
QSize minimumSizeHint() const override
Definition ksqueezedtextlabel.cpp:55
Q_SCRIPTABLE Q_NOREPLY void start()
void triggered(bool checked)
Selection
void setText(const QString &text, Mode mode)
void accept()
QRect boundingRect(QChar ch) const const
QString elidedText(const QString &text, Qt::TextElideMode mode, int width, int flags) const const
int horizontalAdvance(QChar ch) const const
frameWidth
lineWidth
QClipboard * clipboard()
QIcon fromTheme(const QString &name)
alignment
void clear()
virtual void contextMenuEvent(QContextMenuEvent *ev) override
hasSelectedText
void setIndent(int)
void setMargin(int)
virtual QSize minimumSizeHint() const const override
virtual void mouseReleaseEvent(QMouseEvent *ev) override
selectedText
int selectionStart() const const
virtual QSize sizeHint() const const override
text
textFormat
textInteractionFlags
void reserve(qsizetype size)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString tr(const char *sourceText, const char *disambiguation, int n)
void adjust(int dx1, int dy1, int dx2, int dy2)
int bottom() const const
int left() const const
int right() const const
void setBottom(int y)
void setLeft(int x)
void setRight(int x)
void setTop(int y)
int top() const const
int width() const const
geometry
Qt::MouseButton button() const const
void setWidth(int width)
Expanding
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
QString & remove(QChar ch, Qt::CaseSensitivity cs)
QString join(QChar separator) const const
bool mightBeRichText(const QString &text)
AlignAbsolute
LeftButton
TextElideMode
TextExpandTabs
RichText
NoTextInteraction
QRect contentsRect() const const
QFontMetrics fontMetrics() const const
height
QScreen * screen() const const
void setSizePolicy(QSizePolicy)
void setToolTip(const QString &)
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.