Libksieve
sievetextedit.cpp
51 connect(this, &SieveTextEdit::blockCountChanged, this, &SieveTextEdit::slotUpdateLineNumberAreaWidth);
62 // disconnect these manually as the destruction of KPIMTextEdit::PlainTextEditorPrivate will trigger them
63 disconnect(this, &SieveTextEdit::blockCountChanged, this, &SieveTextEdit::slotUpdateLineNumberAreaWidth);
69 auto hlighter = dynamic_cast<TextCustomEditor::PlainTextSyntaxSpellCheckingHighlighter *>(highlighter());
86 highlighter->setTheme((palette().color(QPalette::Base).lightness() < 128) ? d->mSyntaxRepo.defaultTheme(KSyntaxHighlighting::Repository::DarkTheme)
96 d->m_sieveLineNumberArea->setGeometry(QRect(cr.left(), cr.top(), lineNumberAreaWidth(), cr.height()));
125 painter.drawText(0, top, d->m_sieveLineNumberArea->width(), fontMetrics().height(), Qt::AlignRight, number);
145 d->m_sieveLineNumberArea->update(0, rect.y(), d->m_sieveLineNumberArea->width(), rect.height());
158 listWord << QStringLiteral(":contains") << QStringLiteral(":matches") << QStringLiteral(":is") << QStringLiteral(":over") << QStringLiteral(":under")
161 listWord << QStringLiteral("keep") << QStringLiteral("reject") << QStringLiteral("discard") << QStringLiteral("redirect") << QStringLiteral("addflag")
163 listWord << QStringLiteral("address") << QStringLiteral("allof") << QStringLiteral("anyof") << QStringLiteral("exists") << QStringLiteral("false")
164 << QStringLiteral("header") << QStringLiteral("not") << QStringLiteral("size") << QStringLiteral("true");
165 listWord << QStringLiteral(":days") << QStringLiteral(":seconds") << QStringLiteral(":subject") << QStringLiteral(":addresses") << QStringLiteral(":text");
166 listWord << QStringLiteral(":name") << QStringLiteral(":headers") << QStringLiteral(":first") << QStringLiteral(":importance");
216 const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
247 const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
285 const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
329 const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
QString i18nc(const char *context, const char *text, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
Type type(const QSqlDatabase &db)
KIOCORE_EXPORT QString number(KIO::filesize_t size)
virtual bool event(QEvent *event) override
virtual void keyPressEvent(QKeyEvent *e) override
void setViewportMargins(const QMargins &margins)
QWidget * viewport() const const
QVariant data() const const
void triggered(bool checked)
ParagraphSeparator
ShortcutOverride
void accept()
void ignore()
Type type() const const
FixedFont
QFont systemFont(SystemFont type)
QRect boundingRect(QChar ch) const const
QIcon fromTheme(const QString &name)
int key() const const
const_reference at(qsizetype i) const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
T qobject_cast(QObject *object)
QObject * sender() const const
Base
QRectF blockBoundingGeometry(const QTextBlock &block) const const
QRectF blockBoundingRect(const QTextBlock &block) const const
blockCount
void blockCountChanged(int newBlockCount)
QPointF contentOffset() const const
QTextCursor cursorForPosition(const QPoint &pos) const const
QTextBlock firstVisibleBlock() const const
bool isReadOnly() const const
virtual void resizeEvent(QResizeEvent *e) override
void setTextCursor(const QTextCursor &cursor)
QTextCursor textCursor() const const
void updateRequest(const QRect &rect, int dy)
wordWrapMode
int height() const const
int left() const const
int top() const const
int width() const const
qreal height() const const
qreal top() const const
QRectF translated(const QPointF &offset) const const
const QChar at(qsizetype position) const const
qsizetype length() const const
QString number(double n, char format, int precision)
QString & remove(QChar ch, Qt::CaseSensitivity cs)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
AlignRight
lightGray
Key_F1
int blockNumber() const const
bool isValid() const const
bool isVisible() const const
QTextBlock next() const const
KeepAnchor
StartOfBlock
WordUnderCursor
bool hasSelection() const const
void insertText(const QString &text)
bool movePosition(MoveOperation operation, MoveMode mode, int n)
QString selectedText() const const
QTextDocumentFragment selection() const const
QString toPlainText() const const
NoWrap
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
bool isEmpty() const const
QString toString() const const
QList< QAction * > actions() const const
QRect contentsRect() const const
QFontMetrics fontMetrics() const const
height
void insertAction(QAction *before, QAction *action)
void insertActions(QAction *before, const QList< QAction * > &actions)
palette
pos
rect
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:30 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:14:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.