Version: post-3.3.2 (using KDE KDE 3.3.2) Installed from: Debian testing/unstable Packages OS: Linux i find the list of recent files way too big. i've read people previously found it too small (at least the one for recent projects). why not make an option to set the number of entries to display? thanks - great tool!
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()));