new class

Jason Keirstead jason at keirstead.org
Fri Mar 28 18:12:22 GMT 2003


On March 28, 2003 01:38 pm, Charles Samuels wrote:
> On Monday 24 March 2003 1:12, Stephan Kulow wrote:
> > The class is tiny enough to justify both the duplication and the move to
> > KDE. So I'd suggest you first use it in more than one app before you put
> > it in kdelibs. The only part that make me worry is the limitation to
> > "appdata"
>
> It no longer limits itself to appdata.
>
> I've put the latest version online
> 	http://www.derkarl.org/~charles/kdatacollection.h
> 	http://www.derkarl.org/~charles/kdatacollection.cpp
>
> You're free to use it (under the LGPL), and send any patches for it back to
> me.
>
> To rephrase: help me make it used in more than one application :)
>
> -Charles

I could use this in Kopete, I am basically duplicating this exact functionality to
save our XSL stylesheet files.

Patch suggestion: Instead of :

		QString end = *i;
		{
			int at = end.findRev("/");
			if (at != -1)
			{
				end = end.mid(at);
			}
		}

		if (!n.contains(end))

in the names() function, you can use

	QFileInfo fInfo( *i );
	if( !n.contains( fInfo.fileName() )
	


-- 
Jason Keirstead, BCS
http://www.keirstead.org




More information about the kde-core-devel mailing list