Magellan Linux

Annotation of /trunk/kdebase/patches/kdebase-3.5.1-kxkb-uppercase-layouts.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years, 1 month ago) by niro
File size: 806 byte(s)
-import

1 niro 144 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);