]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiIndex.cpp
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiIndex.cpp
index 0f25c93da72f4f3d32825e568e4d8857c8f444fd..7800bad2d456a18c48708697907b4d58d84f063a 100644 (file)
@@ -35,13 +35,13 @@ GuiIndex::GuiIndex(GuiView & lv)
 {
        setupUi(this);
 
-       connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
-       connect(cancelPB, SIGNAL(clicked()), this, SLOT(slotClose()));
+       connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
+               this, SLOT(slotButtonBox(QAbstractButton *)));
        connect(indicesCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
 
        bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy);
-       bc().setOK(okPB);
-       bc().setCancel(cancelPB);
+       bc().setOK(buttonBox->button(QDialogButtonBox::Ok));
+       bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel));
 }
 
 
@@ -79,9 +79,9 @@ void GuiIndex::applyView()
 }
 
 
-bool GuiIndex::initialiseParams(string const & data)
+bool GuiIndex::initialiseParams(string const & sdata)
 {
-       InsetIndex::string2params(data, params_);
+       InsetIndex::string2params(sdata, params_);
        return true;
 }