Changeset View
Changeset View
Standalone View
Standalone View
effects/desktopgrid/desktopgrid.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 50 | DesktopGridEffect::DesktopGridEffect() | |||
---|---|---|---|---|---|
60 | , orientation(Qt::Horizontal) | 60 | , orientation(Qt::Horizontal) | ||
61 | , activeCell(1, 1) | 61 | , activeCell(1, 1) | ||
62 | , scale() | 62 | , scale() | ||
63 | , unscaledBorder() | 63 | , unscaledBorder() | ||
64 | , scaledSize() | 64 | , scaledSize() | ||
65 | , scaledOffset() | 65 | , scaledOffset() | ||
66 | , m_proxy(0) | 66 | , m_proxy(0) | ||
67 | { | 67 | { | ||
68 | initConfig<DesktopGridConfig>(); | ||||
68 | // Load shortcuts | 69 | // Load shortcuts | ||
69 | QAction* a = new QAction(this); | 70 | QAction* a = new QAction(this); | ||
70 | a->setObjectName(QStringLiteral("ShowDesktopGrid")); | 71 | a->setObjectName(QStringLiteral("ShowDesktopGrid")); | ||
71 | a->setText(i18n("Show Desktop Grid")); | 72 | a->setText(i18n("Show Desktop Grid")); | ||
72 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F8); | 73 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F8); | ||
73 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F8); | 74 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F8); | ||
74 | shortcut = KGlobalAccel::self()->shortcut(a); | 75 | shortcut = KGlobalAccel::self()->shortcut(a); | ||
75 | effects->registerGlobalShortcut(Qt::CTRL + Qt::Key_F8, a); | 76 | effects->registerGlobalShortcut(Qt::CTRL + Qt::Key_F8, a); | ||
▲ Show 20 Lines • Show All 1370 Lines • Show Last 20 Lines |