]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiERT.cpp
Use QFontMetrics information for underlines (and friends) width and position
[lyx.git] / src / frontends / qt4 / GuiERT.cpp
index 004290b1c9f9f0ac496a099f9554cdd126196b45..8fc92e22505ccbf4db88df349cb7fe8e3eca0846 100644 (file)
@@ -19,8 +19,6 @@
 
 #include "insets/InsetERT.h"
 
-#include "FuncRequest.h"
-
 #include "support/gettext.h"
 
 #include <QRadioButton>
@@ -60,6 +58,14 @@ void GuiERT::paramsToDialog(Inset const * inset)
        }
 }
 
+
+bool GuiERT::checkWidgets(bool readonly) const
+{
+       ertBG->setEnabled(!readonly);
+       return InsetParamsWidget::checkWidgets();
+}
+
+
 } // namespace frontend
 } // namespace lyx