mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 08:44:01 +00:00
cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19585 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
da48080cc7
commit
4d8c291cd0
@ -717,25 +717,25 @@ void GuiView::moveEvent(QMoveEvent *)
|
|||||||
|
|
||||||
bool GuiView::event(QEvent * e)
|
bool GuiView::event(QEvent * e)
|
||||||
{
|
{
|
||||||
// Useful debug code:
|
|
||||||
/*
|
|
||||||
switch (e->type())
|
switch (e->type())
|
||||||
{
|
{
|
||||||
case QEvent::WindowActivate:
|
// Useful debug code:
|
||||||
case QEvent::ActivationChange:
|
//case QEvent::WindowActivate:
|
||||||
case QEvent::WindowDeactivate:
|
//case QEvent::ActivationChange:
|
||||||
case QEvent::Paint:
|
//case QEvent::WindowDeactivate:
|
||||||
case QEvent::Enter:
|
//case QEvent::Paint:
|
||||||
case QEvent::Leave:
|
//case QEvent::Enter:
|
||||||
case QEvent::HoverEnter:
|
//case QEvent::Leave:
|
||||||
case QEvent::HoverLeave:
|
//case QEvent::HoverEnter:
|
||||||
case QEvent::HoverMove:
|
//case QEvent::HoverLeave:
|
||||||
case QEvent::StatusTip:
|
//case QEvent::HoverMove:
|
||||||
break;
|
//case QEvent::StatusTip:
|
||||||
default:
|
//case QEvent::DragEnter:
|
||||||
*/
|
//case QEvent::DragLeave:
|
||||||
|
//case QEvent::Drop:
|
||||||
|
// break;
|
||||||
|
|
||||||
if (e->type() == QEvent::ShortcutOverride) {
|
case QEvent::ShortcutOverride: {
|
||||||
QKeyEvent * ke = static_cast<QKeyEvent*>(e);
|
QKeyEvent * ke = static_cast<QKeyEvent*>(e);
|
||||||
if (ke->key() == Qt::Key_Tab || ke->key() == Qt::Key_Backtab) {
|
if (ke->key() == Qt::Key_Tab || ke->key() == Qt::Key_Backtab) {
|
||||||
boost::shared_ptr<QKeySymbol> sym(new QKeySymbol);
|
boost::shared_ptr<QKeySymbol> sym(new QKeySymbol);
|
||||||
@ -746,9 +746,9 @@ bool GuiView::event(QEvent * e)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//} for the debug switch above.
|
default:
|
||||||
|
return QMainWindow::event(e);
|
||||||
return QMainWindow::event(e);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user