Fix doc for plasma TextArea component
Signed-off-by: Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
This commit is contained in:
parent
a31036bcc3
commit
c22a828998
@ -30,80 +30,142 @@ Description:
|
|||||||
Like kates..
|
Like kates..
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
alias font:
|
* font font:
|
||||||
Sets the font for the text area.
|
This property holds the font used in the text field.
|
||||||
|
The default font value is the font from plasma desktop theme.
|
||||||
|
|
||||||
int inputMethodHints:
|
* Qt::InputMethodHints inputMethodHints:
|
||||||
|
This property holds the the currently supported input method hints
|
||||||
|
for the text field.
|
||||||
|
The default values is Qt.ImhNone.
|
||||||
|
|
||||||
bool errorHighlight:
|
* bool errorHighlight:
|
||||||
|
This property holds if the text field is highlighted or not
|
||||||
If it is true then the problematic lines will be highlighted.
|
If it is true then the problematic lines will be highlighted.
|
||||||
|
This feature is defined in the Common API but is unimplemented in plasma components.
|
||||||
|
|
||||||
alias cursorPosition:
|
* int cursorPosition:
|
||||||
Returns the cursor's position.
|
This property holds the current cursor position.
|
||||||
|
|
||||||
alias horizontalAlignment:
|
* enumeration horizontalAlignment:
|
||||||
TODO
|
* enumeration verticalAlignment:
|
||||||
alias verticalAlignment:TODO
|
Sets the horizontal and vertical alignment of the text within the TextArea item's width and height.
|
||||||
|
By default, the text alignment follows the natural alignment of the text,
|
||||||
|
for example text that is read from left to right will be aligned to the left.
|
||||||
|
|
||||||
alias readOnly:
|
Valid values for horizontalAlignment are:
|
||||||
If this property is set to true the text cannot be edited by user interaction.
|
|
||||||
|
|
||||||
alias selectedText:
|
* TextEdit.AlignLeft (default)
|
||||||
This read-only property provides the text currently selected in the text edit.
|
* TextEdit.AlignRight
|
||||||
|
* TextEdit.AlignHCenter
|
||||||
|
* TextEdit.AlignJustify
|
||||||
|
|
||||||
alias selectionEnd:
|
Valid values for verticalAlignment are:
|
||||||
The cursor position after the last character in the current selection.
|
|
||||||
|
* TextEdit.AlignTop (default)
|
||||||
|
* TextEdit.AlignBottom
|
||||||
|
* TextEdit.AlignVCenter
|
||||||
|
|
||||||
|
* bool readOnly:
|
||||||
|
This property holds if the TextArea can be modified by the user interaction.
|
||||||
|
The default value is false.
|
||||||
|
|
||||||
|
* string selectedText:
|
||||||
|
This property holds the text selected by the user.
|
||||||
|
If no text is selected it holds an empty string.
|
||||||
This property is read-only.
|
This property is read-only.
|
||||||
|
|
||||||
property alias selectionStart:
|
* int selectionEnd:
|
||||||
The cursor position before the first character in the current selection.
|
This property holds the cursor position after the last character in the current selection.
|
||||||
This property is read-only.
|
This property is read-only.
|
||||||
|
|
||||||
property alias text:
|
* int selectionStart:
|
||||||
The text to display
|
This property holds the cursor position before the first character in the current selection.
|
||||||
property alias textFormat:
|
This property is read-only.
|
||||||
|
|
||||||
|
* string text:
|
||||||
|
This property holds the entire text in the TextArea.
|
||||||
|
|
||||||
|
* enumeration textFormat:
|
||||||
The way the text property should be displayed.
|
The way the text property should be displayed.
|
||||||
|
|
||||||
TextEdit.AutoText
|
* TextEdit.AutoText
|
||||||
TextEdit.PlainText
|
* TextEdit.PlainText
|
||||||
TextEdit.RichText
|
* TextEdit.RichText
|
||||||
TextEdit.StyledText
|
* TextEdit.StyledText
|
||||||
|
|
||||||
alias wrapMode:
|
The default is TextEdit.AutoText. If the text format is TextEdit.AutoText the text edit will automatically determine whether the text should be treated as rich text. This determination is made using Qt::mightBeRichText().
|
||||||
Set this property to wrap the text to the TextEdit item's width.
|
|
||||||
|
|
||||||
TextEdit.NoWrap - no wrapping will be performed. If the text contains insufficient
|
* enumeration wrapMode:
|
||||||
newlines, then implicitWidth will exceed a set width.
|
Set this property to wrap the text to the TextArea item's width. The text will only wrap if an explicit width has been set.
|
||||||
|
|
||||||
TextEdit.WordWrap - wrapping is done on word boundaries only.
|
* TextEdit.NoWrap - no wrapping will be performed.
|
||||||
|
If the text contains insufficient newlines, then implicitWidth will exceed a set width.
|
||||||
|
* TextEdit.WordWrap - wrapping is done on word boundaries only.
|
||||||
If a word is too long, implicitWidth will exceed a set width.
|
If a word is too long, implicitWidth will exceed a set width.
|
||||||
|
* TextEdit.WrapAnywhere - wrapping is done at any point on a line, even if it occurs in the middle of a word.
|
||||||
|
* TextEdit.Wrap - if possible, wrapping occurs at a word boundary; otherwise it will occur at the appropriate point on the line, even in the middle of a word.
|
||||||
|
|
||||||
TextEdit.WrapAnywhere - wrapping is done at any point on a line,
|
The default is TextEdit.NoWrap. If you set a width, consider using TextEdit.Wrap.
|
||||||
even if it occurs in the middle of a word.
|
|
||||||
|
|
||||||
TextEdit.Wrap - if possible, wrapping occurs at a word boundary;
|
* string placeholderText:
|
||||||
otherwise it will occur at the appropriate point on the line, even in the middle of a word.
|
This property holds the text displayed in when the text is empty.
|
||||||
|
The default value is empty string, meaning no placeholderText shown.
|
||||||
|
|
||||||
string placeholderText:TODO
|
|
||||||
|
|
||||||
alias interactive:
|
Plasma properties:
|
||||||
This property describes whether the user can interact with the Flickable. A user
|
|
||||||
cannot drag or flick a Flickable that is not interactive.
|
|
||||||
This property is useful for temporarily disabling flicking. This allows special interaction
|
|
||||||
with Flickable's children; for example, you might want to freeze a flickable map while scrolling
|
|
||||||
through a pop-up dialog that is a child of the Flickable.
|
|
||||||
|
|
||||||
alias contentMaxWidth:
|
* bool interactive:
|
||||||
Sets the maximum width that the contents can have.
|
This property describes whether the user can interact with the TextArea flicking content.
|
||||||
|
A user cannot drag or flick a TextArea that is not interactive.
|
||||||
|
This property is useful for temporarily disabling flicking.
|
||||||
|
|
||||||
alias contentMaxHeight:
|
* int contentMaxWidth:
|
||||||
Sets the maximum height that the contents can have.
|
This property holds the maximum width that the text content can have.
|
||||||
property real scrollWidth:
|
|
||||||
Sets the step that the scrollwidth will move.
|
* int contentMaxHeight:
|
||||||
|
This property holds the maximum height that the text content can have.
|
||||||
|
|
||||||
|
* property real scrollWidth:
|
||||||
|
This property holds the stepSize of the ScrollBar present at the TextArea
|
||||||
|
when it's content are bigger than it's size.
|
||||||
|
|
||||||
|
Methods:
|
||||||
|
* void copy():
|
||||||
|
Copies the currently selected text to the system clipboard.
|
||||||
|
|
||||||
|
* void cut():
|
||||||
|
Moves the currently selected text to the system clipboard.
|
||||||
|
|
||||||
|
* void deselect():
|
||||||
|
Removes active text selection.
|
||||||
|
|
||||||
|
* void paste():
|
||||||
|
Replaces the currently selected text by the contents of the system clipboard.
|
||||||
|
|
||||||
|
* void select(int start, int end):
|
||||||
|
Causes the text from start to end to be selected.
|
||||||
|
If either start or end is out of range, the selection is not changed.
|
||||||
|
After calling this, selectionStart will become the lesser and selectionEnd will become the greater
|
||||||
|
(regardless of the order passed to this method).
|
||||||
|
|
||||||
|
* void selectAll():
|
||||||
|
Causes all text to be selected.
|
||||||
|
|
||||||
|
* void selectWord():
|
||||||
|
Causes the word closest to the current cursor position to be selected.
|
||||||
|
|
||||||
|
* void positionAt(int position):
|
||||||
|
This function returns the character position at x pixels from the left of the TextArea.
|
||||||
|
Position 0 is before the first character, position 1 is after the first character but before the second,
|
||||||
|
and so on until position text.length, which is after all characters.
|
||||||
|
This means that for all x values before the first character this function returns 0,
|
||||||
|
and for all x values after the last character this function returns text.length.
|
||||||
|
|
||||||
|
* rectangle positionToRectangle(position):
|
||||||
|
Returns the rectangle at the given position in the text.
|
||||||
|
The x, y, and height properties correspond to the cursor that would describe that position.
|
||||||
|
|
||||||
alias activeFocus:
|
|
||||||
This property indicates whether the item has active focus.
|
|
||||||
An item with active focus will receive keyboard input.
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
import QtQuick 1.1
|
import QtQuick 1.1
|
||||||
|
Loading…
Reference in New Issue
Block a user