56 #include <private/qlineedit_p.h> 66 #ifndef QT_NO_ACCESSIBILITY 75 int *startOffset,
int *endOffset,
const QString&
text);
77 int *startOffset,
int *endOffset,
const QString&
text);
79 int *startOffset,
int *endOffset,
const QString&
text);
100 if (
button()->isCheckable())
118 if (text ==
Name)
switch (action) {
147 if (child || !
widget()->isEnabled())
156 if (pb && pb->
menu())
174 #ifndef QT_NO_SHORTCUT 229 switch (actionIndex) {
238 switch (actionIndex) {
240 if (
button()->isCheckable()) {
251 switch (actionIndex) {
253 if (
button()->isCheckable()) {
254 if (
button()->isChecked()) {
268 switch (actionIndex) {
270 if (
button()->isCheckable()) {
271 if (
button()->isChecked()) {
272 return tr(
"Uncheck");
285 switch (actionIndex) {
286 #ifndef QT_NO_SHORTCUT 295 #ifndef QT_NO_TOOLBUTTON 472 if (text ==
Name)
switch(child) {
499 if (!
widget()->isEnabled())
512 #endif // QT_NO_TOOLBUTTON 541 #ifndef QT_NO_PICTURE 549 #ifndef QT_NO_PROGRESSBAR 550 }
else if (qobject_cast<QProgressBar*>(
object())) {
553 }
else if (qobject_cast<QStatusBar*>(
object())) {
567 if (qobject_cast<QLabel*>(
object())) {
576 #ifndef QT_NO_LCDNUMBER 577 }
else if (qobject_cast<QLCDNumber*>(
object())) {
584 }
else if (qobject_cast<QStatusBar*>(
object())) {
590 #ifndef QT_NO_PROGRESSBAR 591 if (qobject_cast<QProgressBar*>(
object()))
605 int otherChild)
const 608 if (child || otherChild)
614 #ifndef QT_NO_SHORTCUT 615 if (o == label->
buddy())
630 #ifndef QT_NO_SHORTCUT 632 targetObject = label->
buddy();
645 #ifndef QT_NO_TOOLTIP 661 return pixmap->
size();
684 #ifndef QT_NO_GROUPBOX 744 if (!child && !otherChild && !groupbox->
title().
isEmpty()) {
760 if ((actionIndex == 0) &&
groupBox()->isCheckable()) {
767 if ((actionIndex == 0) && (
groupBox()->isCheckable())) {
775 if (actionIndex || !
groupBox()->isCheckable())
783 if (actionIndex || !
groupBox()->isCheckable())
797 #ifndef QT_NO_LINEEDIT 846 if (t !=
Value || control) {
912 *startOffset = *endOffset = offset;
925 int x =
lineEdit()->d_func()->control->cursorToX(offset);
929 int w = fm.
width(ch);
955 *startOffset = *endOffset = 0;
956 if (selectionIndex != 0)
965 if (startOffset > endOffset)
975 int *startOffset,
int *endOffset)
978 *startOffset = *endOffset = -1;
985 int *startOffset,
int *endOffset)
988 *startOffset = *endOffset = -1;
995 int *startOffset,
int *endOffset)
998 *startOffset = *endOffset = -1;
1006 if (selectionIndex != 0)
1019 if (selectionIndex != 0)
1036 #endif // QT_NO_LINEEDIT 1038 #ifndef QT_NO_PROGRESSBAR 1066 #endif // QT_NO_ACCESSIBILITY
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QVariant class acts like a union for the most common Qt data types.
QAccessibleGroupBox(QWidget *w)
T qobject_cast(QObject *object)
int width(const QString &, int len=-1) const
Returns the width in pixels of the first len characters of text.
int selectionStart() const
selectionStart() returns the index of the first selected character in the line edit or -1 if no text ...
The QAccessible2 namespace defines constants relating to IAccessible2-based interfaces.
int cursorPositionAt(const QPoint &pos)
Returns the cursor position under the point pos.
void scrollToSubstring(int startIndex, int endIndex)
The QFontMetrics class provides font metrics information.
QString description(int actionIndex)
#define QT_END_NAMESPACE
This macro expands to.
void setChecked(bool checked)
QPointer< QWidget > widget
QSize size() const
Returns the size of the pixmap.
QString imageDescription()
Qt::TextFormat textFormat
the label's text format
int offsetAtPoint(const QPoint &point, QAccessible2::CoordinateType coordType)
virtual QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *widget=0) const =0
Returns the rectangle containing the specified subControl of the given complex control (with the styl...
QObject * object() const
Returns a pointer to the QObject this interface implementation provides information for...
Role
This enum defines the role of an accessible object.
Relation relationTo(int child, const QAccessibleInterface *other, int otherChild) const
Returns the relationship between this object's \a child and the \a other object's \a otherChild...
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
QLineEdit * lineEdit() const
Returns the line edit.
void setSelection(int selectionIndex, int startOffset, int endOffset)
Q_GUI_EXPORT bool mightBeRichText(const QString &)
Returns true if the string text is likely to be rich text; otherwise returns false.
Role role(int child) const
Reimplemented Function
void deselect()
Deselects any selected text.
void init(const QWidget *w)
Use initFrom(widget) instead.
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
void moveTo(int x, int t)
Moves the rectangle, leaving the top-left corner at the given position (x, y).
The QProgressBar widget provides a horizontal or vertical progress bar.
The QString class provides a Unicode character string.
virtual QObject * object() const =0
Returns a pointer to the QObject this interface implementation provides information for...
The QObject class is the base class of all Qt objects.
QString attributes(int offset, int *startOffset, int *endOffset)
QString toPlainText() const
Returns the plain text contained in the document.
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
void setText(Text t, int child, const QString &text)
Sets the text property t of the object, or of the object's child if child is not 0, to text.
QString name(int actionIndex)
The QStatusBar class provides a horizontal bar suitable for presenting status information.
int toInt(bool *ok=0) const
Returns the variant as an int if the variant has type() Int , Bool , ByteArray , Char ...
Relation relationTo(int child, const QAccessibleInterface *other, int otherChild) const
Reimplemented Function
QWidget * buddy() const
Returns this label's buddy, or 0 if no buddy is currently set.
void removeSelection(int selectionIndex)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QBool contains(const T &t) const
Returns true if the list contains an occurrence of value; otherwise returns false.
static bool isEmpty(const char *str)
void addSelection(int startOffset, int endOffset)
int navigate(RelationFlag rel, int entry, QAccessibleInterface **target) const
Navigates from this object to an object that has a relationship relation to this object, and returns the respective object in target.
QString localizedName(int actionIndex)
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
void setCursorPosition(int position)
RelationFlag
This enum type defines bit flags that can be combined to indicate the relationship between two access...
QString text
the line edit's text
void doAction(int actionIndex)
int digitCount
the current number of digits displayed
Method
This enum describes the possible types of methods that can be invoked on an accessible object...
void setSelection(int, int)
Selects text from position start and for length characters.
The QStringList class provides a list of strings.
The QAccessibleDisplay class implements the QAccessibleInterface for widgets that display information...
int maximum
the progress bar's maximum value
QString text(Text t, int child) const
Reimplemented Function
const QPicture * picture() const
Returns the label's picture or 0 if the label doesn't have a picture.
The QGroupBox widget provides a group box frame with a title.
QString text(Text t, int child) const
Reimplemented Function
QAccessibleLineEdit(QWidget *o, const QString &name=QString())
Constructs a QAccessibleLineEdit object for w.
QString toString(SequenceFormat format=PortableText) const
Return a string representation of the key sequence, based on format.
void setHtml(const QString &html)
Replaces the entire contents of the document with the given HTML-formatted text in the html string...
T value(int i) const
Returns the value at index position i in the list.
The State element defines configurations of objects and properties.
QGroupBox * groupBox() const
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
QAccessibleProgressBar(QWidget *o)
QString textBeforeOffset(int offset, QAccessible2::BoundaryType boundaryType, int *startOffset, int *endOffset)
The QAccessibleSimpleEditableTextInterface class is a convenience class for text-based widgets...
void moveTopLeft(const QPoint &p)
Moves the rectangle, leaving the top-left corner at the given position.
int intValue
the displayed value rounded to the nearest integer
QAccessibleDisplay(QWidget *w, Role role=StaticText)
Constructs a QAccessibleDisplay object for w.
QProgressBar * progressBar() const
QMovie * movie() const
Returns a pointer to the label's movie, or 0 if no movie has been set.
static QAccessibleInterface * queryAccessibleInterface(QObject *)
If a QAccessibleInterface implementation exists for the given object, this function returns a pointer...
EchoMode echoMode
the line edit's echo mode
void setText(const QString &)
void selection(int selectionIndex, int *startOffset, int *endOffset)
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
QString selectedText
the selected text
Qt::CheckState checkState() const
Returns the check box's check state.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
bool hasSelectedText
whether there is any text selected
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
QRect imagePosition(QAccessible2::CoordinateType coordType)
State state(int child) const
Returns the current state of the object, or of the object's child if child is not 0...
int x() const
Returns the x-coordinate of the rectangle's left edge.
#define st(var, type, card)
The QPoint class defines a point in the plane using integer precision.
double value
the displayed value
QString textAtOffset(int offset, QAccessible2::BoundaryType boundaryType, int *startOffset, int *endOffset)
The QRect class defines a rectangle in the plane using integer precision.
The QLabel widget provides a text or image display.
const QObjectList & children() const
Returns a list of child objects.
QPixmap pixmap
the label's pixmap
int value
the progress bar's current value
T qvariant_cast(const QVariant &)
The QLCDNumber widget displays a number with LCD-like digits.
Role role(int child) const
Returns the role of the object, or of the object's child if child is not 0.
The QLineEdit widget is a one-line text editor.
The Animation element is the base of all QML animations.
The QPixmap class is an off-screen image representation that can be used as a paint device...
QString title
the group box title text
QVariant invokeMethodEx(QAccessible::Method method, int child, const QVariantList ¶ms)
The QTextDocument class holds formatted text that can be viewed and edited using a QTextEdit...
QString textAfterOffset(int offset, QAccessible2::BoundaryType boundaryType, int *startOffset, int *endOffset)
void setText(Text t, int control, const QString &text)
Reimplemented Function
The QSize class defines the size of a two-dimensional object using integer point precision.
QString text(Text t, int child) const
Returns the value of the text property t of the object, or of the object's child if child is not 0...
void setCursorPosition(int)
int minimum
the progress bar's minimum value
QString text
the label's text
Text
This enum specifies string information that an accessible object returns.
int height() const
Returns the height of the font.
QStringList keyBindings(int actionIndex)
The QCheckBox widget provides a checkbox with a text label.
Q_CORE_EXPORT QTextStream & left(QTextStream &s)
int navigate(RelationFlag, int entry, QAccessibleInterface **target) const
Reimplemented Function
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QRect characterRect(int offset, QAccessible2::CoordinateType coordType)
int cursorPosition
the current cursor position for this line edit
State state(int child) const
Reimplemented Function
void getTextMargins(int *left, int *top, int *right, int *bottom) const
Returns the widget's text margins for left, top, right, and bottom.
The Text item allows you to add formatted text to a scene.
QPoint topLeft() const
Returns the position of the rectangle's top-left corner.