mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Amend 0570d16a3b
When slot[Ok|Apply|Cancel]() from GuiDialog are re-implemented, we also need to re-implement slotButtonBox()
This commit is contained in:
parent
0570d16a3b
commit
4d9fa8a0d7
@ -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); }
|
||||
|
||||
|
||||
|
@ -34,6 +34,8 @@ private Q_SLOTS:
|
||||
///
|
||||
void slotCancel();
|
||||
///
|
||||
void slotButtonBox(QAbstractButton *);
|
||||
///
|
||||
void selectRevback();
|
||||
///
|
||||
void selectBetweenrev();
|
||||
|
Loading…
Reference in New Issue
Block a user