When slot[Ok|Apply|Cancel]() from GuiDialog are re-implemented, we also
need to re-implement slotButtonBox()
This commit is contained in:
Juergen Spitzmueller 2018-07-08 16:48:58 +02:00
parent 0570d16a3b
commit 4d9fa8a0d7
2 changed files with 17 additions and 0 deletions

View File

@ -138,6 +138,21 @@ void GuiCompareHistory::slotCancel()
}
void GuiCompareHistory::slotButtonBox(QAbstractButton * button)
{
switch (buttonBox->standardButton(button)) {
case QDialogButtonBox::Ok:
slotOK();
break;
case QDialogButtonBox::Cancel:
slotCancel();
break;
default:
break;
}
}
Dialog * createGuiCompareHistory(GuiView & lv) { return new GuiCompareHistory(lv); }

View File

@ -34,6 +34,8 @@ private Q_SLOTS:
///
void slotCancel();
///
void slotButtonBox(QAbstractButton *);
///
void selectRevback();
///
void selectBetweenrev();