Changeset View
Changeset View
Standalone View
Standalone View
effects/presentwindows/presentwindows.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 64 | { | |||
---|---|---|---|---|---|
75 | connect(exposeAction, SIGNAL(triggered(bool)), this, SLOT(toggleActive())); | 75 | connect(exposeAction, SIGNAL(triggered(bool)), this, SLOT(toggleActive())); | ||
76 | QAction* exposeAllAction = new QAction(this); | 76 | QAction* exposeAllAction = new QAction(this); | ||
77 | exposeAllAction->setObjectName(QStringLiteral("ExposeAll")); | 77 | exposeAllAction->setObjectName(QStringLiteral("ExposeAll")); | ||
78 | exposeAllAction->setText(i18n("Toggle Present Windows (All desktops)")); | 78 | exposeAllAction->setText(i18n("Toggle Present Windows (All desktops)")); | ||
79 | KGlobalAccel::self()->setDefaultShortcut(exposeAllAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F10 << Qt::Key_LaunchC); | 79 | KGlobalAccel::self()->setDefaultShortcut(exposeAllAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F10 << Qt::Key_LaunchC); | ||
80 | KGlobalAccel::self()->setShortcut(exposeAllAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F10 << Qt::Key_LaunchC); | 80 | KGlobalAccel::self()->setShortcut(exposeAllAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F10 << Qt::Key_LaunchC); | ||
81 | shortcutAll = KGlobalAccel::self()->shortcut(exposeAllAction); | 81 | shortcutAll = KGlobalAccel::self()->shortcut(exposeAllAction); | ||
82 | effects->registerGlobalShortcut(Qt::CTRL + Qt::Key_F10, exposeAllAction); | 82 | effects->registerGlobalShortcut(Qt::CTRL + Qt::Key_F10, exposeAllAction); | ||
83 | effects->registerTouchpadSwipeShortcut(SwipeDirection::Down, exposeAllAction); | ||||
83 | connect(exposeAllAction, SIGNAL(triggered(bool)), this, SLOT(toggleActiveAllDesktops())); | 84 | connect(exposeAllAction, SIGNAL(triggered(bool)), this, SLOT(toggleActiveAllDesktops())); | ||
84 | QAction* exposeClassAction = new QAction(this); | 85 | QAction* exposeClassAction = new QAction(this); | ||
85 | exposeClassAction->setObjectName(QStringLiteral("ExposeClass")); | 86 | exposeClassAction->setObjectName(QStringLiteral("ExposeClass")); | ||
86 | exposeClassAction->setText(i18n("Toggle Present Windows (Window class)")); | 87 | exposeClassAction->setText(i18n("Toggle Present Windows (Window class)")); | ||
87 | KGlobalAccel::self()->setDefaultShortcut(exposeClassAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | 88 | KGlobalAccel::self()->setDefaultShortcut(exposeClassAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | ||
88 | KGlobalAccel::self()->setShortcut(exposeClassAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | 89 | KGlobalAccel::self()->setShortcut(exposeClassAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | ||
89 | effects->registerGlobalShortcut(Qt::CTRL + Qt::Key_F7, exposeClassAction); | 90 | effects->registerGlobalShortcut(Qt::CTRL + Qt::Key_F7, exposeClassAction); | ||
90 | connect(exposeClassAction, SIGNAL(triggered(bool)), this, SLOT(toggleActiveClass())); | 91 | connect(exposeClassAction, SIGNAL(triggered(bool)), this, SLOT(toggleActiveClass())); | ||
▲ Show 20 Lines • Show All 1937 Lines • Show Last 20 Lines |