Changeset View
Changeset View
Standalone View
Standalone View
effects/presentwindows/presentwindows.cpp
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 51 | PresentWindowsEffect::PresentWindowsEffect() | |||
---|---|---|---|---|---|
57 | , m_mode(ModeCurrentDesktop) | 57 | , m_mode(ModeCurrentDesktop) | ||
58 | , m_managerWindow(NULL) | 58 | , m_managerWindow(NULL) | ||
59 | , m_needInitialSelection(false) | 59 | , m_needInitialSelection(false) | ||
60 | , m_highlightedWindow(NULL) | 60 | , m_highlightedWindow(NULL) | ||
61 | , m_filterFrame(NULL) | 61 | , m_filterFrame(NULL) | ||
62 | , m_closeView(NULL) | 62 | , m_closeView(NULL) | ||
63 | , m_closeWindow(NULL) | 63 | , m_closeWindow(NULL) | ||
64 | { | 64 | { | ||
65 | initConfig<PresentWindowsConfig>(); | ||||
65 | m_atomDesktop = effects->announceSupportProperty("_KDE_PRESENT_WINDOWS_DESKTOP", this); | 66 | m_atomDesktop = effects->announceSupportProperty("_KDE_PRESENT_WINDOWS_DESKTOP", this); | ||
66 | m_atomWindows = effects->announceSupportProperty("_KDE_PRESENT_WINDOWS_GROUP", this); | 67 | m_atomWindows = effects->announceSupportProperty("_KDE_PRESENT_WINDOWS_GROUP", this); | ||
67 | 68 | | |||
68 | QAction* exposeAction = new QAction(this); | 69 | QAction* exposeAction = new QAction(this); | ||
69 | exposeAction->setObjectName(QStringLiteral("Expose")); | 70 | exposeAction->setObjectName(QStringLiteral("Expose")); | ||
70 | exposeAction->setText(i18n("Toggle Present Windows (Current desktop)")); | 71 | exposeAction->setText(i18n("Toggle Present Windows (Current desktop)")); | ||
71 | KGlobalAccel::self()->setDefaultShortcut(exposeAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F9); | 72 | KGlobalAccel::self()->setDefaultShortcut(exposeAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F9); | ||
72 | KGlobalAccel::self()->setShortcut(exposeAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F9); | 73 | KGlobalAccel::self()->setShortcut(exposeAction, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F9); | ||
▲ Show 20 Lines • Show All 1955 Lines • Show Last 20 Lines |