Commit 1d2c5ac2 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Typo fixes

Differential revision: https://phabricator.kde.org/D14589
Differential revision: https://phabricator.kde.org/D14590
parent 254eda26
......@@ -19,7 +19,7 @@ The top-level 3rd-party directory is not relevant for packaging: it only contain
There are four forks of 3rd party libraries that are relevant and cannot be replaced by system libraries:
* plugins/impex/raw/3rdparty contains a fork of kdcraw. Upstread removed most functionality from this library and is in general unable to provide a stable API. The library has been renamed to avoid conflicts with upstream kdcraw.
* plugins/impex/raw/3rdparty contains a fork of kdcraw. Upstream removed most functionality from this library and is in general unable to provide a stable API. The library has been renamed to avoid conflicts with upstream kdcraw.
* plugins/impex/xcf/3rdparty contains the xcftools code. This has never been released as a library
......
......@@ -691,7 +691,7 @@
pxoxy of the node we process (=KisNodeProgressProxy=). Our
processings framework provides even easier way of doing this. You
just need to instantiate a =ProgressHelper= object and ask it to
greate a =KoUpdater= object for you. And all is done. You can see
create a =KoUpdater= object for you. And all is done. You can see
an example in =KisTransformProcessingVisitor= class.
** Testing
......
......@@ -309,7 +309,7 @@
</doc:para>
The default option is <doc:tt>hard</doc:tt>, and this
means that the user has explicitly mapped a profile to
a device, and this should take precidence over any
a device, and this should take precedence over any
<doc:tt>soft</doc:tt> profiles.
</doc:para>
<doc:para>
......
......@@ -567,7 +567,7 @@ bool KoShape::compareShapeZIndex(KoShape *s1, KoShape *s2)
* zIndex are **merged**, while in Krita the contents of groups
* is never merged. One group will always below than the other.
* Therefore, when zIndex of two groups inside the same parent
* coinside, the resulting painting order in Krita is
* coincide, the resulting painting order in Krita is
* **UNDEFINED**.
*
* To avoid this trouble we use KoShapeReorderCommand::mergeInShape()
......
......@@ -247,7 +247,7 @@ QString KoShapeSavingContext::imageHref(const KoImageData *image)
QString KoShapeSavingContext::imageHref(const QImage &image)
{
// TODO this can be optimized to recognize images which have the same content
// Also this can use quite a lot of memeory as the qimage are all kept until
// Also this can use quite a lot of memory as the qimage are all kept until
// they are saved to the store in memory
QString href = QString("Pictures/image%1.png").arg(++d->imageId);
d->images.insert(href, image);
......
......@@ -309,7 +309,7 @@ public:
virtual void dropEvent(QDropEvent *event, const QPointF &point);
/**
* @return a menu with context-aware actions for the currect selection. If
* @return a menu with context-aware actions for the current selection. If
* the returned value is null, no context menu is shown.
*/
virtual QMenu* popupActionsMenu();
......
......@@ -45,7 +45,7 @@ public:
/**
* Command to align a set of shapes in a rect
* @param shapes a set of all the shapes that should be aligned
* @param align the aligment type
* @param align the alignment type
* @param boundingRect the rect the shape will be aligned in
* @param parent the parent command used for macro commands
*/
......
......@@ -88,7 +88,7 @@ void KoShapeReorderCommand::redo()
{
KUndo2Command::redo();
for (int i = 0; i < d->shapes.count(); i++) {
// z-index cannot chage the bounding rect of the shape, so
// z-index cannot change the bounding rect of the shape, so
// no united updates needed
d->shapes.at(i)->setZIndex(d->newIndexes.at(i));
d->shapes.at(i)->update();
......@@ -99,7 +99,7 @@ void KoShapeReorderCommand::undo()
{
KUndo2Command::undo();
for (int i = 0; i < d->shapes.count(); i++) {
// z-index cannot chage the bounding rect of the shape, so
// z-index cannot change the bounding rect of the shape, so
// no united updates needed
d->shapes.at(i)->setZIndex(d->previousIndexes.at(i));
d->shapes.at(i)->update();
......
......@@ -64,7 +64,7 @@ public:
void setResolution(const QRectF boundsInPixels, qreal pixelsPerInch);
/// A special workaround coeff for usign when loading old ODF-embedded SVG files,
/// A special workaround coeff for using when loading old ODF-embedded SVG files,
/// which used hard-coded 96 ppi for font size
void setForcedFontSizeResolution(qreal value);
......@@ -198,7 +198,7 @@ protected:
void applyId(const QString &id, KoShape *shape);
/// Applies viewBox transformation to the current graphical context
/// NOTE: after applying the function currectBoundingBox can become null!
/// NOTE: after applying the function currentBoundingBox can become null!
void applyViewBoxTransform(const KoXmlElement &element);
private:
......
......@@ -144,7 +144,7 @@ QString SvgSavingContext::getID(const KoShape *obj)
else
id = "shape";
}
// create a compeletely new id based on object name
// create a completely new id based on object name
// or a generic name
id = createUID(id);
}
......
......@@ -49,7 +49,7 @@ public:
/// Provides access to the shape writer
KoXmlWriter &shapeWriter();
/// Create a unqiue id from the specified base text
/// Create a unique id from the specified base text
QString createUID(const QString &base);
/// Returns the unique id for the given shape
......
......@@ -179,7 +179,7 @@ void TestImageCollection::testPreload3()
QPixmap pixmap3 = data.pixmap();
QCOMPARE(pixmap.cacheKey(), pixmap3.cacheKey());
// now get a differen size;
// now get a different size;
QPixmap pixmap4 = data.pixmap(QSize(10, 12));
QCOMPARE(pixmap.width(), 40);
QCOMPARE(pixmap.height(), 41);
......
......@@ -119,7 +119,7 @@ void KoSvgTextShape::paintComponent(QPainter &painter, const KoViewConverter &co
/**
* HACK ALERT:
* QTextLayout should only be accessed from the tread it has been created in.
* QTextLayout should only be accessed from the thread it has been created in.
* If the cached layout has been created in a different thread, we should just
* recreate the layouts in the current thread to be able to render them.
*/
......@@ -196,7 +196,7 @@ QPainterPath KoSvgTextShape::textOutline()
QPainterPath path;
path.addRect(overlineBlob);
// don't use direct addRect, because it does't care about Qt::WindingFill
// don't use direct addRect, because it doesn't care about Qt::WindingFill
result += path;
}
......@@ -209,7 +209,7 @@ QPainterPath KoSvgTextShape::textOutline()
QPainterPath path;
path.addRect(strikeThroughBlob);
// don't use direct addRect, because it does't care about Qt::WindingFill
// don't use direct addRect, because it doesn't care about Qt::WindingFill
result += path;
}
......@@ -221,7 +221,7 @@ QPainterPath KoSvgTextShape::textOutline()
QPainterPath path;
path.addRect(underlineBlob);
// don't use direct addRect, because it does't care about Qt::WindingFill
// don't use direct addRect, because it doesn't care about Qt::WindingFill
result += path;
}
}
......
......@@ -36,7 +36,7 @@ public:
* constructor
* @param tool the parent tool this strategy is for
* @param controller the canvas controller that wraps the canvas the tool is acting on.
* @param clicked the location (in documnet points) where the interaction starts.
* @param clicked the location (in document points) where the interaction starts.
*/
KoZoomStrategy(KoZoomTool *tool, KoCanvasController *controller, const QPointF &clicked);
......
......@@ -362,7 +362,7 @@ protected:
/**
* Checks whether a src paint device can be used as source
* of fast bitBlt operation. The result of the check may
* depend on whether color spaces coinside, whether there is
* depend on whether color spaces coincide, whether there is
* any shift of tiles between the devices and etc.
*
* WARNING: This check must be done <i>before</i> performing any
......@@ -793,7 +793,7 @@ public:
* Create an iterator that will "artificially" extend the paint device with the
* value of the border when trying to access values outside the range of data.
*
* @param rc indicates the rectangle that trully contains data
* @param rc indicates the rectangle that truly contains data
*/
KisRepeatVLineConstIteratorSP createRepeatVLineConstIterator(qint32 x, qint32 y, qint32 h, const QRect& _dataWidth) const;
......
......@@ -75,7 +75,7 @@ class KisRepeatHLineIteratorPixelBase : public KisRepeatLineIteratorPixelBase<T>
{
public:
/**
* @param rc indicates the rectangle that trully contains data
* @param rc indicates the rectangle that truly contains data
*/
inline KisRepeatHLineIteratorPixelBase(KisDataManager *dm, qint32 x, qint32 y, qint32 w, qint32 offsetx, qint32 offsety, const QRect& _rc, KisIteratorCompleteListener *completeListener);
inline ~KisRepeatHLineIteratorPixelBase() override;
......@@ -101,7 +101,7 @@ class KisRepeatVLineIteratorPixelBase : public KisRepeatLineIteratorPixelBase<T>
{
public:
/**
* @param rc indicates the rectangle that trully contains data
* @param rc indicates the rectangle that truly contains data
*/
inline KisRepeatVLineIteratorPixelBase(KisDataManager *dm, qint32 x, qint32 y, qint32 h, qint32 offsetx, qint32 offsety, const QRect& _rc, KisIteratorCompleteListener *completeListener);
inline ~KisRepeatVLineIteratorPixelBase() override;
......
......@@ -612,7 +612,7 @@ void KisGrowSelectionFilter::process(KisPixelSelectionSP pixelSelection, const Q
}
pixelSelection->writeBytes(out, rect.x(), rect.y() + y, rect.width(), 1);
}
/* undo the offsets to the pointers so we can free the malloced memmory */
/* undo the offsets to the pointers so we can free the malloced memory */
circ -= m_xRadius;
max -= m_xRadius;
......@@ -762,7 +762,7 @@ void KisShrinkSelectionFilter::process(KisPixelSelectionSP pixelSelection, const
pixelSelection->writeBytes(out, rect.x(), rect.y() + y, rect.width(), 1);
}
// undo the offsets to the pointers so we can free the malloced memmory
// undo the offsets to the pointers so we can free the malloced memory
circ -= m_xRadius;
max -= m_xRadius;
......
......@@ -453,7 +453,7 @@ void mirror_impl(KisPaintDeviceSP dev, qreal axis, bool isHorizontal)
}
/**
* If the axis is not aligned, that is crosses some pixel cell, we shoudl just skip this
* If the axis is not aligned, that is crosses some pixel cell, we should just skip this
* column and not process it. Actually, how can we mirror the central single-pixel column?
*/
const bool axisNonAligned = qFloor(axis) < axis;
......
......@@ -50,7 +50,7 @@ public:
* @brief Adds a key stroke to the worker.
*
* The key strokes may intersect, in which case the lastly added stroke will have
* a proirity over all the previous ones.
* a priority over all the previous ones.
*
* @param dev alpha8 paint device of the key stroke, may contain disjoint areas
* @param color the color of the stroke
......
......@@ -397,7 +397,7 @@ QMap<QString, KisMetaData::Value> Value::asLangArray() const
Q_ASSERT(d->type == LangArray);
QMap<QString, KisMetaData::Value> langArray;
Q_FOREACH (const KisMetaData::Value& val, *d->value.array) {
Q_ASSERT(val.d->propertyQualifiers.contains("xml:lang")); // TODO propably worth to have an assert for this in the constructor as well
Q_ASSERT(val.d->propertyQualifiers.contains("xml:lang")); // TODO probably worth to have an assert for this in the constructor as well
KisMetaData::Value valKeyVal = val.d->propertyQualifiers.value("xml:lang");
Q_ASSERT(valKeyVal.type() == Variant);
QVariant valKeyVar = valKeyVal.asVariant();
......
......@@ -117,7 +117,7 @@ KisMementoManager::~KisMementoManager()
* 4) Then we called clear() and getMemento() [==commit()]
* 5) The tile will be registered as deleted and successfully
* committed to a revision. That means the states of the memento
* manager at stages 1 and 5 do not coinside.
* manager at stages 1 and 5 do not coincide.
* This will not lead to any memory leaks or bugs seen, it just
* not good from a theoretical perspective.
*/
......
......@@ -291,7 +291,7 @@ Item {
}
}
// Handles state change depening on transition animation status
// Handles state change depending on transition animation status
function setState(newState)
{
if (transitionAnimationRunning)
......
......@@ -43,7 +43,7 @@ class KoColorSpaceFactory;
*
* Encapsulation of the profile accesses inside a separate class lets us
* follow this rule without even thinking of it. KoColorProfileStorage just
* *never* calls any method of the registry, therefore lock order inverion is
* *never* calls any method of the registry, therefore lock order inversion is
* not possible,
*/
class KoColorProfileStorage
......
......@@ -60,7 +60,7 @@ int main(int argc, char** argv)
parser.process(app); // PORTING SCRIPT: move this to after any parser.addOption
if (parser.isSet("graphs")) {
// Don't change those lines to use dbgPigment derivatives, they need to be outputed
// Don't change those lines to use dbgPigment derivatives, they need to be outputted
// to stdout not stderr.
std::cout << "full : show all the connection on the graph" << std::endl;
std::cout << "bestpath : show the best path for a given transformation" << std::endl;
......
......@@ -137,7 +137,7 @@ public:
/**
* @brief createConfigurationWidget creates a widget that can be used to define the settings for a given import/export filter
* @param parent the ownder of the widget; the caller is responsible for deleting
* @param parent the owner of the widget; the caller is responsible for deleting
* @param from The mimetype of the source file/document
* @param to The mimetype of the destination file/document
*
......
......@@ -74,7 +74,7 @@ KisCanvasWidgetBase::KisCanvasWidgetBase(KisCanvas2 * canvas, KisCoordinatesConv
KisCanvasWidgetBase::~KisCanvasWidgetBase()
{
/**
* Clear all the attached decoration. Oherwise they might decide
* Clear all the attached decoration. Otherwise they might decide
* to process some events or signals after the canvas has been
* destroyed
*/
......
......@@ -55,7 +55,7 @@ class KisViewManager;
* - one should implement two methods to make the rendering work:
* - calcDirtyFrames()
* - createRenderer(KisImageSP image)
* - these methids will be called on the start of the rendering
* - these methods will be called on the start of the rendering
*/
class KRITAUI_EXPORT KisAsyncAnimationRenderDialogBase : public QObject
{
......
......@@ -1034,7 +1034,7 @@ void KisPaintopBox::sliderChanged(int n)
if (m_presetsEnabled) {
// IMPORTANT: set the PaintOp size before setting the other properties
// it wont work the other way
// it won't work the other way
// TODO: why?!
m_resourceProvider->setSize(size);
......
......@@ -229,7 +229,7 @@ void ModelTest::index()
*/
void ModelTest::parent()
{
// Make sure the model wont crash and will return an invalid QModelIndex
// Make sure the model won't crash and will return an invalid QModelIndex
// when asked for the parent of an invalid index.
Q_ASSERT(model->parent(QModelIndex()) == QModelIndex());
......
......@@ -737,7 +737,7 @@ void KisToolPaint::requestUpdateOutline(const QPointF &outlineDocPoint, const Ko
QRectF outlineDocRect = currentImage()->pixelToDocument(outlinePixelRect);
// This adjusted call is needed as we paint with a 3 pixel wide brush and the pen is outside the bounds of the path
// Pen uses view coordinates so we have to zoom the document value to match 2 pixel in view coordiates
// Pen uses view coordinates so we have to zoom the document value to match 2 pixel in view coordinates
// See BUG 275829
qreal zoomX;
qreal zoomY;
......
......@@ -315,7 +315,7 @@ void KisCompositeOpComboBox::slotCategoryToggled(const QModelIndex& index, bool
// popup widget to the view
// don't know if this is expected behaviour
// on all supported platforms.
// Thre is nothing written about this in the docs.
// There is nothing written about this in the docs.
showPopup();
}
......
......@@ -117,7 +117,7 @@ private:
/// internal reference for internal brush size
/// used to check if our brush size has changed
/// do zooming and other things internall if it has changed
/// do zooming and other things internally if it has changed
float m_currentBrushSize = 1.0;
/// the range of brush sizes that will control zooming in/out
......
......@@ -32,7 +32,7 @@ class KoUnit;
* Spin box for double precision numbers with unit display.
* Use this widget for any value that represents a real measurable value for consistency throughout
* Krita.
* This widget shows the value in the user-selected units (inch, milimeters, etc) but keeps the
* This widget shows the value in the user-selected units (inch, millimeters, etc) but keeps the
* Krita-widget default measurement unit internally. This has the advantage that just setting and
* getting a value will not change the value due to conversions.
* The KoDocument class has a unit() method for consistent (document wide) configuration of the
......
......@@ -166,7 +166,7 @@ public:
*
* The returned menu is configured with an icon, a title and
* menu entries. Therefore adding the returned pointer to your menu
* is enougth to have access to the help menu.
* is enough to have access to the help menu.
*
* Note: This method will only create one instance of the menu. If
* you call this method twice or more the same pointer is returned.
......
......@@ -261,7 +261,7 @@ void KisColorSelector::resizeEvent(QResizeEvent* e) {
}
}
// reset the currect color after resizing the widget
// reset the correct color after resizing the widget
setColor(m_lastRealColor);
KisColorSelectorBase::resizeEvent(e);
......
......@@ -202,8 +202,8 @@ public:
, undefined
, less
, less_or_equal
, greather
, greather_or_equal
, greater
, greater_or_equal
, not_equal
, equal
, last__
......@@ -230,7 +230,7 @@ public:
switch (m_op) {
case less:
return left < m_rhs;
case greather:
case greater:
return left > m_rhs;
case equal:
return left == m_rhs;
......@@ -238,7 +238,7 @@ public:
return left != m_rhs;
case less_or_equal:
return left <= m_rhs;
case greather_or_equal:
case greater_or_equal:
return left >= m_rhs;
default:
Q_ASSERT(!"Sanity check");
......@@ -257,7 +257,7 @@ public:
case less:
result = " < ";
break;
case greather:
case greater:
result = " > ";
break;
case equal:
......@@ -269,7 +269,7 @@ public:
case less_or_equal:
result = " <= ";
break;
case greather_or_equal:
case greater_or_equal:
result = " >= ";
break;
default:
......@@ -292,7 +292,7 @@ public:
lookup_next_char = true;
break;
case '>':
checker.m_op = greather;
checker.m_op = greater;
lookup_next_char = true;
break;
case '=':
......
......@@ -352,7 +352,7 @@ void QMic::slotStartApplicator(QStringList gmicImages)
}
if (m.isAttached()) {
if (!m.lock()) {
dbgPlugins << "Could not lock memeory segment" << m.error() << m.errorString();
dbgPlugins << "Could not lock memory segment" << m.error() << m.errorString();
}
dbgPlugins << "Memory segment" << key << m.size() << m.constData() << m.data();
gmic_image<float> *gimg = new gmic_image<float>();
......@@ -366,10 +366,10 @@ void QMic::slotStartApplicator(QStringList gmicImages)
dbgPlugins << "created gmic image" << gimg->name << gimg->_width << gimg->_height;
if (!m.unlock()) {
dbgPlugins << "Could not unlock memeory segment" << m.error() << m.errorString();
dbgPlugins << "Could not unlock memory segment" << m.error() << m.errorString();
}
if (!m.detach()) {
dbgPlugins << "Could not detach from memeory segment" << m.error() << m.errorString();
dbgPlugins << "Could not detach from memory segment" << m.error() << m.errorString();
}
images.append(gimg);
}
......
......@@ -101,7 +101,7 @@ QRect KisGaussianBlurFilter::neededRect(const QRect & rect, const KisFilterConfi
QVariant value;
/**
* NOTE: integer devision by two is done on purpose,
* NOTE: integer division by two is done on purpose,
* because the kernel size is always odd
*/
const int halfWidth = _config->getProperty("horizRadius", value) ? KisGaussianKernel::kernelSizeFromRadius(t.scale(value.toFloat())) / 2 : 5;
......
......@@ -146,7 +146,7 @@ QRect KisConvertHeightToNormalMapFilter::neededRect(const QRect &rect, const Kis
QVariant value;
/**
* NOTE: integer devision by two is done on purpose,
* NOTE: integer division by two is done on purpose,
* because the kernel size is always odd
*/
const int halfWidth = _config->getProperty("horizRadius", value) ? KisEdgeDetectionKernel::kernelSizeFromRadius(t.scale(value.toFloat())) / 2 : 5;
......
......@@ -135,7 +135,7 @@ QRect KisEdgeDetectionFilter::neededRect(const QRect &rect, const KisFilterConfi
QVariant value;
/**
* NOTE: integer devision by two is done on purpose,
* NOTE: integer division by two is done on purpose,
* because the kernel size is always odd
*/
const int halfWidth = _config->getProperty("horizRadius", value) ? KisEdgeDetectionKernel::kernelSizeFromRadius(t.scale(value.toFloat())) / 2 : 5;
......
......@@ -169,7 +169,7 @@ public:
const QRectF &rect, const QTextInlineObject &object, int posInDocument, const QTextCharFormat &format) = 0;
/**
* Overwrite this if you are interrested in propertychanges.
* Overwrite this if you are interested in propertychanges.
* @param property the property id that has been changed, one from the Property enum.
* You should ignore all properties you don't use as new properties can be added at any time.
* @param value the new value of the property wrapped in a QVariant. Properties can be a lot of
......
......@@ -22,7 +22,7 @@
* semantics of operation to handle it right way.
* 2) Model(Tree) Level: on this level we should update KoSectionModel
* right way, so it in any moment represents the actual tree
* of sections. Tree is builded easily:
* of sections. Tree is built easily:
* One section is son of another, if it is directly nested in it.
* As text editing commands have access to change Formatting Level,
* they are declared as friend classes of KoSectionModel to be able
......
......@@ -169,7 +169,7 @@ void KoTextEditor::Private::updateState(KoTextEditor::Private::State newState, c
}
if (newState == NoOp && !commandStack.isEmpty()) {
//Calling updateState to NoOp when the commandStack isn't empty means that the current headCommand on the commandStack is finished. Further UndoTextCommands do not belong to it. So we pop it.
//If after poping the headCommand we still have some commands on the commandStack means we have not finished with the highest "macro". In that case we need to stay in the "Custom" state.
//If after popping the headCommand we still have some commands on the commandStack means we have not finished with the highest "macro". In that case we need to stay in the "Custom" state.
//On the contrary, an empty commandStack means we have finished with the "macro". In that case, we set the editor to NoOp state. A signal from the QTextDocument should also generate a new headCommand.
debugText << "we are in a macro and update the state to NoOp. this means that the command on top of the commandStack is finished. we should pop it";
debugText << "commandStack count before: " << commandStack.count();
......
......@@ -56,7 +56,7 @@ public:
/// return the word in which the locator is inserted.
QString word() const;
/// Add a text reference that is interrested in knowing when this locator is laid-out in a differen position.
/// Add a text reference that is interested in knowing when this locator is laid-out in a different position.
void addListener(KoTextReference *reference);
/// Remove a reference from the listeners.
void removeListener(KoTextReference *reference);
......
......@@ -33,7 +33,7 @@
* created QTextDocument with KoText. This has the implication that all
* the extra content is stored inside the document. We add QTextFormat
* based properties for that as can be seen in the styles (see
* KoParagraphStyle::Properities for instance), and we allow managers to
* KoParagraphStyle::Properties for instance), and we allow managers to
* be stored on the document too. So for example a KoStyleManager will
* be stored as a property on the QTextDocument and you can access that
* using the KoTextDocument API. Note that you can use the
......
......@@ -246,7 +246,7 @@ QList<QPair<QString, KoParagraphStyle *> > KoTextSharedLoadingData::loadParagrap
parentStyles.insert(parastyle, styleElem->attributeNS(KoXmlNS::style, "parent-style-name"));
// TODO check if it a know style set the styleid so that the custom styles are kept during copy and paste
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memeory
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memory
if (styleManager) {
styleManager->add(parastyle);
} else {
......@@ -387,7 +387,7 @@ void KoTextSharedLoadingData::addTableStyles(KoOdfLoadingContext &context, const
d->tableStylesDotXmlStyles.insert(it->first, it->second);
}
// TODO check if it a know style set the styleid so that the custom styles are kept during copy and paste
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memeory
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memory
if (styleManager) {
styleManager->add(it->second);
} else {
......@@ -427,7 +427,7 @@ void KoTextSharedLoadingData::addTableColumnStyles(KoOdfLoadingContext &context,
d->tableColumnStylesDotXmlStyles.insert(it->first, it->second);
}
// TODO check if it a know style set the styleid so that the custom styles are kept during copy and paste
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memeory
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memory
if (styleManager) {
styleManager->add(it->second);
} else {
......@@ -467,7 +467,7 @@ void KoTextSharedLoadingData::addTableRowStyles(KoOdfLoadingContext &context, co
d->tableRowStylesDotXmlStyles.insert(it->first, it->second);
}
// TODO check if it a know style set the styleid so that the custom styles are kept during copy and paste
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memeory
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memory
if (styleManager) {
styleManager->add(it->second);
} else {
......@@ -507,7 +507,7 @@ void KoTextSharedLoadingData::addTableCellStyles(KoShapeLoadingContext &context,
d->tableCellStylesDotXmlStyles.insert(it->first, it->second);
}
// TODO check if it a know style set the styleid so that the custom styles are kept during copy and paste
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memeory
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memory
if (styleManager) {
styleManager->add(it->second);
} else {
......@@ -547,7 +547,7 @@ void KoTextSharedLoadingData::addSectionStyles(KoOdfLoadingContext &context, con
d->sectionStylesDotXmlStyles.insert(it->first, it->second);
}
// TODO check if it a know style set the styleid so that the custom styles are kept during copy and paste
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memeory
// in case styles are not added to the style manager they have to be deleted after loading to avoid leaking memory
if (styleManager) {
styleManager->add(it->second);
} else {
......@@ -687,7 +687,7 @@ void KoTextSharedLoadingData::addTableTemplate(KoShapeLoadingContext &context, K
for (; it != tableTemplates.end(); ++it) {
d->tableTemplates.insert(it->first, it->second);
// in case templates are not added to the style manager they have to be deleted after loading to avoid leaking memeory
// in case templates are not added to the style manager they have to be deleted after loading to avoid leaking memory
if (styleManager) {
styleManager->add(it->second);
} else {
......
......@@ -141,7 +141,7 @@ public:
qreal minimumDistance() const;
/// sets the margin of the list
void setMargin(qreal vlaue);
void setMargin(qreal value);
/// returns the margin of the list
qreal margin() const;
......
......@@ -475,7 +475,7 @@ void ListItemsHelper::recalculateBlock(QTextBlock &block)
qreal counterSpacing = 0;
if (format.boolProperty(KoListStyle::AlignmentMode)) {
// for aligmentmode spacing should be 0
// for AlignmentMode spacing should be 0
counterSpacing = 0;
} else {
if (listStyle != KoListStyle::None) {
......
......@@ -33,7 +33,7 @@
* created QTextDocument with KoText. This has the implication that all
* the extra content is stored inside the document. We add QTextFormat
* based properties for that as can be seen in the styles (see
* KoParagraphStyle::Properities for instance), and we allow managers to
* KoParagraphStyle::Properties for instance), and we allow managers to
* be stored on the document too. So for example a KoStyleManager will
* be stored as a property on the QTextDocument and you can access that
* using the KoTextDocument API. Note that you can use the
......
......@@ -86,7 +86,7 @@ void jpegErrorExit ( j_common_ptr cinfo )
( *( cinfo->err->format_message ) ) ( cinfo, jpegLastErrorMsg );
/* Jump to the setjmp point */
throw std::runtime_error( jpegLastErrorMsg ); // or your preffered exception ...
throw std::runtime_error( jpegLastErrorMsg ); // or your preferred exception ...
}
J_COLOR_SPACE getColorTypeforColorSpace(const KoColorSpace * cs)
......
......@@ -60,7 +60,7 @@ xcfNextprop(uint32_t *master,uint32_t *body)
ncolors = xcfL(ptr+8) ;
if( ncolors > 256 )
FatalBadXCF("Colormap has %" PRIu32 " entries",ncolors);
/* Surprise! Some older verion of the Gimp computed the wrong length
/* Surprise! Some older version of the Gimp computed the wrong length
* word, and the _reader_ always just reads three bytes per color
* and ignores the length tag! Duplicate this so we too can read
* the buggy XCF files.
......
......@@ -673,7 +673,7 @@ class comics_project_manager_docker(DockWidget):
self.pagesModel.appendRow(newPageItem)
"""
Write to the json configuratin file.
Write to the json configuration file.
This also checks the current state of the pages list.
"""
......@@ -734,8 +734,9 @@ class comics_project_manager_docker(DockWidget):
self.slot_write_config()
"""
An attempt at making the description editable from the comic pages list. It is currently not working because ZipFile
has no overwrite mechanism, and I don't have the energy to write one yet.
An attempt at making the description editable from the comic pages list.
It is currently not working because ZipFile has no overwrite mechanism,
and I don't have the energy to write one yet.
"""
def slot_write_description(self, index):
......@@ -827,7 +828,8 @@ class comics_project_manager_docker(DockWidget):
"""
Resize all the pages in the pages list.
It will show a dialog with the options for resizing. Then, it will try to pop up a progress dialog while resizing.
It will show a dialog with the options for resizing.
Then, it will try to pop up a progress dialog while resizing.
The progress dialog shows the remaining time and pages.