From: Vincent van Ravesteijn Date: Sun, 18 Jan 2009 14:41:12 +0000 (+0000) Subject: Make the GuiCharacter dialog use the new ButtonPolicy. X-Git-Tag: 2.0.0~7380 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2afc45c53897e97b8c38516aa7bef9b8d077e74a;p=features.git Make the GuiCharacter dialog use the new ButtonPolicy. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28239 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiCharacter.cpp b/src/frontends/qt4/GuiCharacter.cpp index 08fedef4ba..d3bbc9b517 100644 --- a/src/frontends/qt4/GuiCharacter.cpp +++ b/src/frontends/qt4/GuiCharacter.cpp @@ -164,6 +164,8 @@ GuiCharacter::GuiCharacter(GuiView & lv) connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply())); connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); + connect(autoapplyCB, SIGNAL(stateChanged(int)), this, + SLOT(slotAutoApply())); connect(miscCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); connect(sizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); @@ -173,8 +175,6 @@ GuiCharacter::GuiCharacter(GuiView & lv) connect(colorCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); connect(langCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); connect(toggleallCB, SIGNAL(clicked()), this, SLOT(change_adaptor())); - connect(autoapplyCB, SIGNAL(stateChanged(int)), this, - SLOT(change_adaptor())); family = familyData(); series = seriesData(); @@ -195,10 +195,11 @@ GuiCharacter::GuiCharacter(GuiView & lv) fillCombo(colorCO, color); fillCombo(langCO, language); - bc().setPolicy(ButtonPolicy::OkApplyCancelReadOnlyPolicy); + bc().setPolicy(ButtonPolicy::OkApplyCancelAutoReadOnlyPolicy); bc().setOK(okPB); bc().setApply(applyPB); bc().setCancel(closePB); + bc().setAutoApply(autoapplyCB); bc().addReadOnly(familyCO); bc().addReadOnly(seriesCO); bc().addReadOnly(sizeCO);