Esempio n. 1
0
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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();
}
Esempio n. 2
0
void MetaWindow::displayAboutWidget(){
  AboutWidget *about = new AboutWidget();
  about->show();
}