#include <q3complexwidgets.h>
Inheritance diagram for Q3AccessibleHeader:


Definition at line 32 of file q3complexwidgets.h.
Public Member Functions | |
| Q3AccessibleHeader (QWidget *w) | |
| int | childCount () const |
| QRect | rect (int child) const |
| QString | text (Text t, int child) const |
| Role | role (int child) const |
| State | state (int child) const |
Protected Member Functions | |
| Q3Header * | header () const |
| Q3AccessibleHeader::Q3AccessibleHeader | ( | QWidget * | w | ) | [explicit] |
Definition at line 31 of file q3complexwidgets.cpp.
References QAccessibleWidget::addControllingSignal(), and header().
00032 : QAccessibleWidget(w) 00033 { 00034 Q_ASSERT(header()); 00035 addControllingSignal("clicked(int)"); 00036 }
Here is the call graph for this function:

| int Q3AccessibleHeader::childCount | ( | ) | const [virtual] |
Reimplemented from QAccessibleWidget.
Definition at line 53 of file q3complexwidgets.cpp.
References Q3Header::count(), and header().
Referenced by text().
Here is the call graph for this function:

| QRect Q3AccessibleHeader::rect | ( | int | child | ) | const [virtual] |
Reimplemented from QAccessibleWidget.
Definition at line 45 of file q3complexwidgets.cpp.
References header(), QRect::height(), QWidget::mapToGlobal(), Q3Header::sectionRect(), QRect::width(), QRect::x(), QPoint::x(), QRect::y(), and QPoint::y().
00046 { 00047 QPoint zero = header()->mapToGlobal(QPoint(0, 0)); 00048 QRect sect = header()->sectionRect(child - 1); 00049 return QRect(sect.x() + zero.x(), sect.y() + zero.y(), sect.width(), sect.height()); 00050 }
Here is the call graph for this function:

Reimplemented from QAccessibleWidget.
Definition at line 59 of file q3complexwidgets.cpp.
References QEvent::AccessibilityDescription, QEvent::AccessibilityHelp, childCount(), QAccessible::Description, header(), QAccessible::Help, QString::isEmpty(), Q3Header::label(), QAccessible::Name, QCoreApplication::sendEvent(), QAccessibleWidget::text(), QAccessibleEvent::value(), and QAccessibleWidget::widget().
00060 { 00061 QString str; 00062 00063 if (child <= childCount()) { 00064 switch (t) { 00065 case Name: 00066 str = header()->label(child - 1); 00067 break; 00068 case Description: { 00069 QAccessibleEvent event(QEvent::AccessibilityDescription, child); 00070 if (QApplication::sendEvent(widget(), &event)) 00071 str = event.value(); 00072 break; } 00073 case Help: { 00074 QAccessibleEvent event(QEvent::AccessibilityHelp, child); 00075 if (QApplication::sendEvent(widget(), &event)) 00076 str = event.value(); 00077 break; } 00078 default: 00079 break; 00080 } 00081 } 00082 if (str.isEmpty()) 00083 str = QAccessibleWidget::text(t, child);; 00084 return str; 00085 }
Here is the call graph for this function:

| QAccessible::Role Q3AccessibleHeader::role | ( | int | child | ) | const [virtual] |
Reimplemented from QAccessibleWidget.
Definition at line 88 of file q3complexwidgets.cpp.
References QAccessible::ColumnHeader, header(), Qt::Horizontal, and QAccessible::RowHeader.
00089 { 00090 return (header()->orientation() == Qt::Horizontal) ? ColumnHeader : RowHeader; 00091 }
Here is the call graph for this function:

| QAccessible::State Q3AccessibleHeader::state | ( | int | child | ) | const [virtual] |
Reimplemented from QAccessibleWidget.
Definition at line 94 of file q3complexwidgets.cpp.
References header(), QAccessible::Movable, QAccessible::Selectable, QAccessible::Selected, QAccessible::Sizeable, QAccessibleWidget::state(), and QAccessible::Unavailable.
00095 { 00096 State state = QAccessibleWidget::state(child); 00097 00098 int section = child ? child - 1 : -1; 00099 if (!header()->isClickEnabled(section)) 00100 state |= Unavailable; 00101 else 00102 state |= Selectable; 00103 if (child && section == header()->sortIndicatorSection()) 00104 state |= Selected; 00105 if (header()->isResizeEnabled(section)) 00106 state |= Sizeable; 00107 if (child && header()->isMovingEnabled()) 00108 state |= Movable; 00109 return state; 00110 }
Here is the call graph for this function:

| Q3Header * Q3AccessibleHeader::header | ( | ) | const [protected] |
Returns the Q3Header.
Definition at line 39 of file q3complexwidgets.cpp.
References QAccessibleObject::object().
Referenced by childCount(), Q3AccessibleHeader(), rect(), role(), state(), and text().
00040 { 00041 return qobject_cast<Q3Header*>(object()); 00042 }
Here is the call graph for this function:

1.5.1