Changeset View
Changeset View
Standalone View
Standalone View
effects/flipswitch/flipswitch_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 "flipswitch_config.h" | 20 | #include "flipswitch_config.h" | ||
21 | // KConfigSkeleton | 21 | // KConfigSkeleton | ||
22 | #include "flipswitchconfig.h" | 22 | #include "flipswitchconfig.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 <KActionCollection> | 29 | #include <KActionCollection> | ||
29 | #include <KAboutData> | 30 | #include <KAboutData> | ||
30 | #include <KGlobalAccel> | 31 | #include <KGlobalAccel> | ||
Show All 33 Lines | 51 | { | |||
64 | KGlobalAccel::self()->setShortcut(b, QList<QKeySequence>()); | 65 | KGlobalAccel::self()->setShortcut(b, QList<QKeySequence>()); | ||
65 | 66 | | |||
66 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | 67 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | ||
67 | m_actionCollection->setConfigGroup(QStringLiteral("FlipSwitch")); | 68 | m_actionCollection->setConfigGroup(QStringLiteral("FlipSwitch")); | ||
68 | m_actionCollection->setConfigGlobal(true); | 69 | m_actionCollection->setConfigGlobal(true); | ||
69 | 70 | | |||
70 | m_ui->shortcutEditor->addCollection(m_actionCollection); | 71 | m_ui->shortcutEditor->addCollection(m_actionCollection); | ||
71 | 72 | | |||
73 | FlipSwitchConfig::instance(KWIN_CONFIG); | ||||
72 | addConfig(FlipSwitchConfig::self(), m_ui); | 74 | addConfig(FlipSwitchConfig::self(), m_ui); | ||
73 | 75 | | |||
74 | load(); | 76 | load(); | ||
75 | } | 77 | } | ||
76 | 78 | | |||
77 | FlipSwitchEffectConfig::~FlipSwitchEffectConfig() | 79 | FlipSwitchEffectConfig::~FlipSwitchEffectConfig() | ||
78 | { | 80 | { | ||
79 | } | 81 | } | ||
Show All 16 Lines |