Skip to content

Commit 0baa81a

Browse files
committed
all: fix typos
1 parent 01834e9 commit 0baa81a

37 files changed

Lines changed: 54 additions & 52 deletions

src/core/colorquantizer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ColorQuantizer
8989

9090
/// The size to rescale the image to, when rescaleSize is 0 then no scaling will be done.
9191
/// > [!NOTE] Results from color quantization doesn't suffer much when rescaling, it's
92-
/// > reccommended to rescale, otherwise the quantization process will take much longer.
92+
/// > recommended to rescale, otherwise the quantization process will take much longer.
9393
Q_PROPERTY(qreal rescaleSize READ rescaleSize WRITE setRescaleSize NOTIFY rescaleSizeChanged);
9494

9595
public:

src/core/iconprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "generation.hpp"
1616

17-
// QMenu re-calls pixmap() every time the mouse moves so its important to cache it.
17+
// QMenu re-calls pixmap() every time the mouse moves so it's important to cache it.
1818
class PixmapCacheIconEngine: public QIconEngine {
1919
void paint(
2020
QPainter* /*unused*/,

src/core/logging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ void ThreadLogging::initFs() {
530530
Qt::QueuedConnection
531531
);
532532

533-
qCDebug(logLogging) << "Switched threaded logger to queued eventloop connection.";
533+
qCDebug(logLogging) << "Switched threaded logger to queued event loop connection.";
534534
}
535535

536536
void ThreadLogging::onMessage(const LogMessage& msg, bool showInSparse) {

src/core/qmlscreen.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/// Monitor object useful for setting the monitor for a @@QsWindow
1616
/// or querying information about the monitor.
1717
///
18-
/// > [!WARNING] If the monitor is disconnected than any stored copies of its ShellMonitor will
18+
/// > [!WARNING] If the monitor is disconnected, then any stored copies of its ShellMonitor will
1919
/// > be marked as dangling and all properties will return default values.
2020
/// > Reconnecting the monitor will not reconnect it to the ShellMonitor object.
2121
///

src/core/region.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ QRegion PendingRegion::applyTo(QRegion& region) const {
242242
}
243243

244244
QRegion PendingRegion::applyTo(const QRect& rect) const {
245-
// if left as the default, dont combine it with the whole rect area, leave it as is.
245+
// if left as the default, don't combine it with the whole rect area, leave it as is.
246246
if (this->mIntersection == Intersection::Combine) {
247247
return this->build();
248248
} else {

src/core/reload.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ QObject* Reloadable::getChildByReloadId(QObject* parent, const QString& reloadId
116116
auto* reloadable = qobject_cast<Reloadable*>(child);
117117
if (reloadable != nullptr) {
118118
if (reloadable->mReloadableId == reloadId) return reloadable;
119-
// if not then don't check its children as thats a seperate reload scope.
119+
// if not then don't check its children as that's a separate reload scope.
120120
} else {
121121
auto* reloadable = Reloadable::getChildByReloadId(child, reloadId);
122122
if (reloadable != nullptr) return reloadable;

src/core/reload.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Reloadable
2121
/// previous state.
2222
///
2323
/// Simply keeping a stable identifier across config versions (saves) is
24-
/// enough to help the reloader figure out which object in the old revision corrosponds to
24+
/// enough to help the reloader figure out which object in the old revision corresponds to
2525
/// this object in the current revision, and facilitate smoother reloading.
2626
///
2727
/// Note that identifiers are scoped, and will try to do the right thing in context.

src/core/scan.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void QmlScanner::scanDir(const QDir& dir) {
8989
QString qmldir;
9090
auto stream = QTextStream(&qmldir);
9191

92-
// cant derive a module name if not in shell path
92+
// can't derive a module name if not in shell path
9393
if (path.startsWith(this->rootPath.path())) {
9494
auto end = path.sliced(this->rootPath.path().length());
9595

@@ -160,7 +160,7 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna
160160
if (!singleton && line == "pragma Singleton") {
161161
singleton = true;
162162
} else if (line.startsWith("import")) {
163-
// we dont care about "import qs" as we always load the root folder
163+
// we don't care about "import qs" as we always load the root folder
164164
if (auto importCursor = line.indexOf(" qs."); importCursor != -1) {
165165
importCursor += 4;
166166
QString path;
@@ -211,7 +211,7 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna
211211
mask = false;
212212
}
213213
if (!sourceMasked && mask) hideMask = true;
214-
mask = sourceMasked || mask; // cant unmask if a nested if passes
214+
mask = sourceMasked || mask; // can't unmask if a nested if passes
215215
ifScopes.append(mask);
216216
if (mask) isOverridden = true;
217217
sourceMasked = mask;

src/core/test/scriptmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void TestScriptModel::unique_data() {
9090
QTest::addRow("move_overlapping")
9191
<< "ABCDEFG" << "ABDEFCG" << OpList({{ModelOperation::Move, 3, 3, 2}});
9292

93-
// Ensure iterators arent skipping anything at the end of operations by performing
93+
// Ensure iterators aren't skipping anything at the end of operations by performing
9494
// multiple back to back.
9595

9696
QTest::addRow("insert_state_ok") << "ABCDEFG" << "ABXXEFG"

src/core/variants.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void Variants::updateVariants() {
145145

146146
{
147147
if (this->mInstances.contains(variant)) {
148-
continue; // we dont need to recreate this one
148+
continue; // we don't need to recreate this one
149149
}
150150

151151
auto variantMap = QVariantMap();

0 commit comments

Comments
 (0)