int QWizardContainer::currentIndex() const { const IdList idList = m_wizard->pageIds(); const int currentId = m_wizard->currentId(); const int rc = idList.empty() ? -1 : idList.indexOf(currentId); return rc; }