Changeset View
Changeset View
Standalone View
Standalone View
effects/windowgeometry/windowgeometry_config.cpp
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
57 | QAction* a = myActionCollection->addAction(QStringLiteral("WindowGeometry")); | 57 | QAction* a = myActionCollection->addAction(QStringLiteral("WindowGeometry")); | ||
58 | a->setText(i18n("Toggle KWin composited geometry display")); | 58 | a->setText(i18n("Toggle KWin composited geometry display")); | ||
59 | a->setProperty("isConfigurationAction", true); | 59 | a->setProperty("isConfigurationAction", true); | ||
60 | 60 | | |||
61 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::SHIFT + Qt::Key_F11); | 61 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::SHIFT + Qt::Key_F11); | ||
62 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::SHIFT + Qt::Key_F11); | 62 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::CTRL + Qt::SHIFT + Qt::Key_F11); | ||
63 | myUi->shortcuts->addCollection(myActionCollection); | 63 | myUi->shortcuts->addCollection(myActionCollection); | ||
64 | 64 | | |||
65 | connect(myUi->shortcuts, SIGNAL(keyChange()), this, SLOT(changed())); | 65 | connect(myUi->shortcuts, &KShortcutsEditor::keyChange, this, qOverload<>(&WindowGeometryConfig::changed)); | ||
66 | 66 | | |||
67 | addConfig(WindowGeometryConfiguration::self(), myUi); | 67 | addConfig(WindowGeometryConfiguration::self(), myUi); | ||
68 | 68 | | |||
69 | load(); | 69 | load(); | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | WindowGeometryConfig::~WindowGeometryConfig() | 72 | WindowGeometryConfig::~WindowGeometryConfig() | ||
73 | { | 73 | { | ||
Show All 22 Lines |