// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> void Application::showAbout() { AboutWidget *w = new AboutWidget(NULL); w->setAttribute(Qt::WA_DeleteOnClose); w->setWindowModality(Qt::ApplicationModal); if ( _mainWidget ) { QPoint p = _mainWidget->geometry().center(); QRect g = w->geometry(); g.moveCenter(p); w->setGeometry(g); } w->show(); }
void MetaWindow::displayAboutWidget(){ AboutWidget *about = new AboutWidget(); about->show(); }