Fix various typos in source documentation and comments (cont.)

Found via `codespell`
This commit is contained in:
luz paz
2022-12-04 08:21:12 -05:00
committed by Laurent Trinques
parent a76e5446aa
commit 1994235bc5
102 changed files with 277 additions and 277 deletions

View File

@@ -108,8 +108,8 @@ void DiagramEventAddImage::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
/**
@brief DiagramEventAddImage::mouseDoubleClickEvent
This method is only use to overwrite double click.
When double click, image propertie dialog isn't open.
This method is used only to overwrite double click.
When double click, image properties dialog isn't open.
@param event : event of mouse double click.
*/
void DiagramEventAddImage::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) {
@@ -118,7 +118,7 @@ void DiagramEventAddImage::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event
/**
@brief DiagramEventAddImage::wheelEvent
Action when mouse wheel is rotate
Action when mouse wheel is rotated
@param event: evet of mouse wheel
*/
void DiagramEventAddImage::wheelEvent(QGraphicsSceneWheelEvent *event)
@@ -148,13 +148,13 @@ bool DiagramEventAddImage::isNull() const
/**
@brief DiagramEventAddImage::openDialog
Open dialog for select the image to add.
Open dialog to select the image to add.
*/
void DiagramEventAddImage::openDialog()
{
if (m_diagram -> isReadOnly()) return;
//Open dialog for select image
//Open dialog to select image
QString pathPictures = QStandardPaths::writableLocation(QStandardPaths::PicturesLocation);
QString fileName = QFileDialog::getOpenFileName(m_diagram->views().isEmpty()? nullptr : m_diagram->views().first(), QObject::tr("Selectionner une image..."), pathPictures, QObject::tr("Image Files (*.png *.jpg *.jpeg *.bmp *.svg)"));

View File

@@ -54,7 +54,7 @@ void DiagramEventInterface::wheelEvent(QGraphicsSceneWheelEvent *event) {
/**
@brief DiagramEventInterface::keyPressEvent
By default, press escape key abort the curent action
By default, press escape key abort the current action
@param event
*/
void DiagramEventInterface::keyPressEvent(QKeyEvent *event)

View File

@@ -36,7 +36,7 @@ class Diagram;
This interface work like this :
You need to create an interface and call diagram::setEventInterface(pointer_of_your_interface).
When a diagram get an event (mouse or key) if they have an event interface,
they send the event (with the status accepted to false) to the interface (for exemple mousePressEvent).
they send the event (with the status accepted to false) to the interface (for example mousePressEvent).
If the interface do something with this event, you need to set to true the accepted status of the event, then diagram do nothing.
When the interface job is done, we need to emit the signal finish(), the diagram use this signal to delete the interface.
Be carreful with the destructor, diagram can at any time (even if interface is still running) delete the interface,
@@ -61,7 +61,7 @@ class DiagramEventInterface : public QObject
virtual void init();
signals:
void finish(); //Emited when the interface finish is job.
void finish(); //Emitted when the interface finishes its job.
protected:
QPointer<Diagram> m_diagram;