src/gui/widgets/qtabbar.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
  1217         d->makeVisible(index);
  1217         d->makeVisible(index);
  1218         d->tabList[index].lastTab = oldIndex;
  1218         d->tabList[index].lastTab = oldIndex;
  1219         if (oldIndex >= 0 && oldIndex < count())
  1219         if (oldIndex >= 0 && oldIndex < count())
  1220             d->layoutTab(oldIndex);
  1220             d->layoutTab(oldIndex);
  1221         d->layoutTab(index);
  1221         d->layoutTab(index);
       
  1222 #ifndef QT_NO_ACCESSIBILITY
       
  1223         if (QAccessible::isActive()) {
       
  1224             QAccessible::updateAccessibility(this, index + 1, QAccessible::Focus);
       
  1225             QAccessible::updateAccessibility(this, index + 1, QAccessible::Selection);
       
  1226         }
       
  1227 #endif
  1222 #ifdef QT3_SUPPORT
  1228 #ifdef QT3_SUPPORT
  1223         emit selected(index);
  1229         emit selected(index);
  1224 #endif
  1230 #endif
  1225         emit currentChanged(index);
  1231         emit currentChanged(index);
  1226     }
  1232     }