Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit b654237a authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor typos

parent f69c4fd3
......@@ -792,7 +792,7 @@ void KCalculator::keyPressEvent(QKeyEvent *e) {
// Fix for bug #314586
// Basically, on some keyboards such as French, even though the decimal separator
// is "," the numeric keypad has a "." key. So we fake it so people can more seemlessly
// is "," the numeric keypad has a "." key. So we fake it so people can more seamlessly
// enter numbers using the keypad
if(KNumber::decimalSeparator() != QLatin1String(".")) {
if(e->key() == Qt::Key_Period && e->modifiers() & Qt::KeypadModifier) {
......@@ -853,7 +853,7 @@ void KCalculator::slotAngleSelected(int mode) {
//------------------------------------------------------------------------------
// Name: slotEEclicked
// Desc: starts the entering of numers using scientific notation
// Desc: starts the entering of numbers using scientific notation
//------------------------------------------------------------------------------
void KCalculator::slotEEclicked() {
calc_display->newCharacter(QLatin1Char('e'));
......@@ -883,7 +883,7 @@ void KCalculator::slotShifttoggled(bool flag) {
//------------------------------------------------------------------------------
void KCalculator::slotHyptoggled(bool flag) {
// toggle between hyperbolic and standart trig functions
// toggle between hyperbolic and standard trig functions
hyp_mode_ = flag;
emit switchMode(ModeHyperbolic, flag);
......
......@@ -314,7 +314,7 @@ KNumber::KNumber(const QString &s) : value_(nullptr) {
}
}
// we need to normalize the decimal searator to US style because that's
// we need to normalize the decimal separator to US style because that's
// the only type that the GMP function accept
QString new_s = s;
new_s.replace(DecimalSeparator, QLatin1String("."));
......
......@@ -468,7 +468,7 @@ knumber_base *knumber_fraction::pow(knumber_base *rhs) {
// ok, so if any part of the number is > 1,000,000, then we risk
// the pow function overflowing... so we'll just convert to float to be safe
// TODO: at some point, we should figure out exactly what the threashold is
// TODO: at some point, we should figure out exactly what the threshold is
// and if there is a better way to determine if the pow function will
// overflow.
if(mpz_cmpabs_ui(mpq_numref(mpq_), 1000000) > 0 || mpz_cmpabs_ui(mpq_denref(mpq_), 1000000) > 0 || mpz_cmpabs_ui(mpq_numref(p->mpq_), 1000000) > 0 || mpz_cmpabs_ui(mpq_denref(p->mpq_), 1000000) > 0) {
......
......@@ -53,7 +53,7 @@ void KStats::enterData(const KNumber &data) {
//------------------------------------------------------------------------------
// Name: clearLast
// Desc: remoaves the last item from the data set
// Desc: removes the last item from the data set
//------------------------------------------------------------------------------
void KStats::clearLast() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment