Changeset View
Changeset View
Standalone View
Standalone View
src/qaccessibilityclient/accessibleobject.cpp
Show First 20 Lines • Show All 507 Lines • ▼ Show 20 Line(s) | 507 | { | |||
---|---|---|---|---|---|
508 | return d->registryPrivate->state(*this) & (quint64(1) << ATSPI_STATE_SENSITIVE); | 508 | return d->registryPrivate->state(*this) & (quint64(1) << ATSPI_STATE_SENSITIVE); | ||
509 | } | 509 | } | ||
510 | 510 | | |||
511 | bool AccessibleObject::isSingleLine() const | 511 | bool AccessibleObject::isSingleLine() const | ||
512 | { | 512 | { | ||
513 | return d->registryPrivate->state(*this) & (quint64(1) << ATSPI_STATE_SINGLE_LINE); | 513 | return d->registryPrivate->state(*this) & (quint64(1) << ATSPI_STATE_SINGLE_LINE); | ||
514 | } | 514 | } | ||
515 | 515 | | |||
516 | QString AccessibleObject::stateString() const | ||||
517 | { | ||||
518 | QStringList s; | ||||
519 | if (isActive()) s << QStringLiteral("Active"); | ||||
520 | if (isCheckable()) s << QStringLiteral("Checkable"); | ||||
521 | if (isChecked()) s << QStringLiteral("Checked"); | ||||
522 | if (isEditable()) s << QStringLiteral("Editable"); | ||||
523 | if (isExpandable()) s << QStringLiteral("Expandable"); | ||||
524 | if (isExpanded()) s << QStringLiteral("Expanded"); | ||||
525 | if (isFocusable()) s << QStringLiteral("Focusable"); | ||||
526 | if (isFocused()) s << QStringLiteral("Focused"); | ||||
527 | if (isMultiLine()) s << QStringLiteral("MultiLine"); | ||||
528 | if (isSelectable()) s << QStringLiteral("Selectable"); | ||||
529 | if (isSelected()) s << QStringLiteral("Selected"); | ||||
530 | if (isSensitive()) s << QStringLiteral("Sensitive"); | ||||
531 | if (isSingleLine()) s << QStringLiteral("SingleLine"); | ||||
532 | return s.join(QLatin1String(", ")); | ||||
533 | } | ||||
534 | | ||||
516 | bool AccessibleObject::isVisible() const | 535 | bool AccessibleObject::isVisible() const | ||
517 | { | 536 | { | ||
518 | return d->registryPrivate->state(*this) & (quint64(1) << ATSPI_STATE_VISIBLE); | 537 | return d->registryPrivate->state(*this) & (quint64(1) << ATSPI_STATE_VISIBLE); | ||
519 | } | 538 | } | ||
520 | 539 | | |||
521 | bool AccessibleObject::supportsAutocompletion() const | 540 | bool AccessibleObject::supportsAutocompletion() const | ||
522 | { | 541 | { | ||
523 | return d->registryPrivate->state(*this) & (quint64(1) << ATSPI_STATE_SUPPORTS_AUTOCOMPLETION); | 542 | return d->registryPrivate->state(*this) & (quint64(1) << ATSPI_STATE_SUPPORTS_AUTOCOMPLETION); | ||
Show All 18 Lines |