edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
textchangewithcaret.h
Go to the documentation of this file.
1// edbee - Copyright (c) 2012-2025 by Rick Blommers and contributors
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
6#include "edbee/exports.h"
7
8#include "textchange.h"
9
10namespace edbee {
11
16{
17public:
18 TextChangeWithCaret( int offset, int length, const QString& text, int caret );
19
20 int caret() const ;
21 void setCaret( int caret );
22
23private:
24 int caret_;
25};
26
27} // edbee
int offset() const
Return the offset.
Definition textchange.cpp:109
TextChange(int offset, int length, const QString &text)
Constructs a single textchange.
Definition textchange.cpp:19
int caret() const
returns the caret position
Definition textchangewithcaret.cpp:18
TextChangeWithCaret(int offset, int length, const QString &text, int caret)
Definition textchangewithcaret.cpp:10
void setCaret(int caret)
Sets the caret position.
Definition textchangewithcaret.cpp:26
#define EDBEE_EXPORT
Definition exports.h:15
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20