Fix minor issues found by EBN and typos

This commit is contained in:
Yuri Chornoivan 2019-11-10 12:06:10 +02:00
parent 14f0508478
commit 052a81f755
33 changed files with 51 additions and 47 deletions

View File

@ -16,8 +16,8 @@
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301, USA. *
*******************************************************************************/
#ifndef DIALOGTEST_H
#define DIALOGTEST_H
#ifndef DIALOGNATIVETEST_H
#define DIALOGNATIVETEST_H
#include <QtTest>
#include <QQuickView>

View File

@ -16,8 +16,8 @@
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301, USA. *
*******************************************************************************/
#ifndef DIALOLOADGTEST_H
#define DIALOLOADGTEST_H
#ifndef DIALOGQMLTEST_H
#define DIALOGQMLTEST_H
#include <QtTest>

View File

@ -16,8 +16,8 @@
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301, USA. *
*******************************************************************************/
#ifndef DIALOGTEST_H
#define DIALOGTEST_H
#ifndef DIALOGSTATETEST_H
#define DIALOGSTATETEST_H
#include <QtTest>

View File

@ -17,8 +17,8 @@
* Boston, MA 02110-1301, USA. *
*******************************************************************************/
#ifndef PLUGINTEST_H
#define PLUGINTEST_H
#ifndef PLUGINLOADERTEST_H
#define PLUGINLOADERTEST_H
#include <QCoreApplication>
#include <plasma/dataengine.h>

View File

@ -16,6 +16,8 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef UTILS_H
#define UTILS_H
#include <QString>
#include <QDir>
@ -65,3 +67,5 @@ static void installPlasmaTheme(const QString &theme = QStringLiteral("breeze"))
} //TestUtils
} //Plasma
#endif

View File

@ -92,4 +92,4 @@ Rectangle {
Component.onCompleted: {
print("Test Applet loaded")
}
}
}

View File

@ -73,4 +73,4 @@ Item {
}
}
}
}

View File

@ -100,4 +100,4 @@ Item {
//dataSource.engine = "org.kde.foobar"
// tabGroup.currentTab = mousePage;
}
}
}

View File

@ -118,4 +118,4 @@ ShaderExample {
}
}
}
}
}

View File

@ -56,4 +56,4 @@ PlasmaComponents.Page {
}
text: pageDescription
}
}
}

View File

@ -238,4 +238,4 @@ ShaderExample {
}
}
}
}

View File

@ -89,4 +89,4 @@ Item {
Component.onCompleted: {
print("Shader Test Applet loaded");
}
}
}

View File

@ -113,4 +113,4 @@ Item {
Component.onCompleted: {
print("Components Test Applet loaded");
}
}
}

View File

@ -50,4 +50,4 @@ Item {
print("Test Containment loaded")
print(plasmoid)
}
}
}

View File

@ -83,7 +83,7 @@ class SortFilterModel : public QSortFilterProxyModel
Q_PROPERTY(Qt::SortOrder sortOrder READ sortOrder WRITE setSortOrder)
/**
* Specify which column shoud be used for sorting
* Specify which column should be used for sorting
*/
Q_PROPERTY(int sortColumn READ sortColumn WRITE setSortColumn NOTIFY sortColumnChanged)

View File

@ -44,7 +44,7 @@ class FullScreenWindow : public QDeclarativeItem
Q_PROPERTY(DialogStatus::Status status READ status NOTIFY statusChanged)
public:
explcit FullScreenWindow(QDeclarativeItem *parent = nullptr);
explicit FullScreenWindow(QDeclarativeItem *parent = nullptr);
~FullScreenWindow() override;
QGraphicsObject *mainItem() const;

View File

@ -52,7 +52,7 @@ QtQuickControlStyle.TextFieldStyle {
background: Item {
//QQC button heights are max(backgroundHeight, label + margins).
//QQC lineedits are only from the background (and if background is not set, just an arbirtrary value of 25)
//QQC lineedits are only from the background (and if background is not set, just an arbitrary value of 25)
//Why? I don't know
//In order to get the same height in both buttons and lineedits we need to apply the same rule here

View File

@ -393,7 +393,7 @@ public:
void setGlobalShortcut(const QKeySequence &shortcut);
/**
* @return the global shortcut associated with this wiget, or
* @return the global shortcut associated with this widget, or
* an empty shortcut if no global shortcut is associated.
*/
QKeySequence globalShortcut() const;
@ -510,7 +510,7 @@ Q_SIGNALS:
/**
* Emitted when activation is requested due to, for example, a global
* keyboard shortcut. By default the wiget is given focus.
* keyboard shortcut. By default the widget is given focus.
*/
void activated();

View File

@ -55,7 +55,7 @@ public:
* Accessor for the associated Package object if any.
* A Corona package defines how Containments are laid out in a View,
* ToolBoxes, default layout, error messages
* and in genelal all the furniture specific of a particular
* and in general all the furniture specific of a particular
* device form factor.
*
* @return the Package object, or an invalid one if none

View File

@ -169,19 +169,19 @@ public:
enum PopupPlacement {
FloatingPopup = 0, /**< Free floating, non attached popup */
TopPosedLeftAlignedPopup, /**< Popup positioned on the top, aligned
to the left of the wigdet */
to the left of the widget */
TopPosedRightAlignedPopup, /**< Popup positioned on the top, aligned
to the right of the widget */
LeftPosedTopAlignedPopup, /**< Popup positioned on the left, aligned
to the top of the wigdet */
to the top of the widget */
LeftPosedBottomAlignedPopup, /**< Popup positioned on the left, aligned
to the bottom of the widget */
BottomPosedLeftAlignedPopup, /**< Popup positioned on the bottom, aligned
to the left of the wigdet */
to the left of the widget */
BottomPosedRightAlignedPopup, /**< Popup positioned on the bottom, aligned
to the right of the widget */
RightPosedTopAlignedPopup, /**< Popup positioned on the right, aligned
to the top of the wigdet */
to the top of the widget */
RightPosedBottomAlignedPopup /**< Popup positioned on the right, aligned
to the bottom of the widget */
};

View File

@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef PLASMA_DATAENGINEMANAGER_H
#define PLASMA_DATAENGINEMANAGER_H
#ifndef PLASMA_DATAENGINEMANAGER_P_H
#define PLASMA_DATAENGINEMANAGER_P_H
#include <plasma/dataengine.h>

View File

@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef BLURWATCHER_H
#define BLURWATCHER_H
#ifndef EFFECTWATCHER_P_H
#define EFFECTWATCHER_P_H
#include <QObject>

View File

@ -20,8 +20,8 @@
// 02110-1301 USA //
/////////////////////////////////////////////////////////////////////////
#ifndef PLASMA_STORAGE_H
#define PLASMA_STORAGE_H
#ifndef PLASMA_STORAGE_P_H
#define PLASMA_STORAGE_P_H
#include <QSqlDatabase>
@ -72,4 +72,4 @@ private:
QString m_clientName;
};
#endif //PLASMA_STORAGE_H
#endif //PLASMA_STORAGE_P_H

View File

@ -443,7 +443,7 @@ public:
* the TextColor will become HighlightedText color and BackgroundColor
* will become HighlightColor, making the svg graphics (for instance an icon)
* will look correct together selected text
* Supported statuss as of 5.23 are Normal and Selected
* Supported statuses as of 5.23 are Normal and Selected
* @since 5.23
*/
void setStatus(Svg::Status status);

View File

@ -85,7 +85,7 @@ public:
Q_INVOKABLE void appendCategory(const QString &iconName, const QString &name,
const QString &path, const QString &pluginName, bool visible);
// QML Engine isn't particularily smart resolving namespaces, hence fully qualified signature
// QML Engine isn't particularly smart resolving namespaces, hence fully qualified signature
Q_INVOKABLE void appendCategory(PlasmaQuick::ConfigCategory *category);
Q_INVOKABLE void removeCategory(PlasmaQuick::ConfigCategory *category);

View File

@ -175,7 +175,7 @@ void AppletInterface::init()
connect(applet(), &Plasma::Applet::activated, this,
[ = ]() {
// in case the applet doesn't want to get shrinked on reactivation,
// in case the applet doesn't want to get shrunk on reactivation,
// we always expand it again (only in order to conform with legacy behaviour)
bool activate = !( isExpanded() && isActivationTogglesExpanded() );

View File

@ -84,4 +84,4 @@ ColumnLayout {
text: "switch"
onClicked: widgetsParent.parent == rect2 ? widgetsParent.parent = rect1 : widgetsParent.parent = rect2
}
}
}

View File

@ -38,4 +38,4 @@ Rectangle {
}
}
}
}
}

View File

@ -37,4 +37,4 @@ Rectangle {
height: 100
}
}
}
}

View File

@ -29,7 +29,7 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
ColumnLayout
{
Controls.Label {
text: "Press the buttom and make sure the popup is on the correct place"
text: "Press the button and make sure the popup is on the correct place"
wrapMode: Text.WordWrap
}
PlasmaComponents.Button {

View File

@ -32,7 +32,7 @@ ColumnLayout
height: units.gridUnit * 20
Controls.Label {
id: label
text: "Press the buttom and make sure the popup is on the correct place"
text: "Press the button and make sure the popup is on the correct place"
wrapMode: Text.WordWrap
}
PlasmaComponents.Button {

View File

@ -17,8 +17,8 @@
* Boston, MA 02110-1301, USA. *
*******************************************************************************/
#ifndef PLUGINTEST_H
#define PLUGINTEST_H
#ifndef DPITEST_H
#define DPITEST_H
#include <QCoreApplication>
#include <QGuiApplication>

View File

@ -21,8 +21,8 @@
* A data engine meant to test the Plasma data engine explorer.
*/
#ifndef __TESTDATAENGINE_H__
#define __TESTDATAENGINE_H__
#ifndef __TESTENGINE_H__
#define __TESTENGINE_H__
#include "plasma/dataengine.h"
@ -44,4 +44,4 @@ protected:
bool sourceRequestEvent(const QString &source) override;
};
#endif // __TESTDATAENGINE_H__
#endif // __TESTENGINE_H__