cosmetics.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27508 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-11-15 22:58:19 +00:00
parent 32f469b851
commit 0933ba6880
2 changed files with 6 additions and 9 deletions

View File

@ -307,7 +307,7 @@ void GuiWorkArea::init()
// Must be set when creating custom text editing widgets.
setAttribute(Qt::WA_InputMethodEnabled, true);
dialogMode_ = false;
dialog_mode_ = false;
}
@ -872,8 +872,8 @@ void GuiWorkArea::generateSyntheticMouseEvent()
void GuiWorkArea::keyPressEvent(QKeyEvent * ev)
{
// Do not process here some keys if dialogMode_ is set
if (dialogMode_
// Do not process here some keys if dialog_mode_ is set
if (dialog_mode_
&& (ev->modifiers() == Qt::NoModifier
|| ev->modifiers() == Qt::ShiftModifier)
&& (ev->key() == Qt::Key_Escape

View File

@ -136,15 +136,12 @@ public:
///
void resizeBufferView();
bool isInDialog() {
return dialogMode_;
}
bool inDialogMode() { return dialog_mode_; }
void setDialogMode(bool mode) { dialog_mode_ = mode; }
///
GuiCompleter & completer() { return *completer_; }
/// Return true if dialogMode is set
bool& dialogMode() { return dialogMode_; }
/// Return the GuiView this workArea belongs to
GuiView const & view() const { return *lyx_view_; }
@ -263,7 +260,7 @@ private:
/// Special mode in which Esc and Enter (with or without Shift)
/// are ignored
bool dialogMode_;
bool dialog_mode_;
}; // GuiWorkArea