]> git.lyx.org Git - lyx.git/commitdiff
Update the GuiLabel view when the document is read-only. Also disable the text field.
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 31 Dec 2009 16:47:36 +0000 (16:47 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 31 Dec 2009 16:47:36 +0000 (16:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32696 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiLabel.cpp
src/frontends/qt4/GuiLabel.h

index 8a4a7c26fa99ba6e774c6da49ff9d64b9fa5f2a4..8c46909f9eeed3640c0d2a7df4cbd6e989ba68a5 100644 (file)
@@ -79,6 +79,13 @@ void GuiLabel::applyView()
 }
 
 
+
+void GuiLabel::enableView(bool enable)
+{
+       keywordED->setEnabled(enable);
+}
+
+
 bool GuiLabel::isValid()
 {
        return !keywordED->text().isEmpty();
index ef59bfd530c1822d144f2039d03194ef20636537..64a9a0e8a1fa1bfb3a9ab9f86df474fd0bbf4f00 100644 (file)
@@ -47,6 +47,10 @@ private:
        void dispatchParams();
        ///
        bool isBufferDependent() const { return true; }
+       ///
+       void enableView(bool enable);
+       ///
+       bool canApply() const { return true; }
 
 private:
        ///