Changeset View
Changeset View
Standalone View
Standalone View
effects/magnifier/magnifier.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 43 | MagnifierEffect::MagnifierEffect() | |||
---|---|---|---|---|---|
45 | , target_zoom(1) | 45 | , target_zoom(1) | ||
46 | , polling(false) | 46 | , polling(false) | ||
47 | , m_texture(0) | 47 | , m_texture(0) | ||
48 | , m_fbo(0) | 48 | , m_fbo(0) | ||
49 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | 49 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | ||
50 | , m_pixmap(XCB_PIXMAP_NONE) | 50 | , m_pixmap(XCB_PIXMAP_NONE) | ||
51 | #endif | 51 | #endif | ||
52 | { | 52 | { | ||
53 | initConfig<MagnifierConfig>(); | ||||
53 | QAction* a; | 54 | QAction* a; | ||
54 | a = KStandardAction::zoomIn(this, SLOT(zoomIn()), this); | 55 | a = KStandardAction::zoomIn(this, SLOT(zoomIn()), this); | ||
55 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | 56 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | ||
56 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | 57 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | ||
57 | effects->registerGlobalShortcut(Qt::META + Qt::Key_Equal, a); | 58 | effects->registerGlobalShortcut(Qt::META + Qt::Key_Equal, a); | ||
58 | 59 | | |||
59 | a = KStandardAction::zoomOut(this, SLOT(zoomOut()), this); | 60 | a = KStandardAction::zoomOut(this, SLOT(zoomOut()), this); | ||
60 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Minus); | 61 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Minus); | ||
▲ Show 20 Lines • Show All 280 Lines • Show Last 20 Lines |