A text edit widget based on QPlainTextEdit with spell checker capabilities based on Sonnet (optional).
More...
|
| DPlainTextEdit (const QString &contents, QWidget *const parent=nullptr) |
| Constructor with text contents to use.
|
|
| DPlainTextEdit (QWidget *const parent=nullptr) |
| Default constructor.
|
|
| DPlainTextEdit (unsigned int lines, QWidget *const parent=nullptr) |
| Constructor with a number of lines.
|
|
| ~DPlainTextEdit () override |
| Standard destructor.
|
|
QString | acceptedCharacters () const |
| This property holds whether the edit widget handle the mask of accepted characters in text editor.
|
|
QString | currentLanguage () const |
|
QString | ignoredCharacters () const |
| This property holds whether the edit widget handle the mask of ignored characters in text editor.
|
|
bool | isClearButtonEnabled () const |
| This property holds whether the edit widget displays a clear button when it is not empty.
|
|
int | leftCharacters () const |
| Return the left characters that user can enter if a limit have been previously set with setMaxLeght().
|
|
unsigned int | linesVisible () const |
|
int | maxLength () const |
|
void | setAcceptedCharacters (const QString &mask) |
|
void | setClearButtonEnabled (bool enable) |
|
void | setCurrentLanguage (const QString &lang) |
| This property holds whether the edit widget handle a specific spell-checker language (2 letters code based as "en", "fr", "es", etc.).
|
|
void | setIgnoredCharacters (const QString &mask) |
|
void | setLinesVisible (unsigned int lines) |
| This property holds whether the edit widget handle visible lines used by the widget to show text.
|
|
void | setLocalizeSettings (const LocalizeContainer &settings) |
|
void | setMaxLength (int length) |
| This property holds whether the edit widget handle the maximum of characters that user can enter in editor.
|
|
void | setText (const QString &text) |
|
LocalizeContainer | spellCheckSettings () const |
| This property holds whether the edit widget handle the Spellcheck settings.
|
|
QString | text () const |
| This property holds whether the edit widget handle text contents as plain text.
|
|
Widget size can be constrained with the number of visible lines. A single line constraint will emulate QLineEdit. See setLinesVisible() for details. The maximum number of characters can be limited with setMaxLenght(). The characters can be limited in editor by setIgnoredCharacters() and setAcceptedCharacters(). Implementation: dplaintextedit.cpp