diff options
| author | Amandeep Singh <[email protected]> | 2012-09-22 14:27:17 +0530 |
|---|---|---|
| committer | Amandeep Singh <[email protected]> | 2012-09-22 23:47:18 +0530 |
| commit | 4196026cd8a625e8c091f149a9cef0aded416fe7 (patch) | |
| tree | 72dbc1230777001e7893f2558fbe2ff94bb1a85b /src/kitemviews/kitemlistview.cpp | |
| parent | 28239e6ca82961983f4421a2d485296ef546b05a (diff) | |
Making code confirm to policy
Diffstat (limited to 'src/kitemviews/kitemlistview.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistview.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp index 681b37b5f..580cf5bbe 100644 --- a/src/kitemviews/kitemlistview.cpp +++ b/src/kitemviews/kitemlistview.cpp @@ -55,9 +55,12 @@ namespace { } #ifndef QT_NO_ACCESSIBILITY -QAccessibleInterface* accessibleViewFactory(const QString &key, QObject *object) +QAccessibleInterface* accessibleInterfaceFactory(const QString &key, QObject *object) { Q_UNUSED(key) + if (KItemListContainer*view = qobject_cast<KItemListContainer*>(object)) { + return new KItemListContainerAccessible(view); + } if (KItemListView *view = qobject_cast<KItemListView*>(object)) { return new KItemListViewAccessible(view); } @@ -125,7 +128,7 @@ KItemListView::KItemListView(QGraphicsWidget* parent) : m_header = new KItemListHeader(this); #ifndef QT_NO_ACCESSIBILITY - QAccessible::installFactory(accessibleViewFactory); + QAccessible::installFactory(accessibleInterfaceFactory); #endif } |
