Changeset View
Changeset View
Standalone View
Standalone View
effects/zoom/zoom.cpp
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 62 | { | |||
---|---|---|---|---|---|
77 | a = KStandardAction::actualSize(this, SLOT(actualSize()), this); | 77 | a = KStandardAction::actualSize(this, SLOT(actualSize()), this); | ||
78 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_0); | 78 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_0); | ||
79 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_0); | 79 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_0); | ||
80 | effects->registerGlobalShortcut(Qt::META + Qt::Key_0, a); | 80 | effects->registerGlobalShortcut(Qt::META + Qt::Key_0, a); | ||
81 | 81 | | |||
82 | a = new QAction(this); | 82 | a = new QAction(this); | ||
83 | a->setObjectName(QStringLiteral("MoveZoomLeft")); | 83 | a->setObjectName(QStringLiteral("MoveZoomLeft")); | ||
84 | a->setText(i18n("Move Zoomed Area to Left")); | 84 | a->setText(i18n("Move Zoomed Area to Left")); | ||
85 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_Left); | 85 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>()); | ||
86 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_Left); | 86 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>()); | ||
87 | effects->registerGlobalShortcut(Qt::META + Qt::CTRL + Qt::Key_Left, a); | 87 | effects->registerGlobalShortcut(QKeySequence(), a); | ||
88 | connect(a, SIGNAL(triggered(bool)), this, SLOT(moveZoomLeft())); | 88 | connect(a, SIGNAL(triggered(bool)), this, SLOT(moveZoomLeft())); | ||
89 | 89 | | |||
90 | a = new QAction(this); | 90 | a = new QAction(this); | ||
91 | a->setObjectName(QStringLiteral("MoveZoomRight")); | 91 | a->setObjectName(QStringLiteral("MoveZoomRight")); | ||
92 | a->setText(i18n("Move Zoomed Area to Right")); | 92 | a->setText(i18n("Move Zoomed Area to Right")); | ||
93 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_Right); | 93 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>()); | ||
94 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_Right); | 94 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>()); | ||
95 | effects->registerGlobalShortcut(Qt::META + Qt::CTRL + Qt::Key_Right, a); | 95 | effects->registerGlobalShortcut(QKeySequence(), a); | ||
96 | connect(a, SIGNAL(triggered(bool)), this, SLOT(moveZoomRight())); | 96 | connect(a, SIGNAL(triggered(bool)), this, SLOT(moveZoomRight())); | ||
97 | 97 | | |||
98 | a = new QAction(this); | 98 | a = new QAction(this); | ||
99 | a->setObjectName(QStringLiteral("MoveZoomUp")); | 99 | a->setObjectName(QStringLiteral("MoveZoomUp")); | ||
100 | a->setText(i18n("Move Zoomed Area Upwards")); | 100 | a->setText(i18n("Move Zoomed Area Upwards")); | ||
101 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_Up); | 101 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>()); | ||
102 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_Up); | 102 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>()); | ||
103 | effects->registerGlobalShortcut(Qt::META + Qt::CTRL + Qt::Key_Up, a); | 103 | effects->registerGlobalShortcut(QKeySequence(), a); | ||
104 | connect(a, SIGNAL(triggered(bool)), this, SLOT(moveZoomUp())); | 104 | connect(a, SIGNAL(triggered(bool)), this, SLOT(moveZoomUp())); | ||
105 | 105 | | |||
106 | a = new QAction(this); | 106 | a = new QAction(this); | ||
107 | a->setObjectName(QStringLiteral("MoveZoomDown")); | 107 | a->setObjectName(QStringLiteral("MoveZoomDown")); | ||
108 | a->setText(i18n("Move Zoomed Area Downwards")); | 108 | a->setText(i18n("Move Zoomed Area Downwards")); | ||
109 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_Down); | 109 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>()); | ||
110 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_Down); | 110 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>()); | ||
111 | effects->registerGlobalShortcut(Qt::META + Qt::CTRL + Qt::Key_Down, a); | 111 | effects->registerGlobalShortcut(QKeySequence(), a); | ||
112 | connect(a, SIGNAL(triggered(bool)), this, SLOT(moveZoomDown())); | 112 | connect(a, SIGNAL(triggered(bool)), this, SLOT(moveZoomDown())); | ||
113 | 113 | | |||
114 | // TODO: these two actions don't belong into the effect. They need to be moved into KWin core | 114 | // TODO: these two actions don't belong into the effect. They need to be moved into KWin core | ||
115 | a = new QAction(this); | 115 | a = new QAction(this); | ||
116 | a->setObjectName(QStringLiteral("MoveMouseToFocus")); | 116 | a->setObjectName(QStringLiteral("MoveMouseToFocus")); | ||
117 | a->setText(i18n("Move Mouse to Focus")); | 117 | a->setText(i18n("Move Mouse to Focus")); | ||
118 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_F5); | 118 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_F5); | ||
119 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_F5); | 119 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_F5); | ||
▲ Show 20 Lines • Show All 414 Lines • Show Last 20 Lines |