Qt 4.8
Public Functions | Public Variables | List of all members
QPlainTextEditControl Class Reference

#include <qplaintextedit_p.h>

Inheritance diagram for QPlainTextEditControl:
QTextControl QObject

Public Functions

QRectF blockBoundingRect (const QTextBlock &block) const
 
bool canInsertFromMimeData (const QMimeData *source) const
 
QMimeDatacreateMimeDataFromSelection () const
 
QRectF cursorRect (const QTextCursor &cursor) const
 
QRectF cursorRect ()
 
void ensureCursorVisible ()
 
QTextBlock firstVisibleBlock () const
 
int hitTest (const QPointF &point, Qt::HitTestAccuracy=Qt::FuzzyHit) const
 
void insertFromMimeData (const QMimeData *source)
 
QVariant loadResource (int type, const QUrl &name)
 
 QPlainTextEditControl (QPlainTextEdit *parent)
 
- Public Functions inherited from QTextControl
bool acceptRichText () const
 
QString anchorAt (const QPointF &pos) const
 
QString anchorAtCursor () const
 
QPointF anchorPosition (const QString &name) const
 
bool canPaste () const
 
QMenucreateStandardContextMenu (const QPointF &pos, QWidget *parent)
 
QTextCharFormat currentCharFormat () const
 
QTextCursor cursorForPosition (const QPointF &pos) const
 
bool cursorIsFocusIndicator () const
 
QRectF cursorRect (const QTextCursor &cursor) const
 
QRectF cursorRect () const
 
int cursorWidth () const
 
QTextDocumentdocument () const
 
void drawContents (QPainter *painter, const QRectF &rect=QRectF(), QWidget *widget=0)
 
QList< QTextEdit::ExtraSelectionextraSelections () const
 
bool find (const QString &exp, QTextDocument::FindFlags options=0)
 
bool findNextPrevAnchor (const QTextCursor &from, bool next, QTextCursor &newAnchor)
 
QAbstractTextDocumentLayout::PaintContext getPaintContext (QWidget *widget) const
 
bool ignoreUnusedNavigationEvents () const
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery property) const
 
bool isDragEnabled () const
 
bool isWordSelectionEnabled () const
 
void mergeCurrentCharFormat (const QTextCharFormat &modifier)
 
void moveCursor (QTextCursor::MoveOperation op, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor)
 
bool openExternalLinks () const
 
bool overwriteMode () const
 
QPalette palette () const
 
void print (QPrinter *printer) const
 
virtual void processEvent (QEvent *e, const QMatrix &matrix, QWidget *contextWidget=0)
 
void processEvent (QEvent *e, const QPointF &coordinateOffset=QPointF(), QWidget *contextWidget=0)
 
 QTextControl (QObject *parent=0)
 
 QTextControl (const QString &text, QObject *parent=0)
 
 QTextControl (QTextDocument *doc, QObject *parent=0)
 
QRectF selectionRect (const QTextCursor &cursor) const
 
QRectF selectionRect () const
 
void setAcceptRichText (bool accept)
 
void setCurrentCharFormat (const QTextCharFormat &format)
 
void setCursorIsFocusIndicator (bool b)
 
void setCursorWidth (int width)
 
void setDocument (QTextDocument *document)
 
void setDragEnabled (bool enabled)
 
void setExtraSelections (const QList< QTextEdit::ExtraSelection > &selections)
 
void setFocus (bool focus, Qt::FocusReason=Qt::OtherFocusReason)
 
bool setFocusToAnchor (const QTextCursor &newCursor)
 
bool setFocusToNextOrPreviousAnchor (bool next)
 
void setIgnoreUnusedNavigationEvents (bool ignore)
 
void setOpenExternalLinks (bool open)
 
void setOverwriteMode (bool overwrite)
 
void setPalette (const QPalette &pal)
 
void setTextCursor (const QTextCursor &cursor)
 
void setTextInteractionFlags (Qt::TextInteractionFlags flags)
 
void setTextWidth (qreal width)
 
void setWordSelectionEnabled (bool enabled)
 
QSizeF size () const
 
QTextCursor textCursor () const
 
Qt::TextInteractionFlags textInteractionFlags () const
 
qreal textWidth () const
 
QString toHtml () const
 
QString toPlainText () const
 
virtual ~QTextControl ()
 
- Public Functions inherited from QObject
bool blockSignals (bool b)
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More...
 
const QObjectListchildren () const
 Returns a list of child objects. More...
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectInfo ()
 Dumps information about signal connections, etc. More...
 
void dumpObjectTree ()
 Dumps a tree of children to the debug output. More...
 
QList< QByteArraydynamicPropertyNames () const
 Returns the names of all properties that were dynamically added to the object using setProperty(). More...
 
virtual bool eventFilter (QObject *, QEvent *)
 Filters events if this object has been installed as an event filter for the watched object. More...
 
template<typename T >
findChild (const QString &aName=QString()) const
 Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More...
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More...
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More...
 
void installEventFilter (QObject *)
 Installs an event filter filterObj on this object. More...
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false. More...
 
void killTimer (int id)
 Kills the timer with timer identifier, id. More...
 
virtual const QMetaObjectmetaObject () const
 Returns a pointer to the meta-object of this object. More...
 
void moveToThread (QThread *thread)
 Changes the thread affinity for this object and its children. More...
 
QString objectName () const
 
QObjectparent () const
 Returns a pointer to the parent object. More...
 
QVariant property (const char *name) const
 Returns the value of the object's name property. More...
 
Q_INVOKABLE QObject (QObject *parent=0)
 Constructs an object with parent object parent. More...
 
void removeEventFilter (QObject *)
 Removes an event filter object obj from this object. More...
 
void setObjectName (const QString &name)
 
void setParent (QObject *)
 Makes the object a child of parent. More...
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value. More...
 
void setUserData (uint id, QObjectUserData *data)
 
bool signalsBlocked () const
 Returns true if signals are blocked; otherwise returns false. More...
 
int startTimer (int interval)
 Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More...
 
QThreadthread () const
 Returns the thread in which the object lives. More...
 
QObjectUserDatauserData (uint id) const
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects. More...
 

Public Variables

QPlainTextEdittextEdit
 
int topBlock
 

Additional Inherited Members

- Public Slots inherited from QTextControl
void adjustSize ()
 
void append (const QString &text)
 
void appendHtml (const QString &html)
 
void appendPlainText (const QString &text)
 
void clear ()
 
void copy ()
 
void cut ()
 
void insertHtml (const QString &text)
 
void insertPlainText (const QString &text)
 
void paste (QClipboard::Mode mode=QClipboard::Clipboard)
 
void redo ()
 
void selectAll ()
 
void setHtml (const QString &text)
 
void setPlainText (const QString &text)
 
void undo ()
 
- Public Slots inherited from QObject
void deleteLater ()
 Schedules this object for deletion. More...
 
- Signals inherited from QTextControl
void blockCountChanged (int newBlockCount)
 
void copyAvailable (bool b)
 
void currentCharFormatChanged (const QTextCharFormat &format)
 
void cursorPositionChanged ()
 
void documentSizeChanged (const QSizeF &)
 
void linkActivated (const QString &link)
 
void linkHovered (const QString &)
 
void microFocusChanged ()
 
void modificationChanged (bool m)
 
void redoAvailable (bool b)
 
void selectionChanged ()
 
void textChanged ()
 
void undoAvailable (bool b)
 
void updateRequest (const QRectF &rect=QRectF())
 
void visibilityRequest (const QRectF &rect)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More...
 
- Static Public Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More...
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 Disconnects signal in object sender from method in object receiver. More...
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
static QString tr (const char *sourceText, const char *comment=0, int n=-1)
 
static QString trUtf8 (const char *sourceText, const char *comment=0, int n=-1)
 
- Static Public Variables inherited from QObject
static const QMetaObject staticMetaObject
 This variable stores the meta-object for the class. More...
 
- Protected Functions inherited from QTextControl
virtual bool event (QEvent *e)
 This virtual function receives events to an object and should return true if the event e was recognized and processed. More...
 
virtual void timerEvent (QTimerEvent *e)
 This event handler can be reimplemented in a subclass to receive timer events for the object. More...
 
- Protected Functions inherited from QObject
virtual void childEvent (QChildEvent *)
 This event handler can be reimplemented in a subclass to receive child events. More...
 
virtual void connectNotify (const char *signal)
 This virtual function is called when something has been connected to signal in this object. More...
 
virtual void customEvent (QEvent *)
 This event handler can be reimplemented in a subclass to receive custom events. More...
 
virtual void disconnectNotify (const char *signal)
 This virtual function is called when something has been disconnected from signal in this object. More...
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal. More...
 
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More...
 
int senderSignalIndex () const
 
- Protected Variables inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Variables inherited from QObject
static const QMetaObject staticQtMetaObject
 

Detailed Description

Definition at line 76 of file qplaintextedit_p.h.

Constructors and Destructors

◆ QPlainTextEditControl()

QPlainTextEditControl::QPlainTextEditControl ( QPlainTextEdit parent)

Definition at line 443 of file qplaintextedit.cpp.

444  : QTextControl(parent), textEdit(parent),
445  topBlock(0)
446 {
447  setAcceptRichText(false);
448 }
QTextControl(QObject *parent=0)
QPlainTextEdit * textEdit
void setAcceptRichText(bool accept)

Functions

◆ blockBoundingRect()

QRectF QPlainTextEditControl::blockBoundingRect ( const QTextBlock block) const
virtual

Reimplemented from QTextControl.

Definition at line 570 of file qplaintextedit.cpp.

570  {
571  int currentBlockNumber = topBlock;
572  int blockNumber = block.blockNumber();
573  QTextBlock currentBlock = document()->findBlockByNumber(currentBlockNumber);
574  if (!currentBlock.isValid())
575  return QRectF();
576  Q_ASSERT(currentBlock.blockNumber() == currentBlockNumber);
577  QTextDocument *doc = document();
578  QPlainTextDocumentLayout *documentLayout = qobject_cast<QPlainTextDocumentLayout*>(doc->documentLayout());
579  Q_ASSERT(documentLayout);
580 
581  QPointF offset;
582  if (!block.isValid())
583  return QRectF();
584  QRectF r = documentLayout->blockBoundingRect(currentBlock);
585  int maxVerticalOffset = r.height();
586  while (currentBlockNumber < blockNumber && offset.y() - maxVerticalOffset <= 2* textEdit->viewport()->height()) {
587  offset.ry() += r.height();
588  currentBlock = currentBlock.next();
589  ++currentBlockNumber;
590  if (!currentBlock.isVisible()) {
591  currentBlock = doc->findBlockByLineNumber(currentBlock.firstLineNumber());
592  currentBlockNumber = currentBlock.blockNumber();
593  }
594  r = documentLayout->blockBoundingRect(currentBlock);
595  }
596  while (currentBlockNumber > blockNumber && offset.y() + maxVerticalOffset >= -textEdit->viewport()->height()) {
597  currentBlock = currentBlock.previous();
598  --currentBlockNumber;
599  while (!currentBlock.isVisible()) {
600  currentBlock = currentBlock.previous();
601  --currentBlockNumber;
602  }
603  if (!currentBlock.isValid())
604  break;
605 
606  r = documentLayout->blockBoundingRect(currentBlock);
607  offset.ry() -= r.height();
608  }
609 
610  if (currentBlockNumber != blockNumber) {
611  // fallback for blocks out of reach. Give it some geometry at
612  // least, and ensure the layout is up to date.
613  r = documentLayout->blockBoundingRect(block);
614  if (currentBlockNumber > blockNumber)
615  offset.ry() -= r.height();
616  }
617  r.translate(offset);
618  return r;
619 }
The QPlainTextDocumentLayout class implements a plain text layout for QTextDocument.
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214
T * qobject_cast(QObject *object)
Definition: qobject.h:375
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
QTextBlock next() const
Returns the text block in the document after this block, or an empty text block if this is the last o...
QPlainTextEdit * textEdit
QTextBlock previous() const
Returns the text block in the document before this block, or an empty text block if this is the first...
QWidget * viewport() const
Returns the viewport widget.
bool isVisible() const
Returns true if the block is visible; otherwise returns false.
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
int height
the height of the widget excluding any window frame
Definition: qwidget.h:167
qreal height() const
Returns the height of the rectangle.
Definition: qrect.h:710
The QTextBlock class provides a container for text fragments in a QTextDocument.
Definition: qtextobject.h:199
void translate(qreal dx, qreal dy)
Moves the rectangle dx along the x-axis and dy along the y-axis, relative to the current position...
Definition: qrect.h:716
QTextBlock findBlockByNumber(int blockNumber) const
Returns the text block with the specified blockNumber.
QTextDocument * document() const
int firstLineNumber() const
Returns the first line number of this block, or -1 if the block is invalid.
qreal & ry()
Returns a reference to the y coordinate of this point.
Definition: qpoint.h:307
qreal y() const
Returns the y-coordinate of this point.
Definition: qpoint.h:287
The QTextDocument class holds formatted text that can be viewed and edited using a QTextEdit...
QRectF blockBoundingRect(const QTextBlock &block) const
Reimplemented Function
bool isValid() const
Returns true if this text block is valid; otherwise returns false.
Definition: qtextobject.h:208
int blockNumber() const
Returns the number of this block, or -1 if the block is invalid.

◆ canInsertFromMimeData()

bool QPlainTextEditControl::canInsertFromMimeData ( const QMimeData source) const
virtual

Reimplemented from QTextControl.

Definition at line 473 of file qplaintextedit.cpp.

473  {
475  if (!ed)
477  return ed->canInsertFromMimeData(source);
478 }
virtual bool canInsertFromMimeData(const QMimeData *source) const
T * qobject_cast(QObject *object)
Definition: qobject.h:375
virtual bool canInsertFromMimeData(const QMimeData *source) const
This function returns true if the contents of the MIME data object, specified by source, can be decoded and inserted into the document.
The QPlainTextEdit class provides a widget that is used to edit and display plain text...
QObject * parent() const
Returns a pointer to the parent object.
Definition: qobject.h:273

◆ createMimeDataFromSelection()

QMimeData * QPlainTextEditControl::createMimeDataFromSelection ( ) const
virtual

Reimplemented from QTextControl.

Definition at line 467 of file qplaintextedit.cpp.

467  {
469  if (!ed)
471  return ed->createMimeDataFromSelection();
472  }
T * qobject_cast(QObject *object)
Definition: qobject.h:375
virtual QMimeData * createMimeDataFromSelection() const
This function returns a new MIME data object to represent the contents of the text edit&#39;s current sel...
virtual QMimeData * createMimeDataFromSelection() const
The QPlainTextEdit class provides a widget that is used to edit and display plain text...
QObject * parent() const
Returns a pointer to the parent object.
Definition: qobject.h:273

◆ cursorRect() [1/2]

QRectF QPlainTextEditControl::cursorRect ( const QTextCursor cursor) const
inline

Definition at line 88 of file qplaintextedit_p.h.

Referenced by QPlainTextEditPrivate::pageUpDown().

88  {
89  QRectF r = QTextControl::cursorRect(cursor);
90  r.setLeft(qMax(r.left(), (qreal) 0.));
91  return r;
92  }
double qreal
Definition: qglobal.h:1193
void setLeft(qreal pos)
Sets the left edge of the rectangle to the given x coordinate.
Definition: qrect.h:670
qreal left() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:525
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
Definition: qglobal.h:1217
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
QRectF cursorRect() const

◆ cursorRect() [2/2]

QRectF QPlainTextEditControl::cursorRect ( )
inline

Definition at line 93 of file qplaintextedit_p.h.

Referenced by cursorRect().

93 { return cursorRect(textCursor()); }
QTextCursor textCursor() const

◆ ensureCursorVisible()

void QPlainTextEditControl::ensureCursorVisible ( )
inlinevirtual

Reimplemented from QTextControl.

Definition at line 94 of file qplaintextedit_p.h.

94  {
97  }
void ensureCursorVisible()
Ensures that the cursor is visible by scrolling the text edit if necessary.
QPlainTextEdit * textEdit
#define emit
Definition: qobjectdefs.h:76
void microFocusChanged()

◆ firstVisibleBlock()

QTextBlock QPlainTextEditControl::firstVisibleBlock ( ) const

Definition at line 516 of file qplaintextedit.cpp.

517 {
519 }
QTextBlock findBlockByNumber(int blockNumber) const
Returns the text block with the specified blockNumber.
QTextDocument * document() const

◆ hitTest()

int QPlainTextEditControl::hitTest ( const QPointF point,
Qt::HitTestAccuracy  = Qt::FuzzyHit 
) const
virtual

Reimplemented from QTextControl.

Definition at line 523 of file qplaintextedit.cpp.

523  {
524  int currentBlockNumber = topBlock;
525  QTextBlock currentBlock = document()->findBlockByNumber(currentBlockNumber);
526  if (!currentBlock.isValid())
527  return -1;
528 
530  Q_ASSERT(documentLayout);
531 
532  QPointF offset;
533  QRectF r = documentLayout->blockBoundingRect(currentBlock);
534  while (currentBlock.next().isValid() && r.bottom() + offset.y() <= point.y()) {
535  offset.ry() += r.height();
536  currentBlock = currentBlock.next();
537  ++currentBlockNumber;
538  r = documentLayout->blockBoundingRect(currentBlock);
539  }
540  while (currentBlock.previous().isValid() && r.top() + offset.y() > point.y()) {
541  offset.ry() -= r.height();
542  currentBlock = currentBlock.previous();
543  --currentBlockNumber;
544  r = documentLayout->blockBoundingRect(currentBlock);
545  }
546 
547 
548  if (!currentBlock.isValid())
549  return -1;
550  QTextLayout *layout = currentBlock.layout();
551  int off = 0;
552  QPointF pos = point - offset;
553  for (int i = 0; i < layout->lineCount(); ++i) {
554  QTextLine line = layout->lineAt(i);
555  const QRectF lr = line.naturalTextRect();
556  if (lr.top() > pos.y()) {
557  off = qMin(off, line.textStart());
558  } else if (lr.bottom() <= pos.y()) {
559  off = qMax(off, line.textStart() + line.textLength());
560  } else {
561  off = line.xToCursor(pos.x(), overwriteMode() ?
563  break;
564  }
565  }
566 
567  return currentBlock.position() + off;
568 }
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
Definition: qglobal.h:1215
The QPlainTextDocumentLayout class implements a plain text layout for QTextDocument.
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214
The QTextLine class represents a line of text inside a QTextLayout.
Definition: qtextlayout.h:197
int textLength() const
Returns the length of the text in the line.
T * qobject_cast(QObject *object)
Definition: qobject.h:375
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
Definition: qglobal.h:1217
qreal x() const
Returns the x-coordinate of this point.
Definition: qpoint.h:282
QTextBlock next() const
Returns the text block in the document after this block, or an empty text block if this is the last o...
int position() const
Returns the index of the block&#39;s first character within the document.
QTextBlock previous() const
Returns the text block in the document before this block, or an empty text block if this is the first...
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
qreal height() const
Returns the height of the rectangle.
Definition: qrect.h:710
const char * layout
The QTextBlock class provides a container for text fragments in a QTextDocument.
Definition: qtextobject.h:199
QTextLine lineAt(int i) const
Returns the {i}-th line of text in this text layout.
QTextBlock findBlockByNumber(int blockNumber) const
Returns the text block with the specified blockNumber.
QTextDocument * document() const
The QTextLayout class is used to lay out and render text.
Definition: qtextlayout.h:105
bool overwriteMode() const
QAbstractTextDocumentLayout * documentLayout() const
Returns the document layout for this document.
qreal & ry()
Returns a reference to the y coordinate of this point.
Definition: qpoint.h:307
qreal y() const
Returns the y-coordinate of this point.
Definition: qpoint.h:287
QRectF blockBoundingRect(const QTextBlock &block) const
Reimplemented Function
bool isValid() const
Returns true if this text block is valid; otherwise returns false.
Definition: qtextobject.h:208
qreal top() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:526
qreal bottom() const
Returns the y-coordinate of the rectangle&#39;s bottom edge.
Definition: qrect.h:528
int xToCursor(qreal x, CursorPosition=CursorBetweenCharacters) const
Converts the x-coordinate x, to the nearest matching cursor position, depending on the cursor positio...
int textStart() const
Returns the start of the line from the beginning of the string passed to the QTextLayout.
int lineCount() const
Returns the number of lines in this text layout.
QRectF naturalTextRect() const
Returns the rectangle covered by the line.
QTextLayout * layout() const
Returns the QTextLayout that is used to lay out and display the block&#39;s contents. ...

◆ insertFromMimeData()

void QPlainTextEditControl::insertFromMimeData ( const QMimeData source)
virtual

Reimplemented from QTextControl.

Definition at line 479 of file qplaintextedit.cpp.

479  {
481  if (!ed)
483  else
484  ed->insertFromMimeData(source);
485 }
T * qobject_cast(QObject *object)
Definition: qobject.h:375
virtual void insertFromMimeData(const QMimeData *source)
The QPlainTextEdit class provides a widget that is used to edit and display plain text...
QObject * parent() const
Returns a pointer to the parent object.
Definition: qobject.h:273
virtual void insertFromMimeData(const QMimeData *source)
This function inserts the contents of the MIME data object, specified by source, into the text edit a...

◆ loadResource()

QVariant QPlainTextEditControl::loadResource ( int  type,
const QUrl name 
)
inlinevirtual

Reimplemented from QTextControl.

Definition at line 104 of file qplaintextedit_p.h.

104  {
105  return textEdit->loadResource(type, name);
106  }
int type
Definition: qmetatype.cpp:239
QPlainTextEdit * textEdit
virtual QVariant loadResource(int type, const QUrl &name)
Loads the resource specified by the given type and name.

Properties

◆ textEdit

QPlainTextEdit* QPlainTextEditControl::textEdit

Definition at line 100 of file qplaintextedit_p.h.

Referenced by blockBoundingRect(), and ensureCursorVisible().

◆ topBlock

int QPlainTextEditControl::topBlock

The documentation for this class was generated from the following files: