]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPhantom.cpp
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiPhantom.cpp
index 2db43413fc6091bdd0f043083014c83fe32d47fe..973ec823c022eae8764ef09428c1ecc690ca0c3d 100644 (file)
@@ -26,16 +26,16 @@ GuiPhantom::GuiPhantom(GuiView & lv)
 {
        setupUi(this);
 
-       connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
-       connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
+       connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
+               this, SLOT(slotButtonBox(QAbstractButton *)));
 
        connect(phantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
        connect(hphantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
        connect(vphantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
 
        bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy);
-       bc().setOK(okPB);
-       bc().setCancel(closePB);
+       bc().setOK(buttonBox->button(QDialogButtonBox::Ok));
+       bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel));
 }