zoom.cpp | zoom.cpp | |||
---|---|---|---|---|
skipping to change at line 50 | skipping to change at line 50 | |||
, focusDelay(350) // in milliseconds | , focusDelay(350) // in milliseconds | |||
, isMouseHidden(false) | , isMouseHidden(false) | |||
, xMove(0) | , xMove(0) | |||
, yMove(0) | , yMove(0) | |||
, moveFactor(20.0) | , moveFactor(20.0) | |||
, lastPresentTime(std::chrono::milliseconds::zero()) | , lastPresentTime(std::chrono::milliseconds::zero()) | |||
{ | { | |||
initConfig<ZoomConfig>(); | initConfig<ZoomConfig>(); | |||
QAction *a = nullptr; | QAction *a = nullptr; | |||
a = KStandardAction::zoomIn(this, SLOT(zoomIn()), this); | a = KStandardAction::zoomIn(this, SLOT(zoomIn()), this); | |||
KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << (Q t::META | Qt::Key_Plus)); | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << (Q t::META | Qt::Key_Plus) << (Qt::META | Qt::Key_Equal)); | |||
KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << (Qt::META | Qt::Key_Plus) << (Qt::META | Qt::Key_Equal)); | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << (Qt::META | Qt::Key_Plus) << (Qt::META | Qt::Key_Equal)); | |||
effects->registerAxisShortcut(Qt::ControlModifier | Qt::MetaModifier, P ointerAxisDown, a); | effects->registerAxisShortcut(Qt::ControlModifier | Qt::MetaModifier, P ointerAxisDown, a); | |||
a = KStandardAction::zoomOut(this, SLOT(zoomOut()), this); | a = KStandardAction::zoomOut(this, SLOT(zoomOut()), this); | |||
KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << (Q t::META | Qt::Key_Minus)); | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << (Q t::META | Qt::Key_Minus)); | |||
KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << (Qt::META | Qt::Key_Minus)); | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << (Qt::META | Qt::Key_Minus)); | |||
effects->registerAxisShortcut(Qt::ControlModifier | Qt::MetaModifier, P ointerAxisUp, a); | effects->registerAxisShortcut(Qt::ControlModifier | Qt::MetaModifier, P ointerAxisUp, a); | |||
a = KStandardAction::actualSize(this, SLOT(actualSize()), this); | a = KStandardAction::actualSize(this, SLOT(actualSize()), this); | |||
KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << (Q t::META | Qt::Key_0)); | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << (Q t::META | Qt::Key_0)); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |