mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27508 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
32f469b851
commit
0933ba6880
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user