Changeset View
Changeset View
Standalone View
Standalone View
effects/lookingglass/lookingglass_config.cpp
Show All 16 Lines | |||||
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 | 20 | | |||
21 | #include "lookingglass_config.h" | 21 | #include "lookingglass_config.h" | ||
22 | 22 | | |||
23 | // KConfigSkeleton | 23 | // KConfigSkeleton | ||
24 | #include "lookingglassconfig.h" | 24 | #include "lookingglassconfig.h" | ||
25 | #include <config-kwin.h> | ||||
25 | #include <kwineffects_interface.h> | 26 | #include <kwineffects_interface.h> | ||
26 | 27 | | |||
27 | #include <QAction> | 28 | #include <QAction> | ||
28 | 29 | | |||
29 | #include <KGlobalAccel> | 30 | #include <KGlobalAccel> | ||
30 | #include <KLocalizedString> | 31 | #include <KLocalizedString> | ||
31 | #include <kconfiggroup.h> | 32 | #include <kconfiggroup.h> | ||
32 | #include <KActionCollection> | 33 | #include <KActionCollection> | ||
Show All 20 Lines | 53 | LookingGlassEffectConfig::LookingGlassEffectConfig(QWidget* parent, const QVariantList& args) : | |||
53 | KCModule(KAboutData::pluginData(QStringLiteral("lookingglass")), parent, args) | 54 | KCModule(KAboutData::pluginData(QStringLiteral("lookingglass")), parent, args) | ||
54 | { | 55 | { | ||
55 | m_ui = new LookingGlassEffectConfigForm(this); | 56 | m_ui = new LookingGlassEffectConfigForm(this); | ||
56 | 57 | | |||
57 | QVBoxLayout* layout = new QVBoxLayout(this); | 58 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
58 | 59 | | |||
59 | layout->addWidget(m_ui); | 60 | layout->addWidget(m_ui); | ||
60 | 61 | | |||
62 | LookingGlassConfig::instance(KWIN_CONFIG); | ||||
61 | addConfig(LookingGlassConfig::self(), m_ui); | 63 | addConfig(LookingGlassConfig::self(), m_ui); | ||
62 | connect(m_ui->editor, SIGNAL(keyChange()), this, SLOT(changed())); | 64 | connect(m_ui->editor, SIGNAL(keyChange()), this, SLOT(changed())); | ||
63 | 65 | | |||
64 | // Shortcut config. The shortcut belongs to the component "kwin"! | 66 | // Shortcut config. The shortcut belongs to the component "kwin"! | ||
65 | m_actionCollection = new KActionCollection(this, QStringLiteral("kwin")); | 67 | m_actionCollection = new KActionCollection(this, QStringLiteral("kwin")); | ||
66 | 68 | | |||
67 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | 69 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | ||
68 | m_actionCollection->setConfigGroup(QStringLiteral("LookingGlass")); | 70 | m_actionCollection->setConfigGroup(QStringLiteral("LookingGlass")); | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |