[mythtv] Patch for MythTV CVS
Matt Zimmerman
mdz at debian.org
Sun Feb 23 11:47:47 EST 2003
On Mon, Feb 17, 2003 at 01:24:34AM -0500, Matthew Mohan wrote:
> This adds case-insensitive postal code entry.
>
> diff -u -r1.22 videosource.h
> --- libs/libmythtv/videosource.h 16 Feb 2003 19:25:37 -0000 1.22
> +++ libs/libmythtv/videosource.h 17 Feb 2003 06:23:36 -0000
> @@ -79,7 +79,7 @@
> protected slots:
> void fillProviderSelections(const QString& maybePostalCode) {
> if (QRegExp("\\d{5}").exactMatch(maybePostalCode) ||
> - QRegExp("[a-z]\\d[a-z]\\d[a-z]\\d").exactMatch(maybePostalCode))
> +
> QRegExp("[a-zA-Z]\\d[a-zA-Z]\\d[a-zA-Z]\\d").exactMatch(maybePostalCode))
> provider->fillSelections(maybePostalCode);
> }
Using QRegExp(...,false).exactMatch(...) would accomplish the same thing with
less clutter. I'll do that instead.
--
- mdz
More information about the mythtv-dev
mailing list