[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.0/kdelibs/kdeui/widgets
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2008-03-13 21:57:10
Message-ID: 1205445430.471649.10743.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 785378 by aacid:
Backport r785377
****************
chop the suffix before doing the int conversion
M +3 -1 knuminput.cpp
--- branches/KDE/4.0/kdelibs/kdeui/widgets/knuminput.cpp #785377:785378
@@ -275,7 +275,9 @@
int KIntSpinBox::valueFromText(const QString &text) const
{
bool ok;
- return text.toInt(&ok, d->val_base);
+ QString theText = text;
+ if (theText.endsWith(suffix())) theText.chop(suffix().length());
+ return theText.toInt(&ok, d->val_base);
}
void KIntSpinBox::setEditFocus(bool mark)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic