Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

Q3TextEdit Class Reference

#include <qtextedit.h>

Inheritance diagram for Q3TextEdit:

Q3ScrollView Q3Frame QFrame QWidget QObject QPaintDevice Q3MultiLineEdit Q3TextBrowser Q3TextView

List of all members.


Detailed Description

The Q3TextEdit widget provides a powerful single-page rich text editor.

Definition at line 118 of file q3textedit.h.


Public Types

enum  { Shadow_Mask = 0x00f0, Shape_Mask = 0x000f }
enum  AutoFormattingFlag { AutoNone = 0, AutoBulletList = 0x00000001, AutoAll = 0xffffffff }
enum  CursorAction {
  MoveBackward, MoveForward, MoveWordBackward, MoveWordForward,
  MoveUp, MoveDown, MoveLineStart, MoveLineEnd,
  MoveHome, MoveEnd, MovePgUp, MovePgDown
}
enum  KeyboardAction {
  ActionBackspace, ActionDelete, ActionReturn, ActionKill,
  ActionWordBackspace, ActionWordDelete
}
enum  PaintDeviceMetric {
  PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM,
  PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY,
  PdmPhysicalDpiX, PdmPhysicalDpiY
}
enum  ResizePolicy { Default, Manual, AutoOne, AutoOneFit }
enum  ScrollBarMode { Auto, AlwaysOff, AlwaysOn }
enum  Shadow { Plain = 0x0010, Raised = 0x0020, Sunken = 0x0030 }
enum  Shape {
  NoFrame = 0, Box = 0x0001, Panel = 0x0002, WinPanel = 0x0003,
  HLine = 0x0004, VLine = 0x0005, StyledPanel = 0x0006
}
enum  TextInsertionFlags { RedoIndentation = 0x0001, CheckNewLines = 0x0002, RemoveSelected = 0x0004 }
enum  VerticalAlignment { AlignNormal, AlignSuperScript, AlignSubScript }
enum  WordWrap { NoWrap, WidgetWidth, FixedPixelWidth, FixedColumnWidth }
enum  WrapPolicy { AtWordBoundary, AtWhiteSpace = AtWordBoundary, Anywhere, AtWordOrDocumentBoundary }

Public Slots

virtual void append (const QString &text)
void center (int x, int y, float xmargin, float ymargin)
void center (int x, int y)
virtual void clear ()
virtual void clearParagraphBackground (int para)
bool close ()
virtual void copy ()
virtual void cut ()
virtual void del ()
void deleteLater ()
virtual void doKeyboardAction (Q3TextEdit::KeyboardAction action)
virtual void ensureCursorVisible ()
void ensureVisible (int x, int y, int xmargin, int ymargin)
void ensureVisible (int x, int y)
void hide ()
virtual void indent ()
virtual void insert (const QString &text, bool, bool=true, bool=true)
virtual void insert (const QString &text, uint insertionFlags=CheckNewLines|RemoveSelected)
virtual void insertAt (const QString &text, int para, int index)
virtual void insertParagraph (const QString &text, int para)
void lower ()
int maxLogLines () const
virtual void moveCursor (Q3TextEdit::CursorAction action, bool select)
virtual void paste ()
virtual void pasteSubType (const QByteArray &subtype)
virtual void placeCursor (const QPoint &pos, Q3TextCursor *c=0)
void polishEvent (QEvent *)
void raise ()
virtual void redo ()
virtual void removeParagraph (int para)
virtual void removeSelectedText (int selNum=0)
virtual void removeSelection (int selNum=0)
void repaint ()
virtual void resetFormat ()
virtual void resizeContents (int w, int h)
void scrollBy (int dx, int dy)
virtual void scrollToAnchor (const QString &name)
virtual void scrollToBottom ()
virtual void selectAll (bool select=true)
virtual void setAlignment (int a)
virtual void setBold (bool b)
virtual void setColor (const QColor &c)
virtual void setContentsPos (int x, int y)
virtual void setCurrentFont (const QFont &f)
virtual void setCursorPosition (int parag, int index)
void setDisabled (bool)
void setEnabled (bool enable)
virtual void setFamily (const QString &f)
void setFocus ()
virtual void setFormat (Q3TextFormat *f, int flags)
void setHidden (bool hidden)
virtual void setItalic (bool b)
virtual void setLinkUnderline (bool)
void setMaxLogLines (int numLines)
virtual void setMimeSourceFactory (Q3MimeSourceFactory *factory)
virtual void setModified (bool m)
virtual void setOverwriteMode (bool b)
virtual void setPaper (const QBrush &pap)
virtual void setParagraphBackgroundColor (int para, const QColor &bg)
virtual void setParagType (Q3StyleSheetItem::DisplayMode dm, Q3StyleSheetItem::ListStyle listStyle)
virtual void setPointSize (int s)
virtual void setReadOnly (bool b)
virtual void setSelection (int parag_from, int index_from, int parag_to, int index_to, int selNum=0)
virtual void setSelectionAttributes (int selNum, const QColor &back, bool invertText)
QT_MOC_COMPAT void setShown (bool shown)
virtual void setStyleSheet (Q3StyleSheet *styleSheet)
virtual void setTabChangesFocus (bool b)
virtual void setTabStopWidth (int ts)
virtual void setText (const QString &txt, const QString &context)
void setText (const QString &txt)
virtual void setTextFormat (Qt::TextFormat f)
virtual void setUnderline (bool b)
virtual void setUndoDepth (int d)
virtual void setUndoRedoEnabled (bool b)
virtual void setVerticalAlignment (Q3TextEdit::VerticalAlignment a)
void setWindowModified (bool)
virtual void setWordWrap (Q3TextEdit::WordWrap mode)
virtual void setWrapColumnOrWidth (int)
virtual void setWrapPolicy (Q3TextEdit::WrapPolicy policy)
void show ()
void showFullScreen ()
void showMaximized ()
void showMinimized ()
void showNormal ()
virtual void sync ()
virtual void undo ()
void update ()
void updateScrollBars ()
virtual void zoomIn ()
virtual void zoomIn (int range)
virtual void zoomOut ()
virtual void zoomOut (int range)
virtual void zoomTo (int size)

Signals

void clicked (int parag, int index)
void contentsMoving (int x, int y)
void copyAvailable (bool)
void currentAlignmentChanged (int a)
void currentColorChanged (const QColor &c)
void currentFontChanged (const QFont &f)
void currentVerticalAlignmentChanged (Q3TextEdit::VerticalAlignment a)
void cursorPositionChanged (int para, int pos)
void cursorPositionChanged (Q3TextCursor *c)
void customContextMenuRequested (const QPoint &pos)
void destroyed (QObject *=0)
void doubleClicked (int parag, int index)
void horizontalSliderPressed ()
void horizontalSliderReleased ()
void modificationChanged (bool m)
void redoAvailable (bool yes)
void returnPressed ()
void selectionChanged ()
void textChanged ()
void undoAvailable (bool yes)
void verticalSliderPressed ()
void verticalSliderReleased ()

Public Member Functions

bool acceptDrops () const
QString accessibleDescription () const
QString accessibleName () const
QList< QAction * > actions () const
void activateWindow ()
void addAction (QAction *action)
void addActions (QList< QAction * > actions)
virtual void addChild (QWidget *child, int x=0, int y=0)
void adjustSize ()
int alignment () const
QString anchorAt (const QPoint &pos, Qt::AnchorAttribute a=Qt::AnchorHref)
bool autoFillBackground () const
AutoFormatting autoFormatting () const
QPalette::ColorRole backgroundRole () const
QSize baseSize () const
bool blockSignals (bool b)
bool bold () const
int bottomMargin () const
int charAt (const QPoint &pos, int *para) const
QWidgetchildAt (const QPoint &p) const
QWidgetchildAt (int x, int y) const
bool childIsVisible (QWidget *child)
const QObjectListchildren () const
QRect childrenRect () const
QRegion childrenRegion () const
int childX (QWidget *child)
int childY (QWidget *child)
void clearFocus ()
void clearMask ()
QWidgetclipper () const
QColor color () const
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
int contentsHeight () const
QRect contentsRect () const
QPoint contentsToViewport (const QPoint &) const
void contentsToViewport (int x, int y, int &vx, int &vy) const
int contentsWidth () const
int contentsX () const
int contentsY () const
QString context () const
Qt::ContextMenuPolicy contextMenuPolicy () const
QWidgetcornerWidget () const
QFont currentFont () const
QCursor cursor () const
int depth () const
int devType () const
void disableSizeHintCaching ()
bool disconnect (const QObject *receiver, const char *member=0)
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
QString documentTitle () const
bool dragAutoScroll () const
void dumpObjectInfo ()
void dumpObjectTree ()
void enableClipper (bool y)
void ensurePolished () const
bool eventFilter (QObject *o, QEvent *e)
QString family () const
virtual bool find (const QString &expr, bool cs, bool wo, bool forward=true, int *para=0, int *index=0)
template<typename T>
findChild (const QString &name=QString()) const
template<typename T>
QList< T > findChildren (const QRegExp &re) const
template<typename T>
QList< T > findChildren (const QString &name=QString()) const
Qt::FocusPolicy focusPolicy () const
QWidgetfocusProxy () const
QWidgetfocusWidget () const
QFont font () const
QFontInfo fontInfo () const
QFontMetrics fontMetrics () const
QPalette::ColorRole foregroundRole () const
QRect frameGeometry () const
QRect frameRect () const
Shadow frameShadow () const
Shape frameShape () const
QSize frameSize () const
int frameStyle () const
int frameWidth () const
const QRectgeometry () const
void getContentsMargins (int *left, int *top, int *right, int *bottom) const
void getCursorPosition (int *parag, int *index) const
virtual bool getFormat (int para, int index, QFont *font, QColor *color, VerticalAlignment *verticalAlignment)
virtual bool getParagraphFormat (int para, QFont *font, QColor *color, VerticalAlignment *verticalAlignment, int *alignment, Q3StyleSheetItem::DisplayMode *displayMode, Q3StyleSheetItem::ListStyle *listStyle, int *listDepth)
void getSelection (int *paraFrom, int *indexFrom, int *paraTo, int *indexTo, int selNum=0) const
void grabKeyboard ()
void grabMouse (const QCursor &)
void grabMouse ()
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context=Qt::WindowShortcut)
Qt::HANDLE handle () const
bool hasFocus () const
bool hasMouseTracking () const
bool hasSelectedText () const
bool hasStaticBackground () const
int height () const
int heightForWidth (int w) const
int heightMM () const
QScrollBarhorizontalScrollBar () const
ScrollBarMode hScrollBarMode () const
bool inherits (const char *classname) const
QInputContextinputContext ()
void insertAction (QAction *before, QAction *action)
void insertActions (QAction *before, QList< QAction * > actions)
void installEventFilter (QObject *)
bool isActiveWindow () const
bool isAncestorOf (const QWidget *child) const
bool isEnabled () const
bool isEnabledTo (QWidget *) const
bool isEnabledToTLW () const
bool isFullScreen () const
bool isHidden () const
bool isHorizontalSliderPressed ()
bool isLeftToRight () const
bool isMaximized () const
bool isMinimized () const
bool isModal () const
bool isModified () const
bool isOverwriteMode () const
bool isReadOnly () const
bool isRedoAvailable () const
bool isRightToLeft () const
bool isTopLevel () const
bool isUndoAvailable () const
bool isUndoRedoEnabled () const
bool isVerticalSliderPressed ()
bool isVisible () const
bool isVisibleTo (QWidget *) const
bool isWidgetType () const
bool isWindow () const
bool isWindowModified () const
bool italic () const
void killTimer (int id)
QLayoutlayout () const
Qt::LayoutDirection layoutDirection () const
int leftMargin () const
int length () const
int lineOfChar (int para, int chr)
int lines () const
bool lineShapesOk () const
int linesOfParagraph (int para) const
int lineWidth () const
bool linkUnderline () const
int logicalDpiX () const
int logicalDpiY () const
QPoint mapFrom (QWidget *, const QPoint &) const
QPoint mapFromGlobal (const QPoint &) const
QPoint mapFromParent (const QPoint &) const
QPoint mapTo (QWidget *, const QPoint &) const
QPoint mapToGlobal (const QPoint &) const
QPoint mapToParent (const QPoint &) const
int margin () const
QRegion mask () const
int maximumHeight () const
QSize maximumSize () const
int maximumWidth () const
int midLineWidth () const
Q3MimeSourceFactorymimeSourceFactory () const
int minimumHeight () const
QSize minimumSize () const
QSize minimumSizeHint () const
int minimumWidth () const
void move (const QPoint &)
void move (int x, int y)
virtual void moveChild (QWidget *child, int x, int y)
void moveToThread (QThread *thread)
QWidgetnextInFocusChain () const
QRect normalGeometry () const
int numColors () const
QString objectName () const
void overrideWindowFlags (Qt::WindowFlags type)
void overrideWindowState (Qt::WindowStates state)
QPaintEnginepaintEngine () const
bool paintingActive () const
const QPalettepalette () const
QBrush paper () const
int paragraphAt (const QPoint &pos) const
QColor paragraphBackgroundColor (int para) const
int paragraphLength (int para) const
QRect paragraphRect (int para) const
int paragraphs () const
QObjectparent () const
QWidgetparentWidget () const
int physicalDpiX () const
int physicalDpiY () const
int pointSize () const
QPoint pos () const
QVariant property (const char *name) const
 Q3TextEdit (QWidget *parent=0, const char *name=0)
 Q3TextEdit (const QString &text, const QString &context=QString(), QWidget *parent=0, const char *name=0)
QRect rect () const
void releaseKeyboard ()
void releaseMouse ()
void releaseShortcut (int id)
void removeAction (QAction *action)
void removeChild (QObject *child)
void removeChild (QWidget *child)
void removeEventFilter (QObject *)
void repaint (const QRegion &)
void repaint (const QRect &)
void repaint (int x, int y, int w, int h)
void repaintContents (bool erase=true)
void repaintContents (const QRect &r, bool erase=true)
void repaintContents (int x, int y, int w, int h, bool erase=true)
void resize (const QSize &)
void resize (int w, int h)
ResizePolicy resizePolicy () const
int rightMargin () const
void scroll (int dx, int dy, const QRect &)
void scroll (int dx, int dy)
QString selectedText () const
void setAcceptDrops (bool on)
void setAccessibleDescription (const QString &description)
void setAccessibleName (const QString &name)
void setAttribute (Qt::WidgetAttribute, bool on=true)
void setAutoFillBackground (bool enabled)
void setAutoFormatting (AutoFormatting)
void setBackgroundRole (QPalette::ColorRole)
void setBaseSize (int basew, int baseh)
void setBaseSize (const QSize &)
void setContentsMargins (int left, int top, int right, int bottom)
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
virtual void setCornerWidget (QWidget *)
void setCursor (const QCursor &)
virtual void setDragAutoScroll (bool b)
void setFixedHeight (int h)
void setFixedSize (int w, int h)
void setFixedSize (const QSize &)
void setFixedWidth (int w)
void setFocus (Qt::FocusReason reason)
void setFocusPolicy (Qt::FocusPolicy policy)
void setFocusProxy (QWidget *)
void setFont (const QFont &)
void setForegroundRole (QPalette::ColorRole)
void setFrameRect (const QRect &)
void setFrameShadow (Shadow)
void setFrameShape (Shape)
void setFrameStyle (int)
void setGeometry (const QRect &)
void setGeometry (int x, int y, int w, int h)
virtual void setHScrollBarMode (ScrollBarMode)
void setInputContext (QInputContext *)
void setLayout (QLayout *)
void setLayoutDirection (Qt::LayoutDirection direction)
void setLineWidth (int)
void setMargin (int)
virtual void setMargins (int left, int top, int right, int bottom)
void setMask (const QRegion &)
void setMask (const QBitmap &)
void setMaximumHeight (int maxh)
void setMaximumSize (int maxw, int maxh)
void setMaximumSize (const QSize &)
void setMaximumWidth (int maxw)
void setMidLineWidth (int)
void setMinimumHeight (int minh)
void setMinimumSize (int minw, int minh)
void setMinimumSize (const QSize &)
void setMinimumWidth (int minw)
void setMouseTracking (bool enable)
void setObjectName (const QString &name)
void setPalette (const QPalette &)
void setParent (QObject *)
void setParent (QWidget *parent, Qt::WFlags f)
void setParent (QWidget *parent)
bool setProperty (const char *name, const QVariant &value)
virtual void setResizePolicy (ResizePolicy)
void setShortcutEnabled (int id, bool enable=true)
void setSizeIncrement (int w, int h)
void setSizeIncrement (const QSize &)
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
void setSizePolicy (QSizePolicy)
void setStaticBackground (bool y)
void setStatusTip (const QString &)
void setStyle (QStyle *)
void setToolTip (const QString &)
void setUpdatesEnabled (bool enable)
void setUserData (uint id, QObjectUserData *data)
void setVisible (bool visible)
virtual void setVScrollBarMode (ScrollBarMode)
void setWhatsThis (const QString &)
void setWindowFlags (Qt::WindowFlags type)
void setWindowIcon (const QIcon &icon)
void setWindowIconText (const QString &)
void setWindowModality (Qt::WindowModality windowModality)
void setWindowOpacity (qreal level)
void setWindowRole (const QString &)
void setWindowState (Qt::WindowStates state)
void setWindowTitle (const QString &)
void showChild (QWidget *child, bool yes=true)
bool signalsBlocked () const
QSize size () const
QSize sizeHint () const
QSize sizeIncrement () const
QSizePolicy sizePolicy () const
void stackUnder (QWidget *)
int startTimer (int interval)
QString statusTip () const
QStylestyle () const
void styleChange (QStyle &)
Q3StyleSheetstyleSheet () const
Q3SyntaxHighlightersyntaxHighlighter () const
bool tabChangesFocus () const
int tabStopWidth () const
bool testAttribute (Qt::WidgetAttribute) const
QString text (int para) const
QString text () const
Qt::TextFormat textFormat () const
QThreadthread () const
QString toolTip () const
QWidgettopLevelWidget () const
int topMargin () const
bool underline () const
bool underMouse () const
int undoDepth () const
void unsetCursor ()
void unsetLayoutDirection ()
void update (const QRegion &)
void update (const QRect &)
void update (int x, int y, int w, int h)
void updateContents ()
void updateContents (const QRect &r)
void updateContents (int x, int y, int w, int h)
void updateGeometry ()
bool updatesEnabled () const
QObjectUserData * userData (uint id) const
VerticalAlignment verticalAlignment () const
QScrollBarverticalScrollBar () const
QWidgetviewport () const
QSize viewportSize (int, int) const
QPoint viewportToContents (const QPoint &) const
void viewportToContents (int vx, int vy, int &x, int &y) const
int visibleHeight () const
QRegion visibleRegion () const
int visibleWidth () const
ScrollBarMode vScrollBarMode () const
QString whatsThis () const
int width () const
int widthMM () const
QWidgetwindow () const
Qt::WindowFlags windowFlags () const
QIcon windowIcon () const
QString windowIconText () const
Qt::WindowModality windowModality () const
qreal windowOpacity () const
QString windowRole () const
Qt::WindowStates windowState () const
QString windowTitle () const
Qt::WindowType windowType () const
WId winId () const
WordWrap wordWrap () const
int wrapColumnOrWidth () const
WrapPolicy wrapPolicy () const
int x () const
int y () const
virtual ~Q3TextEdit ()

Static Public Member Functions

static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
static QWidgetfind (WId)
static QWidgetkeyboardGrabber ()
static QWidgetmouseGrabber ()
static uint registerUserData ()
static void setTabOrder (QWidget *, QWidget *)

Protected Slots

virtual void doChangeInterval ()
virtual void sliderReleased ()

Protected Member Functions

virtual void actionEvent (QActionEvent *)
QSize cachedSizeHint () const
void changeEvent (QEvent *)
virtual void childEvent (QChildEvent *)
virtual void closeEvent (QCloseEvent *)
virtual void connectNotify (const char *signal)
void contentsContextMenuEvent (QContextMenuEvent *e)
void contentsDragEnterEvent (QDragEnterEvent *e)
void contentsDragLeaveEvent (QDragLeaveEvent *e)
void contentsDragMoveEvent (QDragMoveEvent *e)
void contentsDropEvent (QDropEvent *e)
void contentsMouseDoubleClickEvent (QMouseEvent *e)
void contentsMouseMoveEvent (QMouseEvent *e)
void contentsMousePressEvent (QMouseEvent *e)
void contentsMouseReleaseEvent (QMouseEvent *e)
void contentsWheelEvent (QWheelEvent *e)
void contextMenuEvent (QContextMenuEvent *)
void create (WId=0, bool initializeWindow=true, bool destroyOldWindow=true)
virtual Q3PopupMenu * createPopupMenu ()
virtual Q3PopupMenu * createPopupMenu (const QPoint &pos)
virtual void customEvent (QEvent *)
void destroy (bool destroyWindow=true, bool destroySubWindows=true)
virtual void disconnectNotify (const char *signal)
Q3TextDocument * document () const
virtual void dragEnterEvent (QDragEnterEvent *)
virtual void dragLeaveEvent (QDragLeaveEvent *)
virtual void dragMoveEvent (QDragMoveEvent *)
void drawContents (QPainter *p, int cx, int cy, int cw, int ch)
virtual void drawContentsOffset (QPainter *, int ox, int oy, int cx, int cy, int cw, int ch)
void drawCursor (bool visible)
virtual void drawFrame (QPainter *)
virtual void dropEvent (QDropEvent *)
virtual void enabledChange (bool)
virtual void enterEvent (QEvent *)
bool event (QEvent *e)
virtual void focusInEvent (QFocusEvent *)
bool focusNextChild ()
bool focusNextPrevChild (bool next)
virtual void focusOutEvent (QFocusEvent *)
bool focusPreviousChild ()
void fontChange (const QFont &)
void frameChanged ()
virtual void hideEvent (QHideEvent *)
void inputMethodEvent (QInputMethodEvent *)
void keyPressEvent (QKeyEvent *e)
virtual void keyReleaseEvent (QKeyEvent *)
virtual void languageChange ()
virtual void leaveEvent (QEvent *)
int metric (PaintDeviceMetric) const
void mouseDoubleClickEvent (QMouseEvent *)
void mouseMoveEvent (QMouseEvent *)
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
virtual void moveEvent (QMoveEvent *)
void paintEvent (QPaintEvent *)
virtual void paletteChange (const QPalette &)
int receivers (const char *signal) const
void repaintChanged ()
void resetInputContext ()
void resizeEvent (QResizeEvent *e)
QObjectsender () const
void setCachedSizeHint (const QSize &sh) const
void setDocument (Q3TextDocument *doc)
virtual void setHBarGeometry (QScrollBar &hbar, int x, int y, int w, int h)
virtual void setVBarGeometry (QScrollBar &vbar, int x, int y, int w, int h)
virtual void showEvent (QShowEvent *)
virtual void tabletEvent (QTabletEvent *)
Q3TextCursor * textCursor () const
virtual void timerEvent (QTimerEvent *)
void updateMicroFocus ()
void updateStyles ()
virtual void viewportContextMenuEvent (QContextMenuEvent *)
virtual void viewportDragEnterEvent (QDragEnterEvent *)
virtual void viewportDragLeaveEvent (QDragLeaveEvent *)
virtual void viewportDragMoveEvent (QDragMoveEvent *)
virtual void viewportDropEvent (QDropEvent *)
virtual void viewportMouseDoubleClickEvent (QMouseEvent *)
virtual void viewportMouseMoveEvent (QMouseEvent *)
virtual void viewportMousePressEvent (QMouseEvent *)
virtual void viewportMouseReleaseEvent (QMouseEvent *)
virtual void viewportPaintEvent (QPaintEvent *)
void viewportResizeEvent (QResizeEvent *)
virtual void viewportWheelEvent (QWheelEvent *)
void wheelEvent (QWheelEvent *)
virtual void windowActivationChange (bool)

Protected Attributes

QObjectData * d_ptr
ushort painters

Static Protected Attributes

static const QMetaObject staticQtMetaObject

Properties

bool acceptDrops
 whether drop events are enabled for this widget
QString accessibleDescription
 the widget's description as seen by assistive technologies
QString accessibleName
 the widget's name as seen by assistive technologies
bool autoFillBackground
 whether the widget background is filled automatically
AutoFormattingFlag autoFormatting
 the enabled set of auto formatting features
QSize baseSize
 the base size of the widget
QRect childrenRect
 the bounding rectangle of the widget's children
QRegion childrenRegion
 the combined region occupied by the widget's children
int contentsHeight
 the height of the contents area
QRect contentsRect
 the frame's contents rectangle (including the margins)
int contentsWidth
 the width of the contents area
int contentsX
 the X coordinate of the contents that are at the left edge of the viewport.
int contentsY
 the Y coordinate of the contents that are at the top edge of the viewport.
Qt::ContextMenuPolicy contextMenuPolicy
 how the widget shows a context menu
QString documentTitle
 the title of the document parsed from the text.
bool dragAutoScroll
 whether autoscrolling in drag move events is enabled
bool enabled
 whether the widget is enabled
bool focus
 whether this widget (or its focus proxy) has the keyboard input focus
Qt::FocusPolicy focusPolicy
 the way the widget accepts keyboard focus
QFont font
 the font currently set for the widget
QRect frameGeometry
 geometry of the widget relative to its parent including any window frame
QRect frameRect
 the frame's rectangle
Shadow frameShadow
 the frame shadow value from the frame style
Shape frameShape
 the frame shape value from the frame style
QSize frameSize
 the size of the widget including any window frame
int frameWidth
 the width of the frame that is drawn.
bool fullScreen
 whether the widget is full screen
QRect geometry
 the geometry of the widget relative to its parent and excluding the window frame
bool hasSelectedText
 whether some text is selected in selection 0
int height
 the height of the widget excluding any window frame
ScrollBarMode hScrollBarMode
 the mode for the horizontal scroll bar
bool isActiveWindow
 whether this widget's window is the active window
Qt::LayoutDirection layoutDirection
 the layout direction for this widget
int length
 the number of characters in the text
int lineWidth
 the line width
bool linkUnderline
 whether hypertext links will be underlined
int margin
 the width of the margin
bool maximized
 whether this widget is maximized
int maximumHeight
 the widget's maximum height
QSize maximumSize
 the widget's maximum size
int maximumWidth
 the widget's maximum width
int midLineWidth
 the width of the mid-line
bool minimized
 whether this widget is minimized (iconified)
int minimumHeight
 the widget's minimum height
QSize minimumSize
 the widget's minimum size
QSize minimumSizeHint
 the recommended minimum size for the widget
int minimumWidth
 the widget's minimum width
bool modal
 whether the widget is a modal widget
bool modified
 whether the document has been modified by the user
bool mouseTracking
 whether mouse tracking is enabled for the widget
QRect normalGeometry
 the geometry a toplevel widget has when it is not maximized or fullscreen
QString objectName
 the name of this object
bool overwriteMode
 the text edit's overwrite mode
QPalette palette
 the widget's palette
QBrush paper
 the background (paper) brush.
QPoint pos
 the position of the widget within its parent widget
bool readOnly
 whether the text edit is read-only
QRect rect
 the internal geometry of the widget excluding any window frame
ResizePolicy resizePolicy
 the resize policy
QString selectedText
 The selected text (from selection 0) or an empty string if there is no currently selected text (in selection 0).
QSize size
 the size of the widget excluding any window frame
QSize sizeHint
 the recommended size for the widget
QSize sizeIncrement
 the size increment of the widget
QSizePolicy sizePolicy
 the default layout behavior of the widget
QString statusTip
 the widget's status tip
bool tabChangesFocus
 whether TAB changes focus or is accepted as input
int tabStopWidth
 the tab stop width in pixels
QString text
 the text edit's text
Qt::TextFormat textFormat
 the text format: rich text, plain text, log text or auto text.
QString toolTip
 the widget's tooltip
int undoDepth
 the depth of the undo history
bool undoRedoEnabled
 whether undo/redo is enabled
bool updatesEnabled
 whether updates are enabled
bool visible
 whether the widget is visible
int visibleHeight
 the vertical amount of the content that is visible
int visibleWidth
 the horizontal amount of the content that is visible
ScrollBarMode vScrollBarMode
 the mode for the vertical scroll bar
QString whatsThis
 the widget's What's This help text.
int width
 the width of the widget excluding any window frame
QIcon windowIcon
 the widget's icon
QString windowIconText
 the widget's icon text
Qt::WindowModality windowModality
 which windows are blocked by the modal widget
bool windowModified
 whether the document shown in the window has unsaved changes
double windowOpacity
 The level of opacity for the window.
QString windowTitle
 the window title (caption)
WordWrap wordWrap
 the word wrap mode
int wrapColumnOrWidth
 the position (in pixels or columns depending on the wrap mode) where text will be wrapped
WrapPolicy wrapPolicy
 the word wrap policy, at whitespace or anywhere
int x
 the x coordinate of the widget relative to its parent including any window frame
int y
 the y coordinate of the widget relative to its parent and including any window frame

Private Slots

void autoScrollTimerDone ()
void blinkCursor ()
void clipboardChanged ()
void documentWidthChanged (int w)
void doResize ()
void formatMore ()
void optimDoAutoScroll ()
void setModified ()
void startDrag ()

Private Member Functions

bool checkOptimMode ()
void checkUndoRedoInfo (UndoRedoInfo::Type t)
void clearUndoRedo ()
void copyToClipboard ()
Q3TextDragdragObject (QWidget *parent=0) const
void drawContents (QPainter *)
virtual void emitHighlighted (const QString &)
virtual void emitLinkClicked (const QString &)
void ensureFormatted (Q3TextParagraph *p)
void handleMouseMove (const QPoint &pos)
bool handleReadOnlyKeyEvent (QKeyEvent *e)
void init ()
QVariant inputMethodQuery (Qt::InputMethodQuery query) const
virtual bool linksEnabled () const
void makeParagVisible (Q3TextParagraph *p)
void moveCursor (CursorAction action)
void normalCopy ()
void optimAppend (const QString &str)
Q3TextEditOptimPrivate::Tag * optimAppendTag (int index, const QString &tag)
int optimCharIndex (const QString &str, int mx) const
void optimCheckLimit (const QString &str)
void optimDrawContents (QPainter *p, int cx, int cy, int cw, int ch)
bool optimFind (const QString &str, bool, bool, bool, int *, int *)
bool optimHasBoldMetrics (int line)
bool optimHasSelection () const
void optimInsert (const QString &str, int line, int index)
Q3TextEditOptimPrivate::Tag * optimInsertTag (int line, int index, const QString &tag)
void optimMouseMoveEvent (QMouseEvent *e)
void optimMousePressEvent (QMouseEvent *e)
void optimMouseReleaseEvent (QMouseEvent *e)
void optimParseTags (QString *str, int lineNo=-1, int indexOffset=0)
Q3TextEditOptimPrivate::Tag * optimPreviousLeftTag (int line)
void optimRemoveSelection ()
void optimSelectAll ()
QString optimSelectedText () const
void optimSetSelection (int startLine, int startIdx, int endLine, int endIdx)
void optimSetText (const QString &str)
void optimSetTextFormat (Q3TextDocument *, Q3TextCursor *, Q3TextFormat *f, int, int, Q3TextEditOptimPrivate::Tag *t)
QString optimText () const
void paintDocument (bool drawAll, QPainter *p, int cx=-1, int cy=-1, int cw=-1, int ch=-1)
void pasteSpecial (const QPoint &)
void pasteSubType (const QByteArray &subtype, QMimeSource *m)
QByteArray pickSpecial (QMimeSource *ms, bool always_ask, const QPoint &)
void placeCursor (const QPoint &pos, Q3TextCursor *c, bool link)
void readFormats (Q3TextCursor &c1, Q3TextCursor &c2, Q3TextString &text, bool fillStyles=false)
void setFontInternal (const QFont &f)
void updateCurrentFormat ()
void updateCursor (const QPoint &pos)

Private Attributes

bool blinkCursorVisible: 1
QTimerblinkTimer
QTimerchangeIntervalTimer
int currentAlignment
Q3TextFormat * currentFormat
Q3TextCursor * cursor
 the cursor shape for this widget
bool cursorVisible: 1
Q3TextEditPrivate * d
Q3TextDocument * doc
QPoint dragStartPos
QTimerdragStartTimer
QTimerformatTimer
bool inDnD: 1
bool inDoubleClick: 1
int interval
Q3TextParagraph * lastFormatted
bool mightStartDrag: 1
QPoint mousePos
bool mousePressed: 1
QPoint oldMousePos
QString onLink
bool overWrite: 1
QString pressedLink
bool readonly: 1
QTimerscrollTimer
bool undoEnabled: 1
UndoRedoInfo undoRedoInfo
WrapPolicy wPolicy
WordWrap wrapMode
int wrapWidth

Friends

class Q3SyntaxHighlighter
class Q3TextBrowser
class QCoreApplication
class QCoreApplicationPrivate
struct QMetaObject
class QThreadData
class QWidget

Related Functions

(Note that these are not member functions.)

qFindChild (const QObject *obj, const QString &name)
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
QList< T > qFindChildren (const QObject *obj, const QString &name)
T * qobject_cast (QObject *object)
 QObjectList
void * qt_find_obj_child (QObject *parent, const char *type, const QString &name)
const Q_GUI_EXPORT QX11Infoqt_x11Info (const QPaintDevice *pd)

Classes

struct  UndoRedoInfo

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

Generated by  Doxygen 1.6.0   Back to index