Fix typos found by codespell

GIT_SILENT
This commit is contained in:
Christophe Giboudeaux 2021-07-14 10:55:55 +02:00
parent 057b744762
commit 1587ead53e
16 changed files with 19 additions and 19 deletions

View File

@ -1 +1 @@
The SameGame example can interface with a simple PHP script to store XML high score data on a remote server. We do not have a publically accessible server available for this use, but if you have access to a PHP capable webserver you can copy the files (score_data.xml, score.php, score_style.xsl) to it and alter the highscore_server variable at the top of the samegame.js file to point to it.
The SameGame example can interface with a simple PHP script to store XML high score data on a remote server. We do not have a publicly accessible server available for this use, but if you have access to a PHP capable webserver you can copy the files (score_data.xml, score.php, score_style.xsl) to it and alter the highscore_server variable at the top of the samegame.js file to point to it.

View File

@ -29,7 +29,7 @@ bool DataContainersEngine::sourceRequestEvent(const QString &source)
// This engine will fetch webpages over http. First thing we do is check
// the source to make sure it is indeed an http URL.
QUrl url(source);
qDebug() << "goin to fetch" << source << url << url.scheme();
qDebug() << "going to fetch" << source << url << url.scheme();
if (!url.scheme().startsWith(QLatin1String("http"), Qt::CaseInsensitive)) {
return false;
}

View File

@ -31,7 +31,7 @@ ENDFOREACH(infileName)
#install the components as a QQC2 Style, as style for applications (mainly for Plasma Mobile)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/plasmacomponents3/ DESTINATION ${KDE_INSTALL_QMLDIR}/QtQuick/Controls.2/Plasma)
#install some of the componets as a separate import, to be used in plasmoids (some of them like ApplicationWindow are of no use for plasmoids)
#install some of the components as a separate import, to be used in plasmoids (some of them like ApplicationWindow are of no use for plasmoids)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/plasmacomponents3/
DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/components.3)

View File

@ -30,5 +30,5 @@ void CalendarPlugin::registerTypes(const char *uri)
qmlRegisterAnonymousType<QAbstractItemModel>(uri, 1);
qmlRegisterAnonymousType<QAbstractListModel>(uri, 1);
qmlRegisterSingletonType<EventPluginsManager>(uri, 2, 0, "EventPluginsManager", event_plugins_manager_provider);
qmlRegisterUncreatableType<EventDataDecorator>(uri, 2, 0, "EventDataDecorator", QStringLiteral("Unabel to create EventDataDecorator from QML"));
qmlRegisterUncreatableType<EventDataDecorator>(uri, 2, 0, "EventDataDecorator", QStringLiteral("Unable to create EventDataDecorator from QML"));
}

View File

@ -208,7 +208,7 @@ void DaysModel::onEventRemoved(const QString &uid)
// using beginResetModel() since this creates a small visual glitches
// if an event is removed in Korganizer and the calendar is open.
// Using beginRemoveRows instead we make the code a lot more complex
// and if not done correcly will introduce bugs.
// and if not done correctly will introduce bugs.
beginResetModel();
QList<QDate> updatesList;
auto i = m_eventsData.begin();

View File

@ -229,7 +229,7 @@ PinchArea { // TODO KF6 switch to Item
ColumnLayout {
id: viewHeader
visible: !showCustomHeader
// Make sure the height of the invible item is zero, otherwise anchoring to the iten will
// Make sure the height of the invisible item is zero, otherwise anchoring to the item will
// include the height even if it is invisible.
height: !visible ? 0 : implicitHeight
width: parent.width

View File

@ -237,7 +237,7 @@ public:
/// @endcond
/**
* @return a size rounded tothe nearest inferior standard icon size.
* @return a size rounded to the nearest inferior standard icon size.
* sizes larger than iconSizes.huge, it will be returned unmodified
* @param int size the size we want to be rounded down
* @see iconSizes

View File

@ -38,7 +38,7 @@ T.TextField {
// Can't guarantee that background will always be present or have the margins property
readonly property bool __hasBackgroundAndMargins: background && background.hasOwnProperty("margins")
/* It might be preferrable to do background width OR content width if we
/* It might be preferable to do background width OR content width if we
* want content to stay within the background rather than expanding the
* control, but this is maintaining compatibility with the pre-existing
* behavior. Use the following 2 lines if you want text to stay within the

View File

@ -212,7 +212,7 @@ public:
* Saves state information about this applet that will
* be accessed when next instantiated in the restore(KConfigGroup&) method.
*
* This method does not need to be reimplmented by Applet
* This method does not need to be reimplemented by Applet
* subclasses, but can be useful for Applet specializations
* (such as Containment) to do so.
*
@ -224,7 +224,7 @@ public:
* Restores state information about this applet saved previously
* in save(KConfigGroup&).
*
* This method does not need to be reimplmented by Applet
* This method does not need to be reimplemented by Applet
* subclasses, but can be useful for Applet specializations
* (such as Containment) to do so.
**/
@ -487,7 +487,7 @@ public:
bool hasConfigurationInterface() const;
Q_SIGNALS:
// BOOKEEPING
// BOOKKEEPING
/**
* Emitted when the immutability changes
* @since 4.4

View File

@ -109,7 +109,7 @@ void DataEngine::connectSource(const QString &source, QObject *visualization, ui
if (s) {
// we suppress the immediate invocation of dataUpdated here if the
// source was prexisting and they don't request delayed updates
// source was preexisting and they don't request delayed updates
// (we want to do an immediate update in that case so they don't
// have to wait for the first time out)
if (newSource && !s->data().isEmpty()) {

View File

@ -174,7 +174,7 @@ public:
* Returns a list of all known applets.
* This may skip applets based on security settings and ExcludeCategories in the application's config.
*
* @param category Only applets matchin this category will be returned.
* @param category Only applets matching this category will be returned.
* Useful in conjunction with knownCategories.
* If "Misc" is passed in, then applets without a
* Categories= entry are also returned.

View File

@ -222,7 +222,7 @@ void ContainmentPrivate::setStarted()
void ContainmentPrivate::setUiReady()
{
// if we are the containment and there is still some uncomplete applet, we're still incomplete
// if we are the containment and there is still some incomplete applet, we're still incomplete
if (!uiReady) {
uiReady = true;
if (q->Applet::d->started && (appletsUiReady || applets.isEmpty()) && loadingApplets.isEmpty()) {

View File

@ -173,7 +173,7 @@ public:
Types::Location location = Types::Floating;
QString prefix;
// sometimes the prefix we requested is not available, so prefix will be emoty
// sometimes the prefix we requested is not available, so prefix will be empty
// keep track of the requested one anyways, we'll try again when the theme changes
QString requestedPrefix;

View File

@ -13,7 +13,7 @@ QML applets should import org.kde.plasma.plasmoid 2.0 in order to access this at
- WallpaperInterface
which is exposed as to wallpapers as the attached propety "wallpaper".
which is exposed as to wallpapers as the attached property "wallpaper".
It does not require any special imports

View File

@ -47,7 +47,7 @@ class PlasmaNamesEffect(pathmodifier.PathModifier):
else:
return
#some euristics to normalize the values, find the least coords ans size
#some heuristics to normalize the values, find the least coords and size
minX = 9999
minY = 9999
minWidth = 9999

View File

@ -83,7 +83,7 @@ bool PluginTest::loadKPlugin()
qDebug() << "loaded successfully and cast";
qDebug() << "metadata: " << loader.metaData();
// QObject *o = factory->createPlugin("time");
// qDebug() << " objec name:" << o->objectName();
// qDebug() << " object name:" << o->objectName();
// Plasma::DataEngine *time_engine = qobject_cast<Plasma::DataEngine*>(factory->create(this, QVariantList()));
Plasma::DataEngine *time_engine = nullptr;
// Plasma::DataEngine *time_engine = factory->create(this, QVariantList());
@ -137,7 +137,7 @@ void PluginTest::loadKQPlugin()
qDebug() << "loaded successfully and cast";
qDebug() << "metadata: " << loader.metaData();
//QObject *o = factory->createPlugin("time");
//qDebug() << " objec name:" << o->objectName();
//qDebug() << " object name:" << o->objectName();
//Plasma::DataEngine *time_engine = qobject_cast<Plasma::DataEngine*>(factory->create(this, QVariantList()));
//Plasma::DataEngine *time_engine = factory->create(this, QVariantList());
Plasma::DataEngine *time_engine = factory->createInstance<Plasma::DataEngine>(0, this, QVariantList());