Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.core
Class Qt.TextFormat

    java.lang.Object
      java.lang.Enum
          com.trolltech.qt.core.Qt.TextFormat

All Implemented Interfaces:
  QtEnumerator, java.io.Serializable, java.lang.Comparable

Enclosing interface:
  Qt

    public static final class Qt.TextFormat

extends java.lang.Enum
implements QtEnumerator

This enum is used in widgets that can display both plain text and rich text, e.g. `QLabel`. It is used for deciding whether a text string should be interpreted as one or the other. This is normally done by passing one of the enum values to a `setTextFormat()` function.

See Also:
  Serialized Form

Field Summary
`static Qt.TextFormat` | `AutoText` The text string is interpreted as for `Qt::RichText` if Qt::mightBeRichText() returns true, otherwise as `Qt::PlainText` .
`static Qt.TextFormat` | `LogText` A special, limited text format which is only used by Q3TextEdit in an optimized mode.
`static Qt.TextFormat` | `PlainText` The text string is interpreted as a plain text string.
`static Qt.TextFormat` | `RichText` The text string is interpreted as a rich text string.

Method Summary
`static Qt.TextFormat` | `resolve(int value)` Returns the TextFormat constant with the specified `int`.
`int` | `value()` This function should return an integer value for the enum values of the enumeration that implements this interface.
`static Qt.TextFormat` | `valueOf(java.lang.String name)`
`static Qt.TextFormat[]` | `values()`

Methods inherited from class java.lang.Enum
`clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

Methods inherited from class java.lang.Object
`getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### PlainText

    public static final Qt.TextFormat PlainText

  The text string is interpreted as a plain text string.

### RichText

    public static final Qt.TextFormat RichText

  The text string is interpreted as a rich text string.

### AutoText

    public static final Qt.TextFormat AutoText

  The text string is interpreted as for `Qt::RichText` if Qt::mightBeRichText() returns true, otherwise as `Qt::PlainText` .

### LogText

    public static final Qt.TextFormat LogText

  A special, limited text format which is only used by Q3TextEdit in an optimized mode.

Method Detail

### values

    public static Qt.TextFormat[] values()

### valueOf

    public static Qt.TextFormat valueOf(java.lang.String name)

### value

    public int value()

  This function should return an integer value for the enum values of the enumeration that implements this interface.

  Specified by:
    `value` in interface `QtEnumerator`

### resolve

    public static Qt.TextFormat resolve(int value)

  Returns the TextFormat constant with the specified `int`.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD