]> git.lyx.org Git - features.git/commitdiff
Make the GuiCharacter dialog use the new ButtonPolicy.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 18 Jan 2009 14:41:12 +0000 (14:41 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 18 Jan 2009 14:41:12 +0000 (14:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28239 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiCharacter.cpp

index 08fedef4ba70eb5b81402d17f9c6ae4edef61a0d..d3bbc9b5174e3c7c05e66dc1d0aba8aa748249be 100644 (file)
@@ -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);