Qt 4.8
Functions
qaccessiblecompat.cpp File Reference
#include "qaccessiblecompat.h"
#include "q3widgetstack.h"
#include <q3listview.h>
#include <q3textedit.h>
#include <q3iconview.h>
#include <q3listbox.h>

Go to the source code of this file.

Functions

static Q3IconViewItem * findIVItem (Q3IconView *iconView, int child)
 
static Q3ListViewItem * findLVItem (Q3ListView *listView, int child)
 

Function Documentation

◆ findIVItem()

static Q3IconViewItem* findIVItem ( Q3IconView *  iconView,
int  child 
)
static

Definition at line 327 of file qaccessiblecompat.cpp.

Referenced by QAccessibleIconView::itemRect(), QAccessibleIconView::setSelected(), QAccessibleIconView::state(), and QAccessibleIconView::text().

328 {
329  int id = 1;
330  Q3IconViewItem *item = iconView->firstItem();
331  while (item && id < child) {
332  item = item->nextItem();
333  ++id;
334  }
335 
336  return item;
337 }

◆ findLVItem()

static Q3ListViewItem* findLVItem ( Q3ListView *  listView,
int  child 
)
static

Definition at line 97 of file qaccessiblecompat.cpp.

Referenced by QAccessibleListView::itemRect(), QAccessibleListView::setSelected(), QAccessibleListView::state(), and QAccessibleListView::text().

98 {
99  int id = 1;
100  Q3ListViewItemIterator it(listView);
101  Q3ListViewItem *item = it.current();
102  while (item && id < child) {
103  ++it;
104  ++id;
105  item = it.current();
106  }
107  return item;
108 }
#define it(className, varName)