Hello community,

here is the log from the commit of package kcalc for openSUSE:Factory checked 
in at 2014-07-16 16:17:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kcalc (Old)
 and      /work/SRC/openSUSE:Factory/.kcalc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kcalc"

Changes:
--------
--- /work/SRC/openSUSE:Factory/kcalc/kcalc.changes      2014-06-19 
13:16:54.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kcalc.new/kcalc.changes 2014-07-16 
16:17:12.000000000 +0200
@@ -1,0 +2,7 @@
+Thu Jul 10 22:16:40 UTC 2014 - [email protected]
+
+- Update to 4.13.80
+   * KDE 4.14 Beta 1 release
+   * See http://www.kde.org/announcements/announce-4.14-beta1.php
+
+-------------------------------------------------------------------

Old:
----
  kcalc-4.13.2.tar.xz

New:
----
  kcalc-4.13.80.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kcalc.spec ++++++
--- /var/tmp/diff_new_pack.OfmHGm/_old  2014-07-16 16:17:12.000000000 +0200
+++ /var/tmp/diff_new_pack.OfmHGm/_new  2014-07-16 16:17:12.000000000 +0200
@@ -25,7 +25,7 @@
 License:        GPL-2.0+
 Group:          Productivity/Scientific/Math
 Url:            http://www.kde.org
-Version:        4.13.2
+Version:        4.13.80
 Release:        0
 Source0:        %{name}-%{version}.tar.xz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ kcalc-4.13.2.tar.xz -> kcalc-4.13.80.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalc-4.13.2/kcalc.cpp new/kcalc-4.13.80/kcalc.cpp
--- old/kcalc-4.13.2/kcalc.cpp  2014-02-23 04:18:51.000000000 +0100
+++ new/kcalc-4.13.80/kcalc.cpp 2014-03-11 20:58:35.000000000 +0100
@@ -614,8 +614,10 @@
        connect(pbReci, SIGNAL(clicked()), SLOT(slotReciclicked()));
 
        pbFactorial->addMode(ModeNormal, i18nc("Factorial", "x!"), 
i18n("Factorial"));
+       pbFactorial->addMode(ModeShift, QLatin1String("Γ"), i18n("Gamma"));
        pbFactorial->setShortcut(QKeySequence(Qt::Key_Exclam));
        connect(this, SIGNAL(switchShowAccels(bool)), pbFactorial, 
SLOT(slotSetAccelDisplayMode(bool)));
+       connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)), pbFactorial, 
SLOT(slotSetMode(ButtonModeFlags,bool)));
        connect(pbFactorial, SIGNAL(clicked()), SLOT(slotFactorialclicked()));
 
        pbSquare->addMode(ModeNormal, i18nc("Square", "x<sup>2</sup>"), 
i18n("Square"));
@@ -1159,7 +1161,11 @@
     // time and UI frezes with large numbers. User needs some
     // visual feedback.
     QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
-    core.Factorial(calc_display->getAmount());
+       if (!shift_mode_) {
+           core.Factorial(calc_display->getAmount());
+       } else {
+               core.Gamma(calc_display->getAmount());
+       }
     QApplication::restoreOverrideCursor();
     updateDisplay(UPDATE_FROM_CORE);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalc-4.13.2/kcalc_core.cpp 
new/kcalc-4.13.80/kcalc_core.cpp
--- old/kcalc-4.13.2/kcalc_core.cpp     2014-02-23 04:18:51.000000000 +0100
+++ new/kcalc-4.13.80/kcalc_core.cpp    2014-03-11 20:58:35.000000000 +0100
@@ -528,6 +528,18 @@
     last_number_ = input.integerPart().factorial();
 }
 
+void CalcEngine::Gamma(const KNumber &input)
+{
+    if (input == KNumber::PosInfinity) return;
+    if (input < KNumber::Zero || input.type() == KNumber::TYPE_ERROR) {
+        error_ = true;
+        last_number_ = KNumber::NaN;
+        return;
+    }
+       
+    last_number_ = input.tgamma();
+}
+
 void CalcEngine::InvertSign(const KNumber &input)
 {
     last_number_ = -input;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalc-4.13.2/kcalc_core.h 
new/kcalc-4.13.80/kcalc_core.h
--- old/kcalc-4.13.2/kcalc_core.h       2014-02-23 04:18:51.000000000 +0100
+++ new/kcalc-4.13.80/kcalc_core.h      2014-03-11 20:58:35.000000000 +0100
@@ -77,6 +77,7 @@
     void Exp(const KNumber &input);
     void Exp10(const KNumber &input);
     void Factorial(const KNumber &input);
+       void Gamma(const KNumber &input);
     void InvertSign(const KNumber &input);
     void Ln(const KNumber &input);
     void Log10(const KNumber &input);

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to