|
| QResultWidget (QWidget *parent=nullptr) |
|
QColor | linkColor () const |
|
void | setLinkColor (const QColor &color) |
|
void | showResultPage (const QList< QHelpSearchResult > &results, bool isIndexing) |
|
| QResultWidget (QWidget *parent=nullptr) |
|
QColor | linkColor () const |
|
void | setLinkColor (const QColor &color) |
|
void | showResultPage (const QList< QHelpSearchResult > &results, bool isIndexing) |
|
| QTextBrowser (QWidget *parent=nullptr) |
| Constructs an empty QTextBrowser with parent parent.
|
|
virtual | ~QTextBrowser () |
|
QUrl | source () const |
|
QTextDocument::ResourceType | sourceType () const |
|
QStringList | searchPaths () const |
|
void | setSearchPaths (const QStringList &paths) |
|
virtual QVariant | loadResource (int type, const QUrl &name) override |
| This function is called when the document is loaded and for each image in the document.
|
|
bool | isBackwardAvailable () const |
|
bool | isForwardAvailable () const |
|
void | clearHistory () |
|
QString | historyTitle (int) const |
| Returns the documentTitle() of the HistoryItem.
|
|
QUrl | historyUrl (int) const |
| Returns the url of the HistoryItem.
|
|
int | backwardHistoryCount () const |
| Returns the number of locations backward in the history.
|
|
int | forwardHistoryCount () const |
| Returns the number of locations forward in the history.
|
|
bool | openExternalLinks () const |
|
void | setOpenExternalLinks (bool open) |
|
bool | openLinks () const |
|
void | setOpenLinks (bool open) |
|
| QTextEdit (QWidget *parent=nullptr) |
| Constructs an empty QTextEdit with parent parent.
|
|
| QTextEdit (const QString &text, QWidget *parent=nullptr) |
| Constructs a QTextEdit with parent parent.
|
|
virtual | ~QTextEdit () |
| Destructor.
|
|
void | setDocument (QTextDocument *document) |
|
QTextDocument * | document () const |
|
void | setPlaceholderText (const QString &placeholderText) |
|
QString | placeholderText () const |
|
void | setTextCursor (const QTextCursor &cursor) |
| Sets the visible cursor.
|
|
QTextCursor | textCursor () const |
| Returns a copy of the QTextCursor that represents the currently visible cursor.
|
|
bool | isReadOnly () const |
|
void | setReadOnly (bool ro) |
|
void | setTextInteractionFlags (Qt::TextInteractionFlags flags) |
|
Qt::TextInteractionFlags | textInteractionFlags () const |
|
qreal | fontPointSize () const |
| Returns the point size of the font of the current format.
|
|
QString | fontFamily () const |
| Returns the font family of the current format.
|
|
int | fontWeight () const |
| Returns the font weight of the current format.
|
|
bool | fontUnderline () const |
| Returns true if the font of the current format is underlined; otherwise returns false.
|
|
bool | fontItalic () const |
| Returns true if the font of the current format is italic; otherwise returns false.
|
|
QColor | textColor () const |
| Returns the text color of the current format.
|
|
QColor | textBackgroundColor () const |
|
QFont | currentFont () const |
| Returns the font of the current format.
|
|
Qt::Alignment | alignment () const |
| Returns the alignment of the current paragraph.
|
|
void | mergeCurrentCharFormat (const QTextCharFormat &modifier) |
| Merges the properties specified in modifier into the current character format by calling QTextCursor::mergeCharFormat on the editor's cursor.
|
|
void | setCurrentCharFormat (const QTextCharFormat &format) |
| Sets the char format that is be used when inserting new text to format by calling QTextCursor::setCharFormat() on the editor's cursor.
|
|
QTextCharFormat | currentCharFormat () const |
| Returns the char format that is used when inserting new text.
|
|
AutoFormatting | autoFormatting () const |
|
void | setAutoFormatting (AutoFormatting features) |
|
bool | tabChangesFocus () const |
|
void | setTabChangesFocus (bool b) |
|
void | setDocumentTitle (const QString &title) |
|
QString | documentTitle () const |
|
bool | isUndoRedoEnabled () const |
|
void | setUndoRedoEnabled (bool enable) |
|
LineWrapMode | lineWrapMode () const |
|
void | setLineWrapMode (LineWrapMode mode) |
|
int | lineWrapColumnOrWidth () const |
|
void | setLineWrapColumnOrWidth (int w) |
|
QTextOption::WrapMode | wordWrapMode () const |
| the mode QTextEdit will use when wrapping text by words
|
|
void | setWordWrapMode (QTextOption::WrapMode policy) |
|
bool | find (const QString &exp, QTextDocument::FindFlags options=QTextDocument::FindFlags()) |
| Finds the next occurrence of the string, exp, using the given options.
|
|
QString | toPlainText () const |
| QString QTextEdit::toPlainText() const.
|
|
QString | toHtml () const |
|
void | ensureCursorVisible () |
| Ensures that the cursor is visible by scrolling the text edit if necessary.
|
|
QMenu * | createStandardContextMenu () |
| \reimp
|
|
QMenu * | createStandardContextMenu (const QPoint &position) |
|
QTextCursor | cursorForPosition (const QPoint &pos) const |
| returns a QTextCursor at position pos (in viewport coordinates).
|
|
QRect | cursorRect (const QTextCursor &cursor) const |
| returns a rectangle (in viewport coordinates) that includes the cursor.
|
|
QRect | cursorRect () const |
| returns a rectangle (in viewport coordinates) that includes the cursor of the text edit.
|
|
QString | anchorAt (const QPoint &pos) const |
| Returns the reference of the anchor at position pos, or an empty string if no anchor exists at that point.
|
|
bool | overwriteMode () const |
|
void | setOverwriteMode (bool overwrite) |
|
qreal | tabStopDistance () const |
|
void | setTabStopDistance (qreal distance) |
|
int | cursorWidth () const |
|
void | setCursorWidth (int width) |
|
bool | acceptRichText () const |
|
void | setAcceptRichText (bool accept) |
|
void | setExtraSelections (const QList< ExtraSelection > &selections) |
| \variable QTextEdit::ExtraSelection::cursor A cursor that contains a selection in a QTextDocument
|
|
QList< ExtraSelection > | extraSelections () const |
|
void | moveCursor (QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor) |
|
bool | canPaste () const |
|
void | print (QPagedPaintDevice *printer) const |
|
QVariant | inputMethodQuery (Qt::InputMethodQuery property) const override |
| \reimp
|
|
Q_INVOKABLE QVariant | inputMethodQuery (Qt::InputMethodQuery query, QVariant argument) const |
|
|
enum | LineWrapMode { NoWrap
, WidgetWidth
, FixedPixelWidth
, FixedColumnWidth
} |
| \value NoWrap \value WidgetWidth \value FixedPixelWidth \value FixedColumnWidth More...
|
|
enum | AutoFormattingFlag { AutoNone = 0
, AutoBulletList = 0x00000001
, AutoAll = 0xffffffff
} |
| \value AutoNone Don't do any automatic formatting. More...
|
|
void | setSource (const QUrl &name, QTextDocument::ResourceType type=QTextDocument::UnknownResource) |
| Attempts to load the document at the given url with the specified type.
|
|
virtual void | backward () |
| Changes the document displayed to the previous document in the list of documents built by navigating links.
|
|
virtual void | forward () |
| Changes the document displayed to the next document in the list of documents built by navigating links.
|
|
virtual void | home () |
| Changes the document displayed to be the first document from the history.
|
|
virtual void | reload () |
| Reloads the current set source.
|
|
void | setFontPointSize (qreal s) |
| Sets the point size of the current format to s.
|
|
void | setFontFamily (const QString &fontFamily) |
| Sets the font family of the current format to fontFamily.
|
|
void | setFontWeight (int w) |
| Sets the font weight of the current format to the given weight, where the value used is in the range defined by the QFont::Weight enum.
|
|
void | setFontUnderline (bool b) |
| If underline is true, sets the current format to underline; otherwise sets the current format to non-underline.
|
|
void | setFontItalic (bool b) |
| If italic is true, sets the current format to italic; otherwise sets the current format to non-italic.
|
|
void | setTextColor (const QColor &c) |
| Sets the text color of the current format to c.
|
|
void | setTextBackgroundColor (const QColor &c) |
|
void | setCurrentFont (const QFont &f) |
| Sets the font of the current format to f.
|
|
void | setAlignment (Qt::Alignment a) |
| Sets the alignment of the current paragraph to a.
|
|
void | setPlainText (const QString &text) |
| Changes the text of the text edit to the string text.
|
|
void | setHtml (const QString &text) |
|
void | setText (const QString &text) |
|
void | cut () |
| Copies the selected text to the clipboard and deletes it from the text edit.
|
|
void | copy () |
| Copies any selected text to the clipboard.
|
|
void | paste () |
| Pastes the text from the clipboard into the text edit at the current cursor position.
|
|
void | undo () |
|
void | redo () |
|
void | clear () |
| Deletes all the text in the text edit.
|
|
void | selectAll () |
| Selects all text.
|
|
void | insertPlainText (const QString &text) |
| Convenience slot that inserts text at the current cursor position.
|
|
void | insertHtml (const QString &text) |
| Convenience slot that inserts text which is assumed to be of html formatting at the current cursor position.
|
|
void | append (const QString &text) |
| Appends a new paragraph with text to the end of the text edit.
|
|
void | scrollToAnchor (const QString &name) |
| Scrolls the text edit so that the anchor with the given name is visible; does nothing if the name is empty, or is already visible, or isn't found.
|
|
void | zoomIn (int range=1) |
| Zooms in on the text by making the base font size range points larger and recalculating all font sizes to be the new size.
|
|
void | zoomOut (int range=1) |
| Zooms out on the text by making the base font size range points smaller and recalculating all font sizes to be the new size.
|
|
bool | event (QEvent *e) override |
| \reimp
|
|
virtual void | keyPressEvent (QKeyEvent *ev) override |
| The event ev is used to provide the following keyboard shortcuts: \table \header.
|
|
virtual void | mouseMoveEvent (QMouseEvent *ev) override |
| \reimp
|
|
virtual void | mousePressEvent (QMouseEvent *ev) override |
| \reimp
|
|
virtual void | mouseReleaseEvent (QMouseEvent *ev) override |
| \reimp
|
|
virtual void | focusOutEvent (QFocusEvent *ev) override |
| \reimp
|
|
virtual bool | focusNextPrevChild (bool next) override |
| \reimp
|
|
virtual void | paintEvent (QPaintEvent *e) override |
| \reimp
|
|
virtual void | doSetSource (const QUrl &name, QTextDocument::ResourceType type=QTextDocument::UnknownResource) |
| Attempts to load the document at the given url with the specified type.
|
|
virtual void | timerEvent (QTimerEvent *e) override |
|
virtual void | keyReleaseEvent (QKeyEvent *e) override |
| \reimp
|
|
virtual void | resizeEvent (QResizeEvent *e) override |
| \reimp
|
|
virtual void | mouseDoubleClickEvent (QMouseEvent *e) override |
| \reimp
|
|
virtual void | contextMenuEvent (QContextMenuEvent *e) override |
| Shows the standard context menu created with createStandardContextMenu().
|
|
virtual void | focusInEvent (QFocusEvent *e) override |
| \reimp
|
|
virtual void | showEvent (QShowEvent *) override |
| \reimp
|
|
virtual void | changeEvent (QEvent *e) override |
| \reimp
|
|
virtual QMimeData * | createMimeDataFromSelection () const |
| This function returns a new MIME data object to represent the contents of the text edit's current selection.
|
|
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.
|
|
virtual void | insertFromMimeData (const QMimeData *source) |
| This function inserts the contents of the MIME data object, specified by source, into the text edit at the current cursor position.
|
|
virtual void | inputMethodEvent (QInputMethodEvent *) override |
| \reimp
|
|
| QTextEdit (QTextEditPrivate &dd, QWidget *parent) |
|
virtual void | scrollContentsBy (int dx, int dy) override |
| \reimp
|
|
virtual void | doSetTextCursor (const QTextCursor &cursor) |
|
void | zoomInF (float range) |
|
Definition at line 20 of file qhelpsearchresultwidget.cpp.