void MainWindow::openAboutDialog() { AboutDialog *dialog = new AboutDialog(this); dialog->show(); dialog->raise(); dialog->activateWindow(); }
bool AboutDialog::showDlg( QWidget * parent ) { AboutDialog * dlg = new AboutDialog( parent ); //dlg->setModal( true ); dlg->setWindowTitle("About CoolReader"); dlg->show(); dlg->raise(); dlg->activateWindow(); return true; }