[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 90327] kcolorchooser: short forms for HTML color
From: <groot () kde ! org>
Date: 2004-10-04 18:37:09
Message-ID: 20041004183709.8166.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=90327
------- Additional Comments From groot kde org 2004-10-04 20:37 -------
CVS commit by adridg:
Restore X11 rgb.txt support.
CCMAIL: 90327 bugs kde org
M +4 -1 kcolordialog.cpp 1.122
--- kdelibs/kdeui/kcolordialog.cpp #1.121:1.122
@ -1331,6 +1331,9 @ void KColorDialog::slotHtmlChanged( void
QString strColor( d->htmlName->text() );
+
+ QRegExp re( QString::fromLatin1( "#?[0-9a-f]{3,6}" ), false);
+
// Assume that a user does not want to type the # all the time
- if ( strColor[0] != '#' )
+ if ( re.exactMatch(strColor) && ( strColor[0] != '#' ) )
strColor.prepend("#");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic