
On Thursday 19 February 2009 02:29:20 am Will Stephenson wrote:
On Wednesday 18 February 2009 20:03:20 Randall R Schulz wrote: ...
I think, though, that the reason for it is that many files with a given base name may occur, and presenting the full path name helps disambiguate in this situation.
You're right.
So at a minimum, they could be more selective and show the full names only when that information actually does disambiguate the overall list.
Should be a doddle for anyone with C++ 101 and an ounce of DIY:
I need a motive to learn C++ 101 (getting bruises in a course of action) and changing:
http://lxr.kde.org/source/KDE/kdelibs/kdeui/actions/krecentfilesaction.cpp# 214
could be a good one.
The simplest approach is to iterate the list of RecentFiles once before the current for loop, first counting each unique nameValue, then in the current loop only add the "[" + value + "]" if the count is greater than one.
You'd want something like QHash<QString, uint> (http://doc.trolltech.com/4.4/qhash.html) to store the counts.
Any takers?
Will
As mentioned, I need a motive, so why not. Now, I'm trying to figure out how to get something that I can compile in my home directory, which apparently includes svn 101. Any reason that svn has 3.5 and lxr.kde.org doesn't? -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org