Changeset View
Changeset View
Standalone View
Standalone View
effects/lookingglass/lookingglass.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 54 | { | |||
---|---|---|---|---|---|
64 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Minus); | 64 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Minus); | ||
65 | effects->registerGlobalShortcut(Qt::META + Qt::Key_Minus, a); | 65 | effects->registerGlobalShortcut(Qt::META + Qt::Key_Minus, a); | ||
66 | 66 | | |||
67 | a = KStandardAction::actualSize(this, SLOT(toggle()), this); | 67 | a = KStandardAction::actualSize(this, SLOT(toggle()), this); | ||
68 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_0); | 68 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_0); | ||
69 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_0); | 69 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_0); | ||
70 | effects->registerGlobalShortcut(Qt::META + Qt::Key_0, a); | 70 | effects->registerGlobalShortcut(Qt::META + Qt::Key_0, a); | ||
71 | 71 | | |||
72 | connect(effects, SIGNAL(mouseChanged(QPoint,QPoint,Qt::MouseButtons,Qt::MouseButtons,Qt::KeyboardModifiers,Qt::KeyboardModifiers)), | 72 | connect(effects, &EffectsHandler::mouseChanged, this, &LookingGlassEffect::slotMouseChanged); | ||
73 | this, SLOT(slotMouseChanged(QPoint,QPoint,Qt::MouseButtons,Qt::MouseButtons,Qt::KeyboardModifiers,Qt::KeyboardModifiers))); | 73 | | ||
74 | reconfigure(ReconfigureAll); | 74 | reconfigure(ReconfigureAll); | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | LookingGlassEffect::~LookingGlassEffect() | 77 | LookingGlassEffect::~LookingGlassEffect() | ||
78 | { | 78 | { | ||
79 | delete m_texture; | 79 | delete m_texture; | ||
80 | delete m_fbo; | 80 | delete m_fbo; | ||
81 | delete m_shader; | 81 | delete m_shader; | ||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |