/** * @brief Initialize. */ void BePreferencesDlg::initDialog() { createViews(); moveToCenterOfScreen(); readyToShow(); }
void MainWindow::optionsActionClicked() { OptionsDialog options(this); moveToCenterOfScreen(&options); connect(&options, SIGNAL(fontChanged()), &poolWindow_, SIGNAL(fontChanged())); connect(&options, SIGNAL(fontChanged()), &collectionWindow_, SIGNAL(fontChanged())); connect(&options, SIGNAL(fontChanged()), &deckWindow_, SIGNAL(fontChanged())); options.exec(); poolWindow_.updateShortcuts(); collectionWindow_.updateShortcuts(); deckWindow_.updateShortcuts(); disconnect(&options, SIGNAL(fontChanged()), &poolWindow_, SIGNAL(fontChanged())); disconnect(&options, SIGNAL(fontChanged()), &collectionWindow_, SIGNAL(fontChanged())); disconnect(&options, SIGNAL(fontChanged()), &deckWindow_, SIGNAL(fontChanged())); }
void MainWindow::aboutActionClicked() { AboutDialog about(this); moveToCenterOfScreen(&about); about.exec(); }