[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    [Quanta] branches/KDE/3.5/kdewebdev/quanta
From:       Andras Mantia <amantia () kde ! org>
Date:       2006-03-03 17:26:13
Message-ID: 1141406773.122887.16592.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 515414 by amantia:

Add possibility to limit the number of recent files/projects. No          GUI, use \
"Recent Files Limit" in the [General Options] section. 

BUG: 113309
CCMAIL: quanta@kde.org

 M  +2 -0      ChangeLog  
 M  +5 -3      project/project.cpp  
 M  +0 -1      project/projectprivate.cpp  
 M  +2 -1      src/quanta_init.cpp  


--- branches/KDE/3.5/kdewebdev/quanta/ChangeLog #515413:515414
@@ -16,6 +16,8 @@
           opened one [#111599]
         - remember cursor position for project documents [#101966]
         - add the standard show/hide menubar action [#113064]
+        - add possibility to limit the number of recent files/projects. No
+          GUI, use "Recent Files Limit" in the [General Options] section [#113309]
 
 
 Version 3.5.1 (Release date: 23-01-2006; Started 30-11-2005):
--- branches/KDE/3.5/kdewebdev/quanta/project/project.cpp #515413:515414
@@ -160,11 +160,13 @@
 }
 
 
-void Project::readConfig (KConfig *config)
+void Project::readConfig(KConfig *config)
 {
   d->config = config;
-
-  config->setGroup  ("Projects");
+  config->setGroup("General Options");
+  int maxRecentItems = config->readNumEntry("Recent Files Limit", 32);
+  d->m_projectRecent->setMaxItems(maxRecentItems);
+  config->setGroup ("Projects");
   d->m_projectRecent->loadEntries(config, "RecentProjects");
 }
 
--- branches/KDE/3.5/kdewebdev/quanta/project/projectprivate.cpp #515413:515414
@@ -94,7 +94,6 @@
                             ac, "project_open_recent");
   m_projectRecent->setText(i18n("Open Recent Project"));
   m_projectRecent->setIcon("project_open");
-  m_projectRecent->setMaxItems(32);
   m_projectRecent->setToolTip(i18n("Open/Open recent project"));
   connect(m_projectRecent, SIGNAL(activated()), this, SLOT(slotOpenProject()));
 
--- branches/KDE/3.5/kdewebdev/quanta/src/quanta_init.cpp #515413:515414
@@ -592,6 +592,8 @@
   m_quanta->fileRecent ->loadEntries(m_config);
   qConfig.showHiddenFiles = m_config->readBoolEntry("Show Hidden Files", true);
   qConfig.saveTrees = m_config->readBoolEntry("Save Local Trees", true);
+  int maxRecentItems = m_config->readNumEntry("Recent Files Limit", 32);
+  m_quanta->fileRecent->setMaxItems(maxRecentItems);
 
   m_config->setGroup("Parser options");
   qConfig.showEmptyNodes = m_config->readBoolEntry("Show Empty Nodes", false);
@@ -730,7 +732,6 @@
 
     m_quanta->fileRecent =  KStdAction::openRecent(m_quanta, \
SLOT(slotFileOpenRecent(const KURL&)),  ac, "file_open_recent");
-    m_quanta->fileRecent->setMaxItems(32);
     m_quanta->fileRecent->setToolTip(i18n("Open / Open Recent"));
     connect(m_quanta->fileRecent, SIGNAL(activated()), m_quanta, \
SLOT(slotFileOpen()));  
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic