Hello community,
here is the log from the commit of package kunitconversion for openSUSE:Factory
checked in at 2020-10-12 13:56:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kunitconversion (Old)
and /work/SRC/openSUSE:Factory/.kunitconversion.new.3486 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kunitconversion"
Mon Oct 12 13:56:27 2020 rev:85 rq:840850 version:5.75.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/kunitconversion/kunitconversion.changes
2020-09-18 14:43:35.104119324 +0200
+++
/work/SRC/openSUSE:Factory/.kunitconversion.new.3486/kunitconversion.changes
2020-10-12 13:58:11.598188044 +0200
@@ -1,0 +2,14 @@
+Mon Oct 5 08:33:36 UTC 2020 - Christophe Giboudeaux <[email protected]>
+
+- Update to 5.75.0
+ * New feature release
+ * For more details please see:
+ * https://kde.org/announcements/kde-frameworks-5.75.0
+- Changes since 5.74.0:
+ * Change platofrm name according to KApiDox warning
+ * Reduce documentation warnings
+ * Remove since 4.4 statements
+ * Remove license statements to API documentation
+ * Use uppercase for Fuel Efficiency
+
+-------------------------------------------------------------------
Old:
----
kunitconversion-5.74.0.tar.xz
kunitconversion-5.74.0.tar.xz.sig
New:
----
kunitconversion-5.75.0.tar.xz
kunitconversion-5.75.0.tar.xz.sig
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ kunitconversion.spec ++++++
--- /var/tmp/diff_new_pack.9jVZqc/_old 2020-10-12 13:58:12.134188267 +0200
+++ /var/tmp/diff_new_pack.9jVZqc/_new 2020-10-12 13:58:12.138188268 +0200
@@ -17,14 +17,14 @@
%define lname libKF5UnitConversion5
-%define _tar_path 5.74
+%define _tar_path 5.75
# Full KF5 version (e.g. 5.33.0)
%{!?_kf5_version: %global _kf5_version %{version}}
# Last major and minor KF5 version (e.g. 5.33)
%{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} |
awk -F. '{print $1"."$2}')}
%bcond_without lang
Name: kunitconversion
-Version: 5.74.0
+Version: 5.75.0
Release: 0
Summary: Tool for converting physical units
License: LGPL-2.1-or-later
++++++ kunitconversion-5.74.0.tar.xz -> kunitconversion-5.75.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/CMakeLists.txt
new/kunitconversion-5.75.0/CMakeLists.txt
--- old/kunitconversion-5.74.0/CMakeLists.txt 2020-09-06 12:37:21.000000000
+0200
+++ new/kunitconversion-5.75.0/CMakeLists.txt 2020-10-04 20:54:32.000000000
+0200
@@ -1,11 +1,11 @@
cmake_minimum_required(VERSION 3.5)
-set(KF5_VERSION "5.74.0") # handled by release scripts
-set(KF5_DEP_VERSION "5.74.0") # handled by release scripts
+set(KF5_VERSION "5.75.0") # handled by release scripts
+set(KF5_DEP_VERSION "5.75.0") # handled by release scripts
project(KUnitConversion VERSION ${KF5_VERSION})
include(FeatureSummary)
-find_package(ECM 5.74.0 NO_MODULE)
+find_package(ECM 5.75.0 NO_MODULE)
set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake
Modules." URL "https://commits.kde.org/extra-cmake-modules")
feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND
FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/README.md
new/kunitconversion-5.75.0/README.md
--- old/kunitconversion-5.74.0/README.md 2020-09-06 12:37:21.000000000
+0200
+++ new/kunitconversion-5.75.0/README.md 2020-10-04 20:54:32.000000000
+0200
@@ -20,7 +20,7 @@
* Energy
* Force
* Frequency
-* Fuel efficiency
+* Fuel Efficiency
* Length
* Mass
* Permeability
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/metainfo.yaml
new/kunitconversion-5.75.0/metainfo.yaml
--- old/kunitconversion-5.74.0/metainfo.yaml 2020-09-06 12:37:21.000000000
+0200
+++ new/kunitconversion-5.75.0/metainfo.yaml 2020-10-04 20:54:32.000000000
+0200
@@ -6,7 +6,7 @@
- name: Linux
- name: FreeBSD
- name: Windows
- - name: MacOSX
+ - name: macOS
- name: Android
portingAid: false
deprecated: false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/po/ca/kunitconversion5.po
new/kunitconversion-5.75.0/po/ca/kunitconversion5.po
--- old/kunitconversion-5.74.0/po/ca/kunitconversion5.po 2020-09-06
12:37:21.000000000 +0200
+++ new/kunitconversion-5.75.0/po/ca/kunitconversion5.po 2020-10-04
20:54:32.000000000 +0200
@@ -8,7 +8,7 @@
# Antoni Bella Pérez <[email protected]>, 2016, 2019.
msgid ""
msgstr ""
-"Project-Id-Version: kunitconversion5\n"
+"Project-Id-Version: kunitconversion\n"
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
"POT-Creation-Date: 2020-05-31 17:58+0200\n"
"PO-Revision-Date: 2020-04-21 12:23+0100\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/kunitconversion-5.74.0/po/ca@valencia/kunitconversion5.po
new/kunitconversion-5.75.0/po/ca@valencia/kunitconversion5.po
--- old/kunitconversion-5.74.0/po/ca@valencia/kunitconversion5.po
2020-09-06 12:37:21.000000000 +0200
+++ new/kunitconversion-5.75.0/po/ca@valencia/kunitconversion5.po
2020-10-04 20:54:32.000000000 +0200
@@ -9,7 +9,7 @@
# Empar <[email protected]>, 2019.
msgid ""
msgstr ""
-"Project-Id-Version: kunitconversion5\n"
+"Project-Id-Version: kunitconversion\n"
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
"POT-Creation-Date: 2020-05-31 17:58+0200\n"
"PO-Revision-Date: 2019-06-20 15:01+0200\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/po/de/kunitconversion5.po
new/kunitconversion-5.75.0/po/de/kunitconversion5.po
--- old/kunitconversion-5.74.0/po/de/kunitconversion5.po 2020-09-06
12:37:21.000000000 +0200
+++ new/kunitconversion-5.75.0/po/de/kunitconversion5.po 2020-10-04
20:54:32.000000000 +0200
@@ -1,5 +1,5 @@
# Burkhard Lück <[email protected]>, 2009, 2013, 2014, 2016, 2018, 2019.
-# Frederik Schwarzer <[email protected]>, 2009, 2010, 2011, 2016.
+# Frederik Schwarzer <[email protected]>, 2009, 2010, 2011, 2016, 2020.
# Rolf Eike Beer <[email protected]>, 2009, 2010.
# Thomas Reitelbach <[email protected]>, 2010.
# Johannes Obermayr <[email protected]>, 2010.
@@ -10,14 +10,14 @@
"Project-Id-Version: libkunitconversion\n"
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
"POT-Creation-Date: 2020-05-31 17:58+0200\n"
-"PO-Revision-Date: 2019-07-22 09:32+0200\n"
-"Last-Translator: Burkhard Lück <[email protected]>\n"
+"PO-Revision-Date: 2020-09-06 12:51+0200\n"
+"Last-Translator: Frederik Schwarzer <[email protected]>\n"
"Language-Team: German <[email protected]>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Lokalize 18.12.3\n"
+"X-Generator: Lokalize 20.08.1\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
#: acceleration.cpp:16
@@ -1125,12 +1125,12 @@
#: binary_data.cpp:41
#, kde-format
msgid "Binary Data"
-msgstr ""
+msgstr "Binärdaten"
#: binary_data.cpp:41
#, kde-format
msgid "Binary Data Size"
-msgstr ""
+msgstr "Binärdatengröße"
#: binary_data.cpp:43
#, kde-format
@@ -1142,19 +1142,19 @@
#, kde-format
msgctxt "binary data unit symbol"
msgid "YiB"
-msgstr ""
+msgstr "YiB"
#: binary_data.cpp:47
#, kde-format
msgctxt "unit description in lists"
msgid "yobibytes"
-msgstr ""
+msgstr " Yobibyte"
#: binary_data.cpp:49
#, kde-format
msgctxt "unit synonyms for matching user input"
msgid "YiB;yobibyte;yobibytes"
-msgstr ""
+msgstr "YiB;yobibyte;yobibytes"
#: binary_data.cpp:51
#, kde-format
@@ -1211,7 +1211,7 @@
#, kde-format
msgctxt "binary data unit symbol"
msgid "YB"
-msgstr ""
+msgstr "YB"
#: binary_data.cpp:65
#, kde-format
@@ -3714,26 +3714,21 @@
#, kde-format
msgctxt "Icelandic Krona - unit synonyms for matching user input"
msgid "Icelandic krona;Icelandic crown"
-msgstr ""
+msgstr "Isländische Krone"
#: currency.cpp:640
-#, fuzzy, kde-format
-#| msgctxt "amount in units (real)"
-#| msgid "%1 Danish kroner"
+#, kde-format
msgctxt "amount in units (real)"
msgid "%1 Icelandic kronar"
-msgstr "%1 Dänische Kronen"
+msgstr "%1 Isländische Kronen"
#: currency.cpp:641
-#, fuzzy, kde-format
-#| msgctxt "amount in units (integer)"
-#| msgid "%1 Danish krone"
-#| msgid_plural "%1 Danish kroner"
+#, kde-format
msgctxt "amount in units (integer)"
msgid "%1 Icelandic krona"
msgid_plural "%1 Icelandic kronar"
-msgstr[0] "1 Dänische Krone"
-msgstr[1] "%1 Dänische Kronen"
+msgstr[0] "%1 Isländische Krone"
+msgstr[1] "%1 Isländische Kronen"
#: density.cpp:16
#, kde-format
@@ -7072,7 +7067,7 @@
#, kde-format
msgctxt "unit synonyms for matching user input"
msgid "dyne;dynes;dyn"
-msgstr "dyn;"
+msgstr "dyn"
#: force.cpp:194
#, kde-format
@@ -14650,7 +14645,7 @@
#, kde-format
msgctxt "unit synonyms for matching user input"
msgid "cubic hectometer;cubic hectometers;hm³;hm/-3;hm^3;hm3"
-msgstr "Kubikhektometer;;hm³;hm^3;hm3"
+msgstr "Kubikhektometer;hm³;hm^3;hm3"
#: volume.cpp:98
#, kde-format
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/po/ro/kunitconversion5.po
new/kunitconversion-5.75.0/po/ro/kunitconversion5.po
--- old/kunitconversion-5.74.0/po/ro/kunitconversion5.po 2020-09-06
12:37:21.000000000 +0200
+++ new/kunitconversion-5.75.0/po/ro/kunitconversion5.po 2020-10-04
20:54:32.000000000 +0200
@@ -1,24 +1,23 @@
# Copyright (C) YEAR This_file_is_part_of_KDE
# This file is distributed under the same license as the PACKAGE package.
-#
-# Sergiu Bivol <[email protected]>, 2009.
-# Sergiu Bivol <[email protected]>, 2010.
+# Sergiu Bivol <[email protected]>, 2009, 2010, 2020.
# Cristian Oneț <[email protected]>, 2010, 2011.
+#
msgid ""
msgstr ""
"Project-Id-Version: libconversion\n"
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
"POT-Creation-Date: 2020-05-31 17:58+0200\n"
-"PO-Revision-Date: 2011-04-07 01:13+0300\n"
-"Last-Translator: Cristian Oneț <[email protected]>\n"
-"Language-Team: Romanian <[email protected]>\n"
+"PO-Revision-Date: 2020-10-03 22:50+0100\n"
+"Last-Translator: Sergiu Bivol <[email protected]>\n"
+"Language-Team: Romanian\n"
"Language: ro\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Lokalize 1.2\n"
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
"20)) ? 1 : 2;\n"
+"X-Generator: Lokalize 19.12.3\n"
#: acceleration.cpp:16
#, kde-format
@@ -1161,17 +1160,15 @@
#: binary_data.cpp:41
#, kde-format
msgid "Binary Data"
-msgstr ""
+msgstr "Date binare"
#: binary_data.cpp:41
#, kde-format
msgid "Binary Data Size"
-msgstr ""
+msgstr "Dimensiune date binare"
#: binary_data.cpp:43
-#, fuzzy, kde-format
-#| msgctxt "%1 value, %2 unit symbol (acceleration)"
-#| msgid "%1 %2"
+#, kde-format
msgctxt "%1 value, %2 unit symbol (binary data)"
msgid "%1 %2"
msgstr "%1 %2"
@@ -1180,7 +1177,7 @@
#, kde-format
msgctxt "binary data unit symbol"
msgid "YiB"
-msgstr ""
+msgstr "YiO"
#: binary_data.cpp:47
#, kde-format
@@ -1218,13 +1215,13 @@
#, kde-format
msgctxt "binary data unit symbol"
msgid "Yib"
-msgstr ""
+msgstr "Yib"
#: binary_data.cpp:56
#, kde-format
msgctxt "unit description in lists"
msgid "yobibits"
-msgstr ""
+msgstr "yobibiți"
#: binary_data.cpp:58
#, kde-format
@@ -1233,38 +1230,31 @@
msgstr ""
#: binary_data.cpp:60
-#, fuzzy, kde-format
-#| msgctxt "amount in units (real)"
-#| msgid "%1 yottaliters"
+#, kde-format
msgctxt "amount in units (real)"
msgid "%1 yobibits"
-msgstr "%1 yottalitri"
+msgstr "%1 yobibiți"
#: binary_data.cpp:61
-#, fuzzy, kde-format
-#| msgctxt "amount in units (integer)"
-#| msgid "%1 yottaliter"
-#| msgid_plural "%1 yottaliters"
+#, kde-format
msgctxt "amount in units (integer)"
msgid "%1 yobibit"
msgid_plural "%1 yobibits"
-msgstr[0] "%1 yottalitru"
-msgstr[1] "%1 yottalitri"
-msgstr[2] "%1 de yottalitri"
+msgstr[0] "%1 yobibit"
+msgstr[1] "%1 yobibiți"
+msgstr[2] "%1 de yobibiți"
#: binary_data.cpp:64
#, kde-format
msgctxt "binary data unit symbol"
msgid "YB"
-msgstr ""
+msgstr "YO"
#: binary_data.cpp:65
-#, fuzzy, kde-format
-#| msgctxt "unit description in lists"
-#| msgid "yottameters"
+#, kde-format
msgctxt "unit description in lists"
msgid "yottabytes"
-msgstr "yottametri"
+msgstr "yottaocteți"
#: binary_data.cpp:67
#, fuzzy, kde-format
@@ -1275,72 +1265,58 @@
msgstr "yottametru;yottametri;Ym"
#: binary_data.cpp:69
-#, fuzzy, kde-format
-#| msgctxt "amount in units (real)"
-#| msgid "%1 yottameters"
+#, kde-format
msgctxt "amount in units (real)"
msgid "%1 yottabytes"
-msgstr "%1 yottametri"
+msgstr "%1 yottaocteți"
#: binary_data.cpp:70
-#, fuzzy, kde-format
-#| msgctxt "amount in units (integer)"
-#| msgid "%1 yottameter"
-#| msgid_plural "%1 yottameters"
+#, kde-format
msgctxt "amount in units (integer)"
msgid "%1 yottabyte"
msgid_plural "%1 yottabytes"
-msgstr[0] "%1 yottametru"
-msgstr[1] "%1 yottametri"
-msgstr[2] "%1 de yottametri"
+msgstr[0] "%1 yottaoctet"
+msgstr[1] "%1 yottaocteți"
+msgstr[2] "%1 de yottaocteți"
#: binary_data.cpp:73
#, kde-format
msgctxt "binary data unit symbol"
msgid "Yb"
-msgstr ""
+msgstr "Yb"
#: binary_data.cpp:74
-#, fuzzy, kde-format
-#| msgctxt "unit description in lists"
-#| msgid "yottaliters"
+#, kde-format
msgctxt "unit description in lists"
msgid "yottabits"
-msgstr "yottalitri"
+msgstr "yottabiți"
#: binary_data.cpp:76
-#, fuzzy, kde-format
-#| msgctxt "unit synonyms for matching user input"
-#| msgid "yottaliter;yottaliters;Yl"
+#, kde-format
msgctxt "unit synonyms for matching user input"
msgid "Yb;yottabit;yottabits"
-msgstr "yottalitru;yottalitri;Yl"
+msgstr "Yb;yottabit;yottabiți"
#: binary_data.cpp:78
-#, fuzzy, kde-format
-#| msgctxt "amount in units (real)"
-#| msgid "%1 yottaliters"
+#, kde-format
msgctxt "amount in units (real)"
msgid "%1 yottabits"
-msgstr "%1 yottalitri"
+msgstr "%1 yottabiți"
#: binary_data.cpp:79
-#, fuzzy, kde-format
-#| msgctxt "amount in units (integer)"
-#| msgid "%1 yottaliter"
-#| msgid_plural "%1 yottaliters"
+#, kde-format
msgctxt "amount in units (integer)"
msgid "%1 yottabit"
msgid_plural "%1 yottabits"
-msgstr[0] "%1 yottalitru"
-msgstr[1] "%1 yottalitri"
-msgstr[2] "%1 de yottalitri"
+msgstr[0] "%1 yottabit"
+msgstr[1] "%1 yottabiți"
+msgstr[2] "%1 de yottabiți"
#: binary_data.cpp:82
#, kde-format
msgctxt "binary data unit symbol"
msgid "ZiB"
-msgstr ""
+msgstr "ZiO"
#: binary_data.cpp:83
#, kde-format
@@ -1416,7 +1392,7 @@
#, kde-format
msgctxt "binary data unit symbol"
msgid "ZB"
-msgstr ""
+msgstr "ZO"
#: binary_data.cpp:101
#, fuzzy, kde-format
@@ -1458,7 +1434,7 @@
#, kde-format
msgctxt "binary data unit symbol"
msgid "Zb"
-msgstr ""
+msgstr "Zb"
#: binary_data.cpp:110
#, fuzzy, kde-format
@@ -1500,7 +1476,7 @@
#, kde-format
msgctxt "binary data unit symbol"
msgid "EiB"
-msgstr ""
+msgstr "EiO"
#: binary_data.cpp:119
#, kde-format
@@ -1538,7 +1514,7 @@
#, kde-format
msgctxt "binary data unit symbol"
msgid "Eib"
-msgstr ""
+msgstr "Eib"
#: binary_data.cpp:128
#, kde-format
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/po/uk/kunitconversion5.po
new/kunitconversion-5.75.0/po/uk/kunitconversion5.po
--- old/kunitconversion-5.74.0/po/uk/kunitconversion5.po 2020-09-06
12:37:21.000000000 +0200
+++ new/kunitconversion-5.75.0/po/uk/kunitconversion5.po 2020-10-04
20:54:32.000000000 +0200
@@ -9,14 +9,14 @@
"Project-Id-Version: kunitconversion5\n"
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
"POT-Creation-Date: 2020-05-31 17:58+0200\n"
-"PO-Revision-Date: 2020-06-06 22:42+0300\n"
+"PO-Revision-Date: 2020-09-11 12:38+0300\n"
"Last-Translator: Yuri Chornoivan <[email protected]>\n"
"Language-Team: Ukrainian <[email protected]>\n"
"Language: uk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Lokalize 20.07.70\n"
+"X-Generator: Lokalize 20.11.70\n"
"Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n"
"%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
@@ -8365,7 +8365,7 @@
#, kde-format
msgctxt "amount in units (real)"
msgid "%1 revolutions per minute"
-msgstr "%1 обертаня на хвилину"
+msgstr "%1 обертання на хвилину"
#: frequency.cpp:195
#, kde-format
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/po/zh_CN/kunitconversion5.po
new/kunitconversion-5.75.0/po/zh_CN/kunitconversion5.po
--- old/kunitconversion-5.74.0/po/zh_CN/kunitconversion5.po 2020-09-06
12:37:21.000000000 +0200
+++ new/kunitconversion-5.75.0/po/zh_CN/kunitconversion5.po 2020-10-04
20:54:32.000000000 +0200
@@ -20,7 +20,7 @@
"Project-Id-Version: kdeorg\n"
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
"POT-Creation-Date: 2020-05-31 17:58+0200\n"
-"PO-Revision-Date: 2020-09-05 05:17\n"
+"PO-Revision-Date: 2020-09-23 12:19\n"
"Last-Translator: \n"
"Language-Team: Chinese Simplified\n"
"Language: zh_CN\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/src/converter.h
new/kunitconversion-5.75.0/src/converter.h
--- old/kunitconversion-5.74.0/src/converter.h 2020-09-06 12:37:21.000000000
+0200
+++ new/kunitconversion-5.75.0/src/converter.h 2020-10-04 20:54:32.000000000
+0200
@@ -24,12 +24,8 @@
/**
* @short Class for converting values between units of measurement
*
- * @since 4.4
- *
* This is a class to convert values between different units of measurement.
*
- * @b license GNU-LGPL v.2 or later
- *
* @see Unit, UnitCategory, Value
*
* @author Petri Damstén <[email protected]>
@@ -111,7 +107,7 @@
/**
* Find unit for unit enum.
*
- * @param unit unit enum to find unit for.
+ * @param unitId unit enum to find unit for.
* @return unit for string unit
**/
Unit unit(UnitId unitId) const;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/src/unit.h
new/kunitconversion-5.75.0/src/unit.h
--- old/kunitconversion-5.74.0/src/unit.h 2020-09-06 12:37:21.000000000
+0200
+++ new/kunitconversion-5.75.0/src/unit.h 2020-10-04 20:54:32.000000000
+0200
@@ -407,12 +407,8 @@
/**
* @short Class to define a unit of measurement
*
- * @since 4.4
- *
* This is a class to define a unit of measurement.
*
- * @b license GNU-LGPL v.2 or later
- *
* @see Converter, UnitCategory, Value
*
* @author Petri Damstén <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/src/unitcategory.h
new/kunitconversion-5.75.0/src/unitcategory.h
--- old/kunitconversion-5.74.0/src/unitcategory.h 2020-09-06
12:37:21.000000000 +0200
+++ new/kunitconversion-5.75.0/src/unitcategory.h 2020-10-04
20:54:32.000000000 +0200
@@ -25,12 +25,8 @@
/**
* @short Class to define a category of units of measurement
*
- * @since 4.4
- *
* This is a class to define a category of units of measurement.
*
- * @b license GNU-LGPL v.2 or later
- *
* @see Converter, Unit, Value
*
* @author Petri Damstén <[email protected]>
@@ -152,14 +148,30 @@
QStringList allUnits() const;
/**
- * Convert value to another unit.
+ * Convert value to another unit selected by string.
*
* @param value value to convert
* @param toUnit unit to convert to. If empty default unit is used.
* @return converted value
**/
Value convert(const Value &value, const QString &toUnit = QString());
+
+ /**
+ * Convert value to another unit selected by enum.
+ *
+ * @param value value to convert
+ * @param toUnit unit to convert to.
+ * @return converted value
+ **/
Value convert(const Value &value, UnitId toUnit);
+
+ /**
+ * Convert value to another unit.
+ *
+ * @param value value to convert
+ * @param toUnit unit to be used for conversion
+ * @return converted value
+ **/
virtual Value convert(const Value &value, const Unit &toUnit);
protected:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kunitconversion-5.74.0/src/value.h
new/kunitconversion-5.75.0/src/value.h
--- old/kunitconversion-5.74.0/src/value.h 2020-09-06 12:37:21.000000000
+0200
+++ new/kunitconversion-5.75.0/src/value.h 2020-10-04 20:54:32.000000000
+0200
@@ -25,12 +25,8 @@
/**
* @short Class to hold a value in a unit of measurement
*
- * @since 4.4
- *
* This is a class to hold a value in a unit of measurement.
*
- * @b license GNU-LGPL v.2 or later
- *
* @see Converter, Unit, UnitCategory
*
* @author Petri Damstén <[email protected]>