mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
Update the GuiLabel view when the document is read-only. Also disable the text field.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32696 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c8dd86534d
commit
0a7705a673
@ -79,6 +79,13 @@ void GuiLabel::applyView()
|
||||
}
|
||||
|
||||
|
||||
|
||||
void GuiLabel::enableView(bool enable)
|
||||
{
|
||||
keywordED->setEnabled(enable);
|
||||
}
|
||||
|
||||
|
||||
bool GuiLabel::isValid()
|
||||
{
|
||||
return !keywordED->text().isEmpty();
|
||||
|
@ -47,6 +47,10 @@ private:
|
||||
void dispatchParams();
|
||||
///
|
||||
bool isBufferDependent() const { return true; }
|
||||
///
|
||||
void enableView(bool enable);
|
||||
///
|
||||
bool canApply() const { return true; }
|
||||
|
||||
private:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user