Qt:Документация 4.3.2/qtextedit-qt3
Материал из Wiki.crossplatform.ru
(Новая: {{Qt4.3.2_header}} =Qt 3 Support Members for QTextEdit= '''The following class members are part of the Qt 3 support layer.''' They ar...)
Текущая версия на 11:07, 14 ноября 2008
Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
[править] Qt 3 Support Members for QTextEdit
The 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.
[править] Открытые типы
- enum KeyboardAction { ActionBackspace, ActionDelete, ActionReturn, ActionKill, ActionWordBackspace, ActionWordDelete }
[править] Открытые функции
- QTextEdit ( QWidget * parent, const char * name )
- bool bold () const
- QColor color () const
- void doKeyboardAction ( KeyboardAction action )
- QString family () const
- bool find ( const QString & exp, bool cs, bool wo )
- bool hasSelectedText () const
- void insert ( const QString & text )
- bool isModified () const
- bool isRedoAvailable () const
- bool isUndoAvailable () const
- bool italic () const
- void moveCursor ( CursorAction action, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor )
- void moveCursor ( CursorAction action, bool select )
- int pointSize () const
- void redo () const
- QString selectedText () const
- void setBold ( bool b )
- void setFamily ( const QString & family )
- void setItalic ( bool i )
- void setPointSize ( int size )
- void setTextFormat ( Qt::TextFormat f )
- void setUnderline ( bool b )
- void sync ()
- QString text () const
- Qt::TextFormat textFormat () const
- bool underline () const
- void undo () const
- 60 открытых функций унаследованных от QWidget
- 8 открытых функций унаследованных от QObject
- 8 открытых функций унаследованных от QPaintDevice
[править] Открытые слоты
- void setColor ( const QColor & color )
- void setModified ( bool m = true )
- 1 открытый слот унаследованный от QWidget
[править] Сигналы
- void currentColorChanged ( const QColor & color )
- void currentFontChanged ( const QFont & font )
[править] Описание типов членов
[править] enum QTextEdit::KeyboardAction
Constant | Value |
---|---|
QTextEdit::ActionBackspace | 0 |
QTextEdit::ActionDelete | 1 |
QTextEdit::ActionReturn | 2 |
QTextEdit::ActionKill | 3 |
QTextEdit::ActionWordBackspace | 4 |
QTextEdit::ActionWordDelete | 5 |
[править] Описание функций-членов
[править] QTextEdit::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 () const
Use fontWeight() >= QFont::Bold instead.
See also setBold().
[править] QColor QTextEdit::color () const
Use 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 () const
Use 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 () const
Use textCursor().hasSelection() instead.
[править] void QTextEdit::insert ( const QString & text )
Use insertPlainText() instead.
[править] bool QTextEdit::isModified () const
Use document()->isModified() instead.
[править] bool QTextEdit::isRedoAvailable () const
Use document()->isRedoAvailable() instead.
[править] bool QTextEdit::isUndoAvailable () const
Use document()->isUndoAvailable() instead.
[править] bool QTextEdit::italic () const
Use 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 () const
Use int( fontPointSize()+0.5) instead.
See also setPointSize().
[править] void QTextEdit::redo () const
This is an overloaded member function, provided for convenience.
Use the non-const overload instead.
[править] QString QTextEdit::selectedText () const
Use 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 () const
Returns all the text in the text edit as plain text.
See also setText().
[править] Qt::TextFormat QTextEdit::textFormat () const
Returns the text format.
See also setTextFormat().
[править] bool QTextEdit::underline () const
Use fontUnderline() instead.
See also setUnderline().
[править] void QTextEdit::undo () const
This is an overloaded member function, provided for convenience.
Use the non-const overload instead.
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|