|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Qt.TextFormat>
com.trolltech.qt.core.Qt.TextFormat
public static enum Qt.TextFormat
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.
Enum Constant Summary | |
---|---|
AutoText
The text string is interpreted as for Qt::RichText if Qt::mightBeRichText() returns true, otherwise as Qt::PlainText. |
|
LogText
A special, limited text format which is only used by QTextEdit in an optimized mode. |
|
PlainText
The text string is interpreted as a plain text string. |
|
RichText
The text string is interpreted as a rich text string using the current Q3StyleSheet::defaultSheet(). |
Method Summary | |
---|---|
static Qt.TextFormat |
resolve(int value)
|
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)
Returns the enum constant of this type with the specified name. |
static Qt.TextFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
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 |
Enum Constant Detail |
---|
public static final Qt.TextFormat PlainText
The text string is interpreted as a plain text string.
public static final Qt.TextFormat RichText
The text string is interpreted as a rich text string using the current Q3StyleSheet::defaultSheet().
public static final Qt.TextFormat AutoText
The text string is interpreted as for Qt::RichText if Qt::mightBeRichText() returns true, otherwise as Qt::PlainText.
public static final Qt.TextFormat LogText
A special, limited text format which is only used by QTextEdit in an optimized mode.
Method Detail |
---|
public static Qt.TextFormat[] values()
for (Qt.TextFormat c : Qt.TextFormat.values()) System.out.println(c);
public static Qt.TextFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int value()
QtEnumerator
value
in interface QtEnumerator
public static Qt.TextFormat resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |