magnifier.cpp | magnifier.cpp | |||
---|---|---|---|---|
skipping to change at line 39 | skipping to change at line 39 | |||
: m_zoom(1) | : m_zoom(1) | |||
, m_targetZoom(1) | , m_targetZoom(1) | |||
, m_polling(false) | , m_polling(false) | |||
, m_lastPresentTime(std::chrono::milliseconds::zero()) | , m_lastPresentTime(std::chrono::milliseconds::zero()) | |||
, m_texture(nullptr) | , m_texture(nullptr) | |||
, m_fbo(nullptr) | , m_fbo(nullptr) | |||
{ | { | |||
initConfig<MagnifierConfig>(); | initConfig<MagnifierConfig>(); | |||
QAction *a; | QAction *a; | |||
a = KStandardAction::zoomIn(this, &MagnifierEffect::zoomIn, this); | a = KStandardAction::zoomIn(this, &MagnifierEffect::zoomIn, this); | |||
KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << (Q | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << (Q | |||
t::META | Qt::Key_Equal)); | t::META | Qt::Key_Plus) << (Qt::META | Qt::Key_Equal)); | |||
KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << (Qt::META | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << (Qt::META | |||
| Qt::Key_Equal)); | | Qt::Key_Plus) << (Qt::META | Qt::Key_Equal)); | |||
a = KStandardAction::zoomOut(this, &MagnifierEffect::zoomOut, this); | a = KStandardAction::zoomOut(this, &MagnifierEffect::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)); | |||
a = KStandardAction::actualSize(this, &MagnifierEffect::toggle, this); | a = KStandardAction::actualSize(this, &MagnifierEffect::toggle, 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)); | |||
KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << (Qt::META | Qt::Key_0)); | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << (Qt::META | Qt::Key_0)); | |||
connect(effects, &EffectsHandler::mouseChanged, this, &MagnifierEffect: :slotMouseChanged); | connect(effects, &EffectsHandler::mouseChanged, this, &MagnifierEffect: :slotMouseChanged); | |||
End of changes. 1 change blocks. | ||||
4 lines changed or deleted | 4 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/ |