Fix typos found by codespell
GIT_SILENT
This commit is contained in:
parent
057b744762
commit
1587ead53e
@ -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.
|
||||||
|
@ -29,7 +29,7 @@ bool DataContainersEngine::sourceRequestEvent(const QString &source)
|
|||||||
// This engine will fetch webpages over http. First thing we do is check
|
// This engine will fetch webpages over http. First thing we do is check
|
||||||
// the source to make sure it is indeed an http URL.
|
// the source to make sure it is indeed an http URL.
|
||||||
QUrl url(source);
|
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)) {
|
if (!url.scheme().startsWith(QLatin1String("http"), Qt::CaseInsensitive)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ ENDFOREACH(infileName)
|
|||||||
#install the components as a QQC2 Style, as style for applications (mainly for Plasma Mobile)
|
#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(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/
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/plasmacomponents3/
|
||||||
DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/components.3)
|
DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/components.3)
|
||||||
|
|
||||||
|
@ -30,5 +30,5 @@ void CalendarPlugin::registerTypes(const char *uri)
|
|||||||
qmlRegisterAnonymousType<QAbstractItemModel>(uri, 1);
|
qmlRegisterAnonymousType<QAbstractItemModel>(uri, 1);
|
||||||
qmlRegisterAnonymousType<QAbstractListModel>(uri, 1);
|
qmlRegisterAnonymousType<QAbstractListModel>(uri, 1);
|
||||||
qmlRegisterSingletonType<EventPluginsManager>(uri, 2, 0, "EventPluginsManager", event_plugins_manager_provider);
|
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"));
|
||||||
}
|
}
|
||||||
|
@ -208,7 +208,7 @@ void DaysModel::onEventRemoved(const QString &uid)
|
|||||||
// using beginResetModel() since this creates a small visual glitches
|
// using beginResetModel() since this creates a small visual glitches
|
||||||
// if an event is removed in Korganizer and the calendar is open.
|
// if an event is removed in Korganizer and the calendar is open.
|
||||||
// Using beginRemoveRows instead we make the code a lot more complex
|
// 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();
|
beginResetModel();
|
||||||
QList<QDate> updatesList;
|
QList<QDate> updatesList;
|
||||||
auto i = m_eventsData.begin();
|
auto i = m_eventsData.begin();
|
||||||
|
@ -229,7 +229,7 @@ PinchArea { // TODO KF6 switch to Item
|
|||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: viewHeader
|
id: viewHeader
|
||||||
visible: !showCustomHeader
|
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.
|
// include the height even if it is invisible.
|
||||||
height: !visible ? 0 : implicitHeight
|
height: !visible ? 0 : implicitHeight
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -237,7 +237,7 @@ public:
|
|||||||
/// @endcond
|
/// @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
|
* sizes larger than iconSizes.huge, it will be returned unmodified
|
||||||
* @param int size the size we want to be rounded down
|
* @param int size the size we want to be rounded down
|
||||||
* @see iconSizes
|
* @see iconSizes
|
||||||
|
@ -38,7 +38,7 @@ T.TextField {
|
|||||||
// Can't guarantee that background will always be present or have the margins property
|
// Can't guarantee that background will always be present or have the margins property
|
||||||
readonly property bool __hasBackgroundAndMargins: background && background.hasOwnProperty("margins")
|
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
|
* want content to stay within the background rather than expanding the
|
||||||
* control, but this is maintaining compatibility with the pre-existing
|
* control, but this is maintaining compatibility with the pre-existing
|
||||||
* behavior. Use the following 2 lines if you want text to stay within the
|
* behavior. Use the following 2 lines if you want text to stay within the
|
||||||
|
@ -212,7 +212,7 @@ public:
|
|||||||
* Saves state information about this applet that will
|
* Saves state information about this applet that will
|
||||||
* be accessed when next instantiated in the restore(KConfigGroup&) method.
|
* 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
|
* subclasses, but can be useful for Applet specializations
|
||||||
* (such as Containment) to do so.
|
* (such as Containment) to do so.
|
||||||
*
|
*
|
||||||
@ -224,7 +224,7 @@ public:
|
|||||||
* Restores state information about this applet saved previously
|
* Restores state information about this applet saved previously
|
||||||
* in save(KConfigGroup&).
|
* 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
|
* subclasses, but can be useful for Applet specializations
|
||||||
* (such as Containment) to do so.
|
* (such as Containment) to do so.
|
||||||
**/
|
**/
|
||||||
@ -487,7 +487,7 @@ public:
|
|||||||
bool hasConfigurationInterface() const;
|
bool hasConfigurationInterface() const;
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
// BOOKEEPING
|
// BOOKKEEPING
|
||||||
/**
|
/**
|
||||||
* Emitted when the immutability changes
|
* Emitted when the immutability changes
|
||||||
* @since 4.4
|
* @since 4.4
|
||||||
|
@ -109,7 +109,7 @@ void DataEngine::connectSource(const QString &source, QObject *visualization, ui
|
|||||||
|
|
||||||
if (s) {
|
if (s) {
|
||||||
// we suppress the immediate invocation of dataUpdated here if the
|
// 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
|
// (we want to do an immediate update in that case so they don't
|
||||||
// have to wait for the first time out)
|
// have to wait for the first time out)
|
||||||
if (newSource && !s->data().isEmpty()) {
|
if (newSource && !s->data().isEmpty()) {
|
||||||
|
@ -174,7 +174,7 @@ public:
|
|||||||
* Returns a list of all known applets.
|
* Returns a list of all known applets.
|
||||||
* This may skip applets based on security settings and ExcludeCategories in the application's config.
|
* 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.
|
* Useful in conjunction with knownCategories.
|
||||||
* If "Misc" is passed in, then applets without a
|
* If "Misc" is passed in, then applets without a
|
||||||
* Categories= entry are also returned.
|
* Categories= entry are also returned.
|
||||||
|
@ -222,7 +222,7 @@ void ContainmentPrivate::setStarted()
|
|||||||
|
|
||||||
void ContainmentPrivate::setUiReady()
|
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) {
|
if (!uiReady) {
|
||||||
uiReady = true;
|
uiReady = true;
|
||||||
if (q->Applet::d->started && (appletsUiReady || applets.isEmpty()) && loadingApplets.isEmpty()) {
|
if (q->Applet::d->started && (appletsUiReady || applets.isEmpty()) && loadingApplets.isEmpty()) {
|
||||||
|
@ -173,7 +173,7 @@ public:
|
|||||||
|
|
||||||
Types::Location location = Types::Floating;
|
Types::Location location = Types::Floating;
|
||||||
QString prefix;
|
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
|
// keep track of the requested one anyways, we'll try again when the theme changes
|
||||||
QString requestedPrefix;
|
QString requestedPrefix;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ QML applets should import org.kde.plasma.plasmoid 2.0 in order to access this at
|
|||||||
|
|
||||||
|
|
||||||
- WallpaperInterface
|
- 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
|
It does not require any special imports
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class PlasmaNamesEffect(pathmodifier.PathModifier):
|
|||||||
else:
|
else:
|
||||||
return
|
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
|
minX = 9999
|
||||||
minY = 9999
|
minY = 9999
|
||||||
minWidth = 9999
|
minWidth = 9999
|
||||||
|
@ -83,7 +83,7 @@ bool PluginTest::loadKPlugin()
|
|||||||
qDebug() << "loaded successfully and cast";
|
qDebug() << "loaded successfully and cast";
|
||||||
qDebug() << "metadata: " << loader.metaData();
|
qDebug() << "metadata: " << loader.metaData();
|
||||||
// QObject *o = factory->createPlugin("time");
|
// 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 = qobject_cast<Plasma::DataEngine*>(factory->create(this, QVariantList()));
|
||||||
Plasma::DataEngine *time_engine = nullptr;
|
Plasma::DataEngine *time_engine = nullptr;
|
||||||
// Plasma::DataEngine *time_engine = factory->create(this, QVariantList());
|
// Plasma::DataEngine *time_engine = factory->create(this, QVariantList());
|
||||||
@ -137,7 +137,7 @@ void PluginTest::loadKQPlugin()
|
|||||||
qDebug() << "loaded successfully and cast";
|
qDebug() << "loaded successfully and cast";
|
||||||
qDebug() << "metadata: " << loader.metaData();
|
qDebug() << "metadata: " << loader.metaData();
|
||||||
//QObject *o = factory->createPlugin("time");
|
//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 = qobject_cast<Plasma::DataEngine*>(factory->create(this, QVariantList()));
|
||||||
//Plasma::DataEngine *time_engine = factory->create(this, QVariantList());
|
//Plasma::DataEngine *time_engine = factory->create(this, QVariantList());
|
||||||
Plasma::DataEngine *time_engine = factory->createInstance<Plasma::DataEngine>(0, this, QVariantList());
|
Plasma::DataEngine *time_engine = factory->createInstance<Plasma::DataEngine>(0, this, QVariantList());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user