Changeset View
Changeset View
Standalone View
Standalone View
effects/lookingglass/lookingglass.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 44 | LookingGlassEffect::LookingGlassEffect() | |||
---|---|---|---|---|---|
47 | , polling(false) | 47 | , polling(false) | ||
48 | , m_texture(NULL) | 48 | , m_texture(NULL) | ||
49 | , m_fbo(NULL) | 49 | , m_fbo(NULL) | ||
50 | , m_vbo(NULL) | 50 | , m_vbo(NULL) | ||
51 | , m_shader(NULL) | 51 | , m_shader(NULL) | ||
52 | , m_enabled(false) | 52 | , m_enabled(false) | ||
53 | , m_valid(false) | 53 | , m_valid(false) | ||
54 | { | 54 | { | ||
55 | initConfig<LookingGlassConfig>(); | ||||
55 | QAction* a; | 56 | QAction* a; | ||
56 | a = KStandardAction::zoomIn(this, SLOT(zoomIn()), this); | 57 | a = KStandardAction::zoomIn(this, SLOT(zoomIn()), this); | ||
57 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | 58 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | ||
58 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | 59 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Equal); | ||
59 | effects->registerGlobalShortcut(Qt::META + Qt::Key_Equal, a); | 60 | effects->registerGlobalShortcut(Qt::META + Qt::Key_Equal, a); | ||
60 | 61 | | |||
61 | a = KStandardAction::zoomOut(this, SLOT(zoomOut()), this); | 62 | a = KStandardAction::zoomOut(this, SLOT(zoomOut()), this); | ||
62 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Minus); | 63 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Minus); | ||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |