Changeset View
Changeset View
Standalone View
Standalone View
effects/mousemark/mousemark_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 "mousemark_config.h" | 21 | #include "mousemark_config.h" | ||
22 | 22 | | |||
23 | // KConfigSkeleton | 23 | // KConfigSkeleton | ||
24 | #include "mousemarkconfig.h" | 24 | #include "mousemarkconfig.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 <KLocalizedString> | 30 | #include <KLocalizedString> | ||
30 | #include <KActionCollection> | 31 | #include <KActionCollection> | ||
31 | #include <KAboutData> | 32 | #include <KAboutData> | ||
32 | #include <KGlobalAccel> | 33 | #include <KGlobalAccel> | ||
Show All 20 Lines | 53 | { | |||
53 | m_ui = new MouseMarkEffectConfigForm(this); | 54 | m_ui = new MouseMarkEffectConfigForm(this); | ||
54 | 55 | | |||
55 | m_ui->kcfg_LineWidth->setSuffix(ki18np(" pixel", " pixels")); | 56 | m_ui->kcfg_LineWidth->setSuffix(ki18np(" pixel", " pixels")); | ||
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 | MouseMarkConfig::instance(KWIN_CONFIG); | ||||
61 | addConfig(MouseMarkConfig::self(), m_ui); | 63 | addConfig(MouseMarkConfig::self(), m_ui); | ||
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 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | 67 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | ||
66 | 68 | | |||
67 | QAction* a = m_actionCollection->addAction(QStringLiteral("ClearMouseMarks")); | 69 | QAction* a = m_actionCollection->addAction(QStringLiteral("ClearMouseMarks")); | ||
68 | a->setText(i18n("Clear Mouse Marks")); | 70 | a->setText(i18n("Clear Mouse Marks")); | ||
Show All 38 Lines |