void UIVMInformationDialog::prepareTabWidget() { /* Create tab-widget: */ m_pTabWidget = new QITabWidget; AssertPtrReturnVoid(m_pTabWidget); { /* Create tabs: */ /* Create Configuration details tab: */ UIGInformation *pInformationWidget = new UIGInformation(this); QList<UIVMItem*> items; items << new UIVMItem(gpMachine->uisession()->machine()); pInformationWidget->setItems(items); m_tabs.insert(0, pInformationWidget); m_pTabWidget->addTab(m_tabs.value(0), QString()); for (int iTabIndex = 1; iTabIndex < 2; ++iTabIndex) prepareTab(iTabIndex); /* Configure tab-widget: */ m_pTabWidget->setTabIcon(0, UIIconPool::iconSet(":/session_info_details_16px.png")); m_pTabWidget->setTabIcon(1, UIIconPool::iconSet(":/session_info_runtime_16px.png")); m_pTabWidget->setCurrentIndex(1); /* Add tab-widget into main-layout: */ centralWidget()->layout()->addWidget(m_pTabWidget); } }
Score::Score():score(0.0),tabPos(0),stuck(false),top5(false),position(0.0,0.0) { prepareTab(); }