Bug 56561 - Quanta doesn't remember spellchecker settings
Summary: Quanta doesn't remember spellchecker settings
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-28 23:10 UTC by mrudolf
Modified: 2003-03-29 13:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mrudolf 2003-03-28 23:10:52 UTC
Version:           3.2-CVS-1 (using KDE 3.1.1)
Installed from:    compiled sources
Compiler:          gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)
OS:          Linux (i686) release 2.4.18-8.1mdk

Quanta doesn't remember spellchecker settings. These are always "Default settings", even after choosing something else. Same option in KEdit works well.
Comment 1 András Manţia 2003-03-29 13:04:14 UTC
Subject: quanta

CVS commit by amantia: 

Store and use the spell checking options.

CCMAIL: 56561-done@bugs.kde.org


  M +1 -0      ChangeLog   1.145
  M +14 -4     quanta/quanta.cpp   1.254


--- quanta/ChangeLog  #1.144:1.145
@@ -22,4 +22,5 @@
     - closing the files (and closing Quanta) isn't slow anymore [#56233]
     - opening project views or multiple files on startup is much faster
+    - store and use the spell checking settings [#56561]
   - new features:
     - "Replace selection" for script actions replaces the selection if

--- quanta/quanta/quanta.cpp  #1.253:1.254
@@ -930,10 +930,9 @@ void QuantaApp::slotOptions()
   if (debuggerStyle=="None") debuggerOptions->checkDebugger->setChecked(false);
 
-  if (KDE_VERSION >= 308)
-  {
+#if KDE_VERSION > 308
 //Spelling options
     page=kd->addVBoxPage(i18n("Spelling"), QString::null, BarIcon("spellcheck", KIcon::SizeMedium ) );
-    new KSpellConfig( (QWidget *)page, 0L, qConfig.spellConfig, false );
-  }
+    KSpellConfig *spellOptions = new KSpellConfig( (QWidget *)page, 0L, qConfig.spellConfig, false );
+#endif
   kd->adjustSize();
   if ( kd->exec() )
@@ -984,4 +983,15 @@ void QuantaApp::slotOptions()
       debuggerStyle="PHP4";
     }
+
+#if KDE_VERSION > 308
+  qConfig.spellConfig->setDictionary(spellOptions->dictionary());
+  qConfig.spellConfig->setNoRootAffix(spellOptions->noRootAffix());
+  qConfig.spellConfig->setRunTogether(spellOptions->runTogether());
+  qConfig.spellConfig->setDictFromList(spellOptions->dictFromList());
+  qConfig.spellConfig->setEncoding(spellOptions->encoding());
+  qConfig.spellConfig->setIgnoreList(spellOptions->ignoreList());
+  qConfig.spellConfig->setReplaceAllList(spellOptions->replaceAllList());
+  qConfig.spellConfig->setClient(spellOptions->client());
+#endif
 
     QWidgetStack *s;


Comment 2 mrudolf 2003-03-29 18:12:01 UTC
Subject: Re:  Quanta doesn't remember spellchecker settings

W sobota, 29 marca 2003 13:04, Mantia Andras napisa