Qt 3 Support Members for QTextEditThe following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code. Public Types
Public Functions
Public Slots
Signals
Member Type Documentationenum QTextEdit::CursorAction
enum QTextEdit::KeyboardAction
Member Function DocumentationQTextEdit::QTextEdit ( QWidget * parent, const char * name )Use one of the constructors that doesn't take the name argument and then use setObjectName() instead. bool QTextEdit::bold () constUse fontWeight() >= QFont::Bold instead. See also setBold(). QColor QTextEdit::color () constUse textColor() instead. See also setColor(). void QTextEdit::currentColorChanged ( const QColor & color ) [signal]Use currentCharFormatChanged() instead. void QTextEdit::currentFontChanged ( const QFont & font ) [signal]Use currentCharFormatChanged() instead. void QTextEdit::doKeyboardAction ( KeyboardAction action )Executes keyboard action action. Use the QTextCursor class instead. See also textCursor(). QString QTextEdit::family () constUse fontFamily() instead. See also setFamily(). bool QTextEdit::find ( const QString & exp, bool cs, bool wo )This is an overloaded member function, provided for convenience. Use the find() overload that takes a QTextDocument::FindFlags argument. bool QTextEdit::hasSelectedText () constUse textCursor().hasSelection() instead. void QTextEdit::insert ( const QString & text )Use insertPlainText() instead. bool QTextEdit::isModified () constUse document()->isModified() instead. bool QTextEdit::isRedoAvailable () constUse document()->isRedoAvailable() instead. bool QTextEdit::isUndoAvailable () constUse document()->isUndoAvailable() instead. bool QTextEdit::italic () constUse fontItalic() instead. See also setItalic(). void QTextEdit::moveCursor ( CursorAction action, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor )This is an overloaded member function, provided for convenience. Use the QTextCursor class instead. void QTextEdit::moveCursor ( CursorAction action, bool select )This is an overloaded member function, provided for convenience. Use the QTextCursor class instead. int QTextEdit::pointSize () constUse int(fontPointSize()+0.5) instead. See also setPointSize(). void QTextEdit::redo () constThis is an overloaded member function, provided for convenience. Use the non-const overload instead. QString QTextEdit::selectedText () constUse textCursor().selectedText() instead. void QTextEdit::setBold ( bool b )Use setFontWeight() instead. See also bold(). void QTextEdit::setColor ( const QColor & color ) [slot]Use setTextColor() instead. See also color(). void QTextEdit::setFamily ( const QString & family )Use setFontFamily() instead. See also family(). void QTextEdit::setItalic ( bool i )Use setFontItalic() instead. See also italic(). void QTextEdit::setModified ( bool m = true ) [slot]Use document->setModified() instead. See also isModified(). void QTextEdit::setPointSize ( int size )Use setFontPointSize() instead. See also pointSize(). void QTextEdit::setTextFormat ( Qt::TextFormat f )Sets the text format to format f. See also textFormat(). void QTextEdit::setUnderline ( bool b )Use setFontUnderline() instead. See also underline(). void QTextEdit::sync ()Does nothing. QString QTextEdit::text () constReturns all the text in the text edit as plain text. See also setText(). Qt::TextFormat QTextEdit::textFormat () constReturns the text format. See also setTextFormat(). bool QTextEdit::underline () constUse fontUnderline() instead. See also setUnderline(). void QTextEdit::undo () constThis is an overloaded member function, provided for convenience. Use the non-const overload instead.
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |