Changeset View
Changeset View
Standalone View
Standalone View
effects/thumbnailaside/thumbnailaside.cpp
Show All 26 Lines | |||||
27 | #include <KGlobalAccel> | 27 | #include <KGlobalAccel> | ||
28 | #include <KLocalizedString> | 28 | #include <KLocalizedString> | ||
29 | 29 | | |||
30 | namespace KWin | 30 | namespace KWin | ||
31 | { | 31 | { | ||
32 | 32 | | |||
33 | ThumbnailAsideEffect::ThumbnailAsideEffect() | 33 | ThumbnailAsideEffect::ThumbnailAsideEffect() | ||
34 | { | 34 | { | ||
35 | initConfig<ThumbnailAsideConfig>(); | ||||
35 | QAction* a = new QAction(this); | 36 | QAction* a = new QAction(this); | ||
36 | a->setObjectName(QStringLiteral("ToggleCurrentThumbnail")); | 37 | a->setObjectName(QStringLiteral("ToggleCurrentThumbnail")); | ||
37 | a->setText(i18n("Toggle Thumbnail for Current Window")); | 38 | a->setText(i18n("Toggle Thumbnail for Current Window")); | ||
38 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_T); | 39 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_T); | ||
39 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_T); | 40 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::CTRL + Qt::Key_T); | ||
40 | effects->registerGlobalShortcut(Qt::META + Qt::CTRL + Qt::Key_T, a); | 41 | effects->registerGlobalShortcut(Qt::META + Qt::CTRL + Qt::Key_T, a); | ||
41 | connect(a, SIGNAL(triggered(bool)), this, SLOT(toggleCurrentThumbnail())); | 42 | connect(a, SIGNAL(triggered(bool)), this, SLOT(toggleCurrentThumbnail())); | ||
42 | 43 | | |||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |