]> git.lyx.org Git - lyx.git/commitdiff
Amend 0570d16a3b211
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 8 Jul 2018 14:48:58 +0000 (16:48 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 8 Jul 2018 14:48:58 +0000 (16:48 +0200)
When slot[Ok|Apply|Cancel]() from GuiDialog are re-implemented, we also
need to re-implement slotButtonBox()

src/frontends/qt4/GuiCompareHistory.cpp
src/frontends/qt4/GuiCompareHistory.h

index 0934c3daf1033acd8590254ce2fb73330cd79cf4..b4228a5f53cc97597f6064faca4ff3b0bdea9130 100644 (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); }
 
 
index 58869cca382eb653a5ac9b6e173d4cb320e86c8e..72e6982340979e5639e7619614d4778ecc73bd1f 100644 (file)
@@ -34,6 +34,8 @@ private Q_SLOTS:
        ///
        void slotCancel();
        ///
+       void slotButtonBox(QAbstractButton *);
+       ///
        void selectRevback();
        ///
        void selectBetweenrev();