Changeset View
Changeset View
Standalone View
Standalone View
effects/cube/cube_config.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 53 | { | |||
---|---|---|---|---|---|
79 | QAction* sphereAction = m_actionCollection->addAction(QStringLiteral("Sphere")); | 79 | QAction* sphereAction = m_actionCollection->addAction(QStringLiteral("Sphere")); | ||
80 | sphereAction->setText(i18n("Desktop Sphere")); | 80 | sphereAction->setText(i18n("Desktop Sphere")); | ||
81 | sphereAction->setProperty("isConfigurationAction", true); | 81 | sphereAction->setProperty("isConfigurationAction", true); | ||
82 | KGlobalAccel::self()->setShortcut(sphereAction, QList<QKeySequence>()); | 82 | KGlobalAccel::self()->setShortcut(sphereAction, QList<QKeySequence>()); | ||
83 | 83 | | |||
84 | m_ui->editor->addCollection(m_actionCollection); | 84 | m_ui->editor->addCollection(m_actionCollection); | ||
85 | 85 | | |||
86 | capsSelectionChanged(); | 86 | capsSelectionChanged(); | ||
87 | connect(m_ui->kcfg_Caps, SIGNAL(stateChanged(int)), this, SLOT(capsSelectionChanged())); | 87 | connect(m_ui->kcfg_Caps, &QCheckBox::stateChanged, this, &CubeEffectConfig::capsSelectionChanged); | ||
88 | m_ui->kcfg_Wallpaper->setFilter(QStringLiteral("*.png *.jpeg *.jpg ")); | 88 | m_ui->kcfg_Wallpaper->setFilter(QStringLiteral("*.png *.jpeg *.jpg ")); | ||
89 | CubeConfig::instance(KWIN_CONFIG); | 89 | CubeConfig::instance(KWIN_CONFIG); | ||
90 | addConfig(CubeConfig::self(), m_ui); | 90 | addConfig(CubeConfig::self(), m_ui); | ||
91 | load(); | 91 | load(); | ||
92 | } | 92 | } | ||
93 | 93 | | |||
94 | void CubeEffectConfig::save() | 94 | void CubeEffectConfig::save() | ||
95 | { | 95 | { | ||
Show All 26 Lines |