From kde-commits Tue Sep 11 17:09:33 2018 From: Yuri Chornoivan Date: Tue, 11 Sep 2018 17:09:33 +0000 To: kde-commits Subject: [knewstuff] /: Fix minor EBN issues Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=153668578608607 Git commit 0c01bf17c5f0373412ef8dda058b733858598b0c by Yuri Chornoivan. Committed on 11/09/2018 at 17:09. Pushed by yurchor into branch 'master'. Fix minor EBN issues M +1 -1 src/core/engine.h M +1 -1 src/core/question.h M +1 -1 src/kmoretools/kmoretools.cpp M +3 -3 src/kmoretools/kmoretools.h M +4 -4 src/kmoretools/kmoretools_p.h M +3 -3 src/kmoretools/kmoretoolspresets.h M +1 -1 src/uploaddialog.h M +2 -2 tests/khotnewstuff_test.h https://commits.kde.org/knewstuff/0c01bf17c5f0373412ef8dda058b733858598b0c diff --git a/src/core/engine.h b/src/core/engine.h index 05b7dee..7e814cb 100644 --- a/src/core/engine.h +++ b/src/core/engine.h @@ -189,7 +189,7 @@ public: * out entries marked as ghns_exclude=3D1. To retain this when setting= a custom * filter, add "ghns_exclude!=3D1" as one of the filters. * - * @note Some tags provided by OCS do not supply a value (and are simp= ly passsed + * @note Some tags provided by OCS do not supply a value (and are simp= ly passed * as a key). These will be interpreted as having the value 1 for filt= ering * purposes. An example of this might be ghns_exclude, which in realit= y will * generally be passed through ocs as "ghns_exclude" rather than "ghns= _exclude=3D1" diff --git a/src/core/question.h b/src/core/question.h index 1ac56c8..b961d16 100644 --- a/src/core/question.h +++ b/src/core/question.h @@ -27,7 +27,7 @@ namespace KNSCore { /** - * @short A way to ask a user a question from insude a GUI-less library (l= ike KNewStuffCore) + * @short A way to ask a user a question from inside a GUI-less library (l= ike KNewStuffCore) * * Rather than using a message box (which is a UI thing), when you want to= ask your user * a question, create an instance of this class and use that instead. The = consuming library diff --git a/src/kmoretools/kmoretools.cpp b/src/kmoretools/kmoretools.cpp index a164739..01f195f 100644 --- a/src/kmoretools/kmoretools.cpp +++ b/src/kmoretools/kmoretools.cpp @@ -70,7 +70,7 @@ public: * 'uniqueId' =3D @see uniqueId() * * @param can be a filename with or without relative path. But no abso= lute path. - * @returns the first occurence if there are more than one found + * @returns the first occurrence if there are more than one found */ QString findFileInKmtDesktopfilesDir(const QString& filename) { diff --git a/src/kmoretools/kmoretools.h b/src/kmoretools/kmoretools.h index 4d7f1db..8feb8e7 100644 --- a/src/kmoretools/kmoretools.h +++ b/src/kmoretools/kmoretools.h @@ -58,7 +58,7 @@ class KMoreToolsPrivate; * - Provide an API to define external applications for a given context. * - If a defined application is not installed (yet) the application is (o= ptionally) * still presented to the user with a hint that it is not installed and= a link - * to the homepage (later with integration to package managment). + * to the homepage (later with integration to package management). * This increases the discoverability of useful applications the user n= ever * heard about yet. * - In case of many applications for a given context, it provides a GUI t= o the @@ -260,7 +260,7 @@ public: * 2) the location where the kmt-desktopfiles should be installed beca= use * there they will be searched by default. * If @p uniqueId contains slashes they will result in subdirectori= es. - * The default location can be overriden by + * The default location can be overridden by * registerServiceByDesktopEntryName's kmtDesktopfileSubdir paramet= er. * This is currently used in KMoreToolsPresets implementation to * separate the kmt-desktopfiles location from the user's config se= ction @@ -439,7 +439,7 @@ public: /** * In KMoreToolsMenuFactory some minor magic is done. In the context of * connecting the action trigger signal we need to know the maximum nu= mber - * of URL arguments a given service can accept. Usaually a number betw= een + * of URL arguments a given service can accept. Usually a number betwe= en * 0 and 1. Sometimes 2. * E.g. kdf must not be called with any positional argument. * E.g. gitg can be called with zero or one arguments. diff --git a/src/kmoretools/kmoretools_p.h b/src/kmoretools/kmoretools_p.h index 3dce441..86c20d9 100644 --- a/src/kmoretools/kmoretools_p.h +++ b/src/kmoretools/kmoretools_p.h @@ -105,7 +105,7 @@ public: } = /** - * todo: is there a QT method that can be used insted of this? + * todo: is there a QT method that can be used instead of this? */ static QString removeMenuAmpersand(const QString& str) { @@ -232,7 +232,7 @@ public: // should be private but we would like to unit = test = public: /** - * moves an item up or down respecting its catgory + * moves an item up or down respecting its category * @param direction: 1: down, -1: up */ void moveWithinSection(const QString& id, int direction) @@ -331,7 +331,7 @@ public: const auto a =3D item->action(); KmtMenuItemDto dto; dto.id =3D item->id(); - dto.text =3D a->text(); // might be overriden, so we use direc= tly from QAction + dto.text =3D a->text(); // might be overridden, so we use dire= ctly from QAction dto.icon =3D a->icon(); dto.isInstalled =3D true; dto.menuSection =3D KMoreTools::MenuSection_Main; @@ -342,7 +342,7 @@ public: const auto a =3D item->action(); KmtMenuItemDto dto; dto.id =3D item->id(); - dto.text =3D a->text(); // might be overriden, so we use direc= tly from QAction + dto.text =3D a->text(); // might be overridden, so we use dire= ctly from QAction dto.icon =3D a->icon(); dto.isInstalled =3D true; dto.menuSection =3D KMoreTools::MenuSection_More; diff --git a/src/kmoretools/kmoretoolspresets.h b/src/kmoretools/kmoretools= presets.h index 6306242..eebfa03 100644 --- a/src/kmoretools/kmoretoolspresets.h +++ b/src/kmoretools/kmoretoolspresets.h @@ -37,7 +37,7 @@ class KMoreToolsService; * registerServicesByGroupingNames takes a list of a set of predefined * grouping names and returns a list KMoreToolsService instances. Remember, * a KMoreToolsService represents a service which might or might not be - * installed on the current maschine. + * installed on the current machine. * * The groupings defined here are used for the KMoreToolsMenuFactory. * @@ -69,7 +69,7 @@ public: * where the search should be started. * * - "font-tools" (since 5.37.0) - * Tools to manage and analyse fonts. + * Tools to manage and analyze fonts. * * - "git-clients-for-folder" * Collection of git clients which all take 1 URL argument pointi= ng @@ -97,7 +97,7 @@ public: * Tools related to the mouse pointer device. * * - "screenrecorder" (since 5.37.0) - * Record screen contents to a video file (including animatated g= if). + * Record screen contents to a video file (including animated gif= ). * * - "screenshot-take" * Tools for taking and maybe also editing screenshots. diff --git a/src/uploaddialog.h b/src/uploaddialog.h index 3c59045..3c1b2e5 100644 --- a/src/uploaddialog.h +++ b/src/uploaddialog.h @@ -117,7 +117,7 @@ public: // void setLicense(License license); = /** - Set one of the threee preview images displayed in the upload dialog. + Set one of the three preview images displayed in the upload dialog. The user can still change this. @param number The number of the preview image to set, either 1, 2, o= r 3. @param file A URL to the file to be used as preview image diff --git a/tests/khotnewstuff_test.h b/tests/khotnewstuff_test.h index 9554ad1..e392b99 100644 --- a/tests/khotnewstuff_test.h +++ b/tests/khotnewstuff_test.h @@ -17,8 +17,8 @@ License along with this library. If not, see . */ = -#ifndef KNEWSTUFF2_TEST_TEST_H -#define KNEWSTUFF2_TEST_TEST_H +#ifndef KHOTNEWSTUFF_TEST_H +#define KHOTNEWSTUFF_TEST_H = #include #include