Contents of /trunk/kdebase/patches/kdebase-3.5.1-kxkb-uppercase-layouts.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 806 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 806 byte(s)
-import
1 | Index: rules.cpp |
2 | =================================================================== |
3 | --- kxkb/rules.cpp (revision 504758) |
4 | +++ kxkb/rules.cpp (working copy) |
5 | @@ -300,7 +300,7 @@ |
6 | */ |
7 | const QString KeyRules::getLayout(const QString &layvar) const |
8 | { |
9 | - static const char* LAYOUT_PATTERN = "[a-z0-9_-]*"; |
10 | + static const char* LAYOUT_PATTERN = "[a-zA-Z0-9_-]*"; |
11 | QString varLine = layvar.stripWhiteSpace(); |
12 | QRegExp rx(LAYOUT_PATTERN); |
13 | int pos = rx.search(varLine, 0); |
14 | @@ -318,7 +318,7 @@ |
15 | */ |
16 | const QString KeyRules::getVariant(const QString &layvar) const |
17 | { |
18 | - static const char* VARIANT_PATTERN = "\\([a-z0-9_-]*\\)"; |
19 | + static const char* VARIANT_PATTERN = "\\([a-zA-Z0-9_-]*\\)"; |
20 | QString varLine = layvar.stripWhiteSpace(); |
21 | QRegExp rx(VARIANT_PATTERN); |
22 | int pos = rx.search(varLine, 0); |