[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/krecipes/src
From: Jason Kivlighn <confederacy2 () excite ! com>
Date: 2004-04-07 23:42:23
Message-ID: 20040407234223.C6D719A1B () office ! kde ! org
[Download RAW message or body]
CVS commit by jkivlighn:
-Right align all conversion table fields
-Strip white space off of fractions before parsing them -- otherwise, input such as \
"1 " would report there being an error
M +1 -0 conversiontable.h 1.14
M +3 -1 mixednumber.cpp 1.11
--- kdenonbeta/krecipes/src/conversiontable.h #1.13:1.14
@@ -70,4 +70,5 @@ public:
void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool \
selected ); void setTextAndSave(const QString &s);
+ int alignment() const{ return Qt::AlignRight; }
signals:
void ratioChanged(int row, int col, double value);
--- kdenonbeta/krecipes/src/mixednumber.cpp #1.10:1.11
@@ -113,6 +113,8 @@ int MixedNumber::getDenominator( const Q
}
-MixedNumber MixedNumber::fromString( const QString &input, bool *ok )
+MixedNumber MixedNumber::fromString( const QString &str, bool *ok )
{
+ QString input = str.stripWhiteSpace();
+
KLocale *locale = KGlobal::locale();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic