Changeset View
Changeset View
Standalone View
Standalone View
effects/cube/cube_config.cpp
Show All 14 Lines | |||||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "cube_config.h" | 20 | #include "cube_config.h" | ||
21 | // KConfigSkeleton | 21 | // KConfigSkeleton | ||
22 | #include "cubeconfig.h" | 22 | #include "cubeconfig.h" | ||
23 | #include <config-kwin.h> | ||||
23 | #include <kwineffects_interface.h> | 24 | #include <kwineffects_interface.h> | ||
24 | 25 | | |||
25 | #include <QAction> | 26 | #include <QAction> | ||
26 | 27 | | |||
27 | #include <kconfiggroup.h> | 28 | #include <kconfiggroup.h> | ||
28 | #include <kcolorscheme.h> | 29 | #include <kcolorscheme.h> | ||
29 | #include <KActionCollection> | 30 | #include <KActionCollection> | ||
30 | #include <KAboutData> | 31 | #include <KAboutData> | ||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 53 | { | |||
80 | sphereAction->setProperty("isConfigurationAction", true); | 81 | sphereAction->setProperty("isConfigurationAction", true); | ||
81 | KGlobalAccel::self()->setShortcut(sphereAction, QList<QKeySequence>()); | 82 | KGlobalAccel::self()->setShortcut(sphereAction, QList<QKeySequence>()); | ||
82 | 83 | | |||
83 | m_ui->editor->addCollection(m_actionCollection); | 84 | m_ui->editor->addCollection(m_actionCollection); | ||
84 | 85 | | |||
85 | capsSelectionChanged(); | 86 | capsSelectionChanged(); | ||
86 | connect(m_ui->kcfg_Caps, SIGNAL(stateChanged(int)), this, SLOT(capsSelectionChanged())); | 87 | connect(m_ui->kcfg_Caps, SIGNAL(stateChanged(int)), this, SLOT(capsSelectionChanged())); | ||
87 | m_ui->kcfg_Wallpaper->setFilter(QStringLiteral("*.png *.jpeg *.jpg ")); | 88 | m_ui->kcfg_Wallpaper->setFilter(QStringLiteral("*.png *.jpeg *.jpg ")); | ||
89 | CubeConfig::instance(KWIN_CONFIG); | ||||
88 | addConfig(CubeConfig::self(), m_ui); | 90 | addConfig(CubeConfig::self(), m_ui); | ||
89 | load(); | 91 | load(); | ||
90 | } | 92 | } | ||
91 | 93 | | |||
92 | void CubeEffectConfig::save() | 94 | void CubeEffectConfig::save() | ||
93 | { | 95 | { | ||
94 | KCModule::save(); | 96 | KCModule::save(); | ||
95 | m_ui->editor->save(); | 97 | m_ui->editor->save(); | ||
Show All 24 Lines |