[PATCH] Fix KMail mailto url handling / new KURL method

Simon Hausmann hausmann at kde.org
Sat Dec 21 20:33:36 GMT 2002


On Sat, Dec 21, 2002 at 06:07:13PM +0100, Marc Mutz wrote:
> Hi!
> 
> I've attached two patches. One for kdecore/kurl.* implementing
>   QMap< QString, QString >
>   KURL::queryItems(bool caseInsensitiveKeys=false) const;
> and the second for fixing mailto URL handling in KMMailtoComposeCommand 
> and KMUrlClickedCommand.
> 
> The details:
> - kdecore:
>   - KURL has a new method queryItems that returns the query parsed into
>     key/value pairs, optionally normalizing the keys to lowercase.

(/me pulls out Ettrichs' bool-is-not-very-nice-as-method-parameter chapter)

How about

   url.queryItems( KURL::CaseInsensitiveKeys );

and

   url.queryItems( KURL::CaseSensitiveKeys );

instead?

(just a thought)

Simon




More information about the kde-core-devel mailing list