KTextAddons
textautogeneratetextlineedit.cpp
20 enableFindReplace(false); // not needed here, let's instead make sure the Ctrl+F shortcut will search through channel history
21 connect(document()->documentLayout(), &QAbstractTextDocumentLayout::documentSizeChanged, this, &QWidget::updateGeometry);
63 // The width of the QTextDocument is the current widget width, so this is somewhat circular logic.
64 // But I don't really want to redo the layout with a different width like idealWidth(), seems slow.
void keyPressEvent(QKeyEvent *) override
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void catchReturnKey(QObject *lineEdit)
void documentSizeChanged(const QSizeF &newSize)
void accept()
void ignore()
int height() const const
int key() const const
Qt::KeyboardModifiers modifiers() const const
Q_EMITQ_EMIT
int height() const const
int width() const const
Key_Return
KeypadModifier
void insertBlock()
void clear()
document
void ensureCursorVisible()
QTextCursor textCursor() const const
QString toPlainText() const const
int lineCount() const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QFontMetrics fontMetrics() const const
void updateGeometry()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:00:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:00:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.