~neon/kolf/master

« back to all changes in this revision

Viewing changes to kolf.cpp

  • Committer: Montel Laurent
  • Date: 2014-12-07 08:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1182.
  • Revision ID: git-v1:933125f0c7d449fad54f1992130ccc5574312d9b
kdelib4support--

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
        actionCollection()->addAction("usemouse", useMouseAction);
161
161
        connect(useMouseAction, SIGNAL(triggered(bool)), SLOT(emptySlot()));
162
162
        connect(useMouseAction, SIGNAL(toggled(bool)), this, SLOT(useMouseChanged(bool)));
163
 
        KConfigGroup configGroup(KGlobal::config(), "Settings");
 
163
        KConfigGroup configGroup(KSharedConfig::openConfig(), "Settings");
164
164
        useMouseAction->setChecked(configGroup.readEntry("useMouse", true));
165
165
 
166
166
        useAdvancedPuttingAction = new KToggleAction(i18n("Enable &Advanced Putting"), this);
758
758
 
759
759
void KolfWindow::useMouseChanged(bool yes)
760
760
{
761
 
        KConfigGroup configGroup(KGlobal::config(), "Settings"); configGroup.writeEntry("useMouse", yes); configGroup.sync();
 
761
        KConfigGroup configGroup(KSharedConfig::openConfig(), "Settings"); configGroup.writeEntry("useMouse", yes); configGroup.sync();
762
762
}
763
763
 
764
764
void KolfWindow::useAdvancedPuttingChanged(bool yes)
765
765
{
766
 
        KConfigGroup configGroup(KGlobal::config(), "Settings"); configGroup.writeEntry("useAdvancedPutting", yes); configGroup.sync();
 
766
        KConfigGroup configGroup(KSharedConfig::openConfig(), "Settings"); configGroup.writeEntry("useAdvancedPutting", yes); configGroup.sync();
767
767
}
768
768
 
769
769
void KolfWindow::showInfoChanged(bool yes)
770
770
{
771
 
        KConfigGroup configGroup(KGlobal::config(), "Settings"); configGroup.writeEntry("showInfo", yes); configGroup.sync();
 
771
        KConfigGroup configGroup(KSharedConfig::openConfig(), "Settings"); configGroup.writeEntry("showInfo", yes); configGroup.sync();
772
772
}
773
773
 
774
774
void KolfWindow::showGuideLineChanged(bool yes)
775
775
{
776
 
        KConfigGroup configGroup(KGlobal::config(), "Settings"); configGroup.writeEntry("showGuideLine", yes); configGroup.sync();
 
776
        KConfigGroup configGroup(KSharedConfig::openConfig(), "Settings"); configGroup.writeEntry("showGuideLine", yes); configGroup.sync();
777
777
}
778
778
 
779
779
void KolfWindow::soundChanged(bool yes)
780
780
{
781
 
        KConfigGroup configGroup(KGlobal::config(), "Settings"); configGroup.writeEntry("sound", yes); configGroup.sync();
 
781
        KConfigGroup configGroup(KSharedConfig::openConfig(), "Settings"); configGroup.writeEntry("sound", yes); configGroup.sync();
782
782
}
783
783
 
784
784
void KolfWindow::enableAllMessages()