Changeset View
Changeset View
Standalone View
Standalone View
effects/zoom/zoom.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 45 | ZoomEffect::ZoomEffect() | |||
---|---|---|---|---|---|
55 | , focusDelay(350) // in milliseconds | 55 | , focusDelay(350) // in milliseconds | ||
56 | , imageWidth(0) | 56 | , imageWidth(0) | ||
57 | , imageHeight(0) | 57 | , imageHeight(0) | ||
58 | , isMouseHidden(false) | 58 | , isMouseHidden(false) | ||
59 | , xMove(0) | 59 | , xMove(0) | ||
60 | , yMove(0) | 60 | , yMove(0) | ||
61 | , moveFactor(20.0) | 61 | , moveFactor(20.0) | ||
62 | { | 62 | { | ||
63 | initConfig<ZoomConfig>(); | ||||
63 | QAction* a = 0; | 64 | QAction* a = 0; | ||
64 | a = KStandardAction::zoomIn(this, SLOT(zoomIn()), this); | 65 | a = KStandardAction::zoomIn(this, SLOT(zoomIn()), this); | ||
65 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | 66 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | ||
66 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | 67 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | ||
67 | effects->registerGlobalShortcut(Qt::META + Qt::Key_Equal, a); | 68 | effects->registerGlobalShortcut(Qt::META + Qt::Key_Equal, a); | ||
68 | effects->registerAxisShortcut(Qt::ControlModifier | Qt::MetaModifier, PointerAxisDown, a); | 69 | effects->registerAxisShortcut(Qt::ControlModifier | Qt::MetaModifier, PointerAxisDown, a); | ||
69 | 70 | | |||
70 | a = KStandardAction::zoomOut(this, SLOT(zoomOut()), this); | 71 | a = KStandardAction::zoomOut(this, SLOT(zoomOut()), this); | ||
▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines |