void OptionsWidget::showApplyToDialog() { ApplyDialog* dialog = new ApplyDialog( this, m_pageId, m_pageSelectionAccessor ); dialog->setAttribute(Qt::WA_DeleteOnClose); connect( dialog, SIGNAL(applySelection(std::set<PageId> const&)), this, SLOT(applySelection(std::set<PageId> const&)) ); dialog->show(); }
void OptionsWidget::showApplyAlignmentDialog() { ApplyDialog* dialog = new ApplyDialog( this, m_pageId, m_pageSelectionAccessor ); dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->setWindowTitle(tr("Apply Alignment")); connect( dialog, SIGNAL(accepted(std::set<PageId> const&)), this, SLOT(applyAlignment(std::set<PageId> const&)) ); dialog->show(); }