X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt%2FGuiExternal.cpp;h=70239f19e22c03fe9080be60a7f405ea95b44a71;hb=29a8097c3c14aad871c7e396a59542fe47e39ea1;hp=65fb8610a1a92001dceaa2c4b7e6792cb5ca1a70;hpb=d3c335a5d524e2edeb73ae1a891fcc58ba5bfd1a;p=lyx.git diff --git a/src/frontends/qt/GuiExternal.cpp b/src/frontends/qt/GuiExternal.cpp index 65fb8610a1..70239f19e2 100644 --- a/src/frontends/qt/GuiExternal.cpp +++ b/src/frontends/qt/GuiExternal.cpp @@ -187,6 +187,8 @@ GuiExternal::GuiExternal(GuiView & lv) bc().addReadOnly(extraFormatCO); bc().addReadOnly(extraED); + // Add validated widgets to those that will be + // visually marked if invalid bc().addCheckedLineEdit(angleED, angleLA); bc().addCheckedLineEdit(displayscaleED, scaleLA); bc().addCheckedLineEdit(heightED, heightLA); @@ -197,6 +199,18 @@ GuiExternal::GuiExternal(GuiView & lv) bc().addCheckedLineEdit(ytED, rtLA); bc().addCheckedLineEdit(fileED, fileLA); + // We also mark the tabs the widgets are in + int const tabindex = tab->indexOf(sizetab); + bc().addCheckedLineEdit(angleED, tab, tabindex); + bc().addCheckedLineEdit(heightED, tab, tabindex); + bc().addCheckedLineEdit(widthED, tab, tabindex); + bc().addCheckedLineEdit(xlED, tab, tabindex); + bc().addCheckedLineEdit(ybED, tab, tabindex); + bc().addCheckedLineEdit(xrED, tab, tabindex); + bc().addCheckedLineEdit(ytED, tab, tabindex); + bc().addCheckedLineEdit(displayscaleED, tab, tab->indexOf(lyxviewtab)); + bc().addCheckedLineEdit(fileED, tab, tab->indexOf(filetab)); + external::TemplateManager::Templates::const_iterator i1, i2; i1 = external::TemplateManager::get().getTemplates().begin(); i2 = external::TemplateManager::get().getTemplates().end();