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

List:       kde-devel
Subject:    Re: [kprint] Can't use GLOB_TILDE on Solaris
From:       "Aaron J. Seigo" <aseigo () mountlinux ! com>
Date:       2001-03-01 5:38:03
[Download RAW message or body]

Hi...

> > kdeprint is new in kdelibs since today. I use "glob", because I didn't
> > find the Qt equivalent. But if it exists, tell me and I'll change the
> > code. Otherwise the solution is with some #ifdef, using wordexp. I don't
> > have access to Solaris so I can't make a patch.

The Qt equivs would be:

 - ~ expansion: QDir::homeDirPath() 
       this is a static function returning a QString, for example:
 
	QDir thisDir(QDir::homeDirPath());

       thisDir will now be set to the home directory.

 - wildcard filtering of files:

	QDir thisDir(path);
	QStringList files = thisDir.entryList("foo?bar*");

	or

	thisDir.setNameFileter("foo*bar?");
	QStringList files = thisDir.entryList;	

HTH.

-- 
Aaron Seigo
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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