Changeset View
Changeset View
Standalone View
Standalone View
effects/presentwindows/presentwindows_config.cpp
Show All 16 Lines | |||||
17 | 17 | | |||
18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | *********************************************************************/ | 20 | *********************************************************************/ | ||
21 | 21 | | |||
22 | #include "presentwindows_config.h" | 22 | #include "presentwindows_config.h" | ||
23 | // KConfigSkeleton | 23 | // KConfigSkeleton | ||
24 | #include "presentwindowsconfig.h" | 24 | #include "presentwindowsconfig.h" | ||
25 | #include <config-kwin.h> | ||||
25 | #include <kwineffects_interface.h> | 26 | #include <kwineffects_interface.h> | ||
26 | #include <QAction> | 27 | #include <QAction> | ||
27 | 28 | | |||
28 | #include <kconfiggroup.h> | 29 | #include <kconfiggroup.h> | ||
29 | #include <KActionCollection> | 30 | #include <KActionCollection> | ||
30 | #include <KAboutData> | 31 | #include <KAboutData> | ||
31 | #include <KGlobalAccel> | 32 | #include <KGlobalAccel> | ||
32 | #include <KLocalizedString> | 33 | #include <KLocalizedString> | ||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 52 | { | |||
79 | c->setProperty("isConfigurationAction", true); | 80 | c->setProperty("isConfigurationAction", true); | ||
80 | KGlobalAccel::self()->setDefaultShortcut(c, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | 81 | KGlobalAccel::self()->setDefaultShortcut(c, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | ||
81 | KGlobalAccel::self()->setShortcut(c, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | 82 | KGlobalAccel::self()->setShortcut(c, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | ||
82 | 83 | | |||
83 | m_ui->shortcutEditor->addCollection(m_actionCollection); | 84 | m_ui->shortcutEditor->addCollection(m_actionCollection); | ||
84 | 85 | | |||
85 | connect(m_ui->shortcutEditor, SIGNAL(keyChange()), this, SLOT(changed())); | 86 | connect(m_ui->shortcutEditor, SIGNAL(keyChange()), this, SLOT(changed())); | ||
86 | 87 | | |||
88 | PresentWindowsConfig::instance(KWIN_CONFIG); | ||||
87 | addConfig(PresentWindowsConfig::self(), m_ui); | 89 | addConfig(PresentWindowsConfig::self(), m_ui); | ||
88 | 90 | | |||
89 | load(); | 91 | load(); | ||
90 | } | 92 | } | ||
91 | 93 | | |||
92 | PresentWindowsEffectConfig::~PresentWindowsEffectConfig() | 94 | PresentWindowsEffectConfig::~PresentWindowsEffectConfig() | ||
93 | { | 95 | { | ||
94 | // If save() is called undoChanges() has no effect | 96 | // If save() is called undoChanges() has no effect | ||
Show All 22 Lines |