Changeset View
Changeset View
Standalone View
Standalone View
effects/thumbnailaside/thumbnailaside_config.cpp
Show All 15 Lines | |||||
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 | 20 | | |||
21 | #include "thumbnailaside_config.h" | 21 | #include "thumbnailaside_config.h" | ||
22 | // KConfigSkeleton | 22 | // KConfigSkeleton | ||
23 | #include "thumbnailasideconfig.h" | 23 | #include "thumbnailasideconfig.h" | ||
24 | #include <config-kwin.h> | ||||
24 | #include <kwineffects_interface.h> | 25 | #include <kwineffects_interface.h> | ||
25 | 26 | | |||
26 | #include <QAction> | 27 | #include <QAction> | ||
27 | 28 | | |||
28 | #include <KLocalizedString> | 29 | #include <KLocalizedString> | ||
29 | #include <kconfiggroup.h> | 30 | #include <kconfiggroup.h> | ||
30 | #include <KActionCollection> | 31 | #include <KActionCollection> | ||
31 | #include <KAboutData> | 32 | #include <KAboutData> | ||
Show All 21 Lines | 53 | { | |||
53 | m_ui = new ThumbnailAsideEffectConfigForm(this); | 54 | m_ui = new ThumbnailAsideEffectConfigForm(this); | ||
54 | 55 | | |||
55 | QVBoxLayout* layout = new QVBoxLayout(this); | 56 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
56 | 57 | | |||
57 | layout->addWidget(m_ui); | 58 | layout->addWidget(m_ui); | ||
58 | 59 | | |||
59 | connect(m_ui->editor, SIGNAL(keyChange()), this, SLOT(changed())); | 60 | connect(m_ui->editor, SIGNAL(keyChange()), this, SLOT(changed())); | ||
60 | 61 | | |||
62 | ThumbnailAsideConfig::instance(KWIN_CONFIG); | ||||
61 | addConfig(ThumbnailAsideConfig::self(), this); | 63 | addConfig(ThumbnailAsideConfig::self(), this); | ||
62 | 64 | | |||
63 | // Shortcut config. The shortcut belongs to the component "kwin"! | 65 | // Shortcut config. The shortcut belongs to the component "kwin"! | ||
64 | m_actionCollection = new KActionCollection(this, QStringLiteral("kwin")); | 66 | m_actionCollection = new KActionCollection(this, QStringLiteral("kwin")); | ||
65 | 67 | | |||
66 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | 68 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | ||
67 | m_actionCollection->setConfigGroup(QStringLiteral("ThumbnailAside")); | 69 | m_actionCollection->setConfigGroup(QStringLiteral("ThumbnailAside")); | ||
68 | m_actionCollection->setConfigGlobal(true); | 70 | m_actionCollection->setConfigGlobal(true); | ||
Show All 30 Lines |