Changeset View
Changeset View
Standalone View
Standalone View
effects/invert/invert.cpp
Show All 31 Lines | |||||
32 | #include <QMatrix4x4> | 32 | #include <QMatrix4x4> | ||
33 | 33 | | |||
34 | namespace KWin | 34 | namespace KWin | ||
35 | { | 35 | { | ||
36 | 36 | | |||
37 | InvertEffect::InvertEffect() | 37 | InvertEffect::InvertEffect() | ||
38 | : m_inited(false), | 38 | : m_inited(false), | ||
39 | m_valid(true), | 39 | m_valid(true), | ||
40 | m_shader(NULL), | 40 | m_shader(nullptr), | ||
41 | m_allWindows(false) | 41 | m_allWindows(false) | ||
42 | { | 42 | { | ||
43 | QAction* a = new QAction(this); | 43 | QAction* a = new QAction(this); | ||
44 | a->setObjectName(QStringLiteral("Invert")); | 44 | a->setObjectName(QStringLiteral("Invert")); | ||
45 | a->setText(i18n("Toggle Invert Effect")); | 45 | a->setText(i18n("Toggle Invert Effect")); | ||
46 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::META + Qt::Key_I); | 46 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::META + Qt::Key_I); | ||
47 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::META + Qt::Key_I); | 47 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::META + Qt::Key_I); | ||
48 | effects->registerGlobalShortcut(Qt::CTRL + Qt::META + Qt::Key_I, a); | 48 | effects->registerGlobalShortcut(Qt::CTRL + Qt::META + Qt::Key_I, a); | ||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |